Mirroring Terminal on Linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
When giving a talk I usually use two screens: One is the wall showing the presentation to the audience, the other one is my Laptop screen with a mirror of the presentation, my speakernotes etc.
During the talks I pretty often do demos using a terminal. This requires that
I turn around to check at the wall if everything works correctly. To avoid this I would like to have two terminal window, one on my laptop screen where I am typing and a mirror of it which is shown to the audience at the second screen. How can I do this?

Take a look to the screen program. It does perfectly what you are trying to do. The following link gives a simple example of screen usage:
Start a new screen session with session name:
screen -S <name>
list running sessions/screens:
screen -ls
Attach to a running session:
screen -x
Attach to a running session with name:
screen -r session_name
Screen quick reference: http://aperiodic.net/screen/quick_reference
More links:
https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/

Related

I want to read how much does my program uses resources in unix but cant [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have program that I need to run and then see how much resources it uses in unix by using top command. But I don't know how to do it because if i run it from command line I cant use top command till program is finished and vice versa. How can I do it. I tried doing:
sleep 10s
top
./myProgram
But its not working
Open two terminals; run your program in one terminal and top in another.
If you're in a graphical environment, you can just start the terminal a second time.
If you're on the text-only console, you can switch between terminals using Ctrl-Alt-F1..F6 (possibly more) or Alt-Left/Right.
If you connect via SSH, just open multiple terminal sessions in your SSH client.
(Also, I'd hint to use htop instead of top, but you may need to install it first.)
In case your program is too short-lived to show up on top/htop, you might need to run it using Valgrind.
Open two terminals one for running top, and run your program in the other.

startx /bin/bash in fullscreen without desktop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Ok so I know it's a weird case but hang in here with me.
So the thing is I've got an very old laptop running ubuntu 14.04 server without any desktop aka shell only. BUT the laptop also has a touch screen so we want to be able to use the "mouse"/touchscreen/touchpad to select text inside the terminal and/or click/copy/paste/cut/etc. It's part of art project with some students and also one of the tasks is to run as less as possible. So running a desktop in the background is not really an option. My question is:
Is there a way to start the Ubuntu terminal as UI application in fullscreen without the actual desktop in the background but giving the functionality of an mouse cursor.
(If someone knows a even better solution for adding a mouse without starting the desktop its appreciated)
Try this: create a ~/.xinitrc with content : exec gnome-terminal, then run startx
Or another solution is to stay in tty and install gpm for mouse control

Moving between two seperate terminal/tmux windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I'm currently using an extra monitor so I'm running two tmux sessions in two separate terminals (one for each screen). The problem is every time I want to move between screens I have to manually move my cursor and click the other screen before my cursor will move over, this is super annoying. I'm on MacOS 10.12, using v2.7 of Terminal and v2.2 of tmux.
I've currently tried:
cmd + shift + arrow keys, but that only works when the tabs are actually stuck together on the same screen
Using tmux switch -t [] or tmux attach -t [] doesn't manually move the cursor over, it just changes the current screens session, syncing the one session onto both screens.
Just using one session, but there's this annoying quirk where the external monitors dimensions fit to my macbooks smaller screen size. From here it states that tmux "limits the dimensions of a window to the smallest of each dimension across all the sessions to which the window is attached. If it did not do this there would be no sensible way to display the whole window area for all the attached clients." So there's no way to fix that I think.
Is there some easy command to move between the two terminal windows?
Command-backquote (⌘-`) cycles through the open windows in Terminal.

Using ffplay to open a video at a specific window location [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need to use ffplay to open a video file, but i need to pass it x,y coordinates so i can have it play the video where I want it to.
As default ffplay simply opens the video at the top left corner.
I've tried searching for options in ffplay but i couldnt find it.
Also tried using window managers like fluxbox, again couldnt find the command)
Please note that I need to run it as a shell command.
Any Help would be appreciated.
Thanks in Advance
I think it is a job for xdotool.
Devilspie can be used also.
For instance, if you play best_movie.avi in ffplay, moving the window will be as easy as:
xdotool search --name best_movie windowmove 100 100
HTH

How do I "peek" at a running but detached screen? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a script that runs in the background on a detached screen but doesn't write to a log file. (screen -dmS somename somescript)
When I check on the script, I attach to it (screen -r somename) then detach when I'm done (C-a d).
Instead of attaching then detaching, is it possible to simply "peek" at what's on the screen?
Something similar to echo "$(screen -r somename)" that actually works?
The -X option sends a command to a running screen instance:
screen -r somename -X hardcopy
the hardcopy command writes a screen dump into hardcopy.N, where N is the index of the active screen.

Resources