Hi, I want to connect to my server, run screen as root and then let another person log in a root also and let him run screen and attach to mine so he can "see" what im doing on the server. I haven't played with screen a lot but it seems a nice feature to teach him how to configure certain things. Sorry for the newbie question.
thanks,
I want to connect to my server, run screen as root and then let another person log in a root also and let him run screen and attach to mine so he can "see" what im doing on the server. I haven't played with screen a lot but it seems a nice feature to teach him how to configure certain things. Sorry for the newbie question.
screen -x is what you want. This will however allow them to make changes right along with you. I'm assuming that if you're giving them root access that you're okay with this.
You can also name a screen session with -S so that you can give him an easy name to connect to. You'd do 'screen -S bofh_school' and he'd do 'screen -x bofh_school' to connect in multi-display view.
Erick Perez wrote:
Hi, I want to connect to my server, run screen as root and then let another person log in a root also and let him run screen and attach to mine so he can "see" what im doing on the server. I haven't played with screen a lot but it seems a nice feature to teach him how to configure certain things. Sorry for the newbie question.
thanks,
log via ssh to your server ,when you login run screen ,type your commands or do what ever you want then press CTRL+A then d , log out
tell your friend to ssh your server and ask him to run screen -r thats it.
read this http://www.kuro5hin.org/story/2004/3/9/16838/14935
-- Diaa Radwan , RHCE GNU/Linux System Administrator
On Thu, 29 Jun 2006, Erick Perez wrote:
I want to connect to my server, run screen as root and then let another person log in a root also and let him run screen and attach to mine so he can "see" what im doing on the server. I haven't played with screen a lot but it seems a nice feature to teach him how to configure certain things.
you do not need to run screen as root, but you prolly already know that. when starting screen always use; [user@machine ~]$ screen -D -R If you want to share your screen then start with the -x option, after logging as the same user. Not part of the original question, but three of my favorite screenrc settings
# make the shell in every window a login shell shell -$SHELL # really cool status line hardstatus alwayslastline "%{= kr}%C %D/%d %{= bw} %-w%{rw}%n %t%{= bw}%+w" # make the spacebar list all the windows bind ' ' windowlist -b
Another fun thing to do when sharing a screen session is to split it so that one person is on the top part of the screen in a shell, and another person is on the bottom screen. To split the screen Ctrl-A + S, then to tab from top to bottom ctrl-a+tab. To go back to single pane type ctrl-a+Q
also http://www.google.ca/linux?hl=en&q=screen+share+session&btnG=Search
On 30/06/06, Erick Perez eaperezh@gmail.com wrote:
Hi, I want to connect to my server, run screen as root and then let another person log in a root also and let him run screen and attach to mine so he can "see" what im doing on the server. I haven't played with screen a lot but it seems a nice feature to teach him how to configure certain things. Sorry for the newbie question.
Others have already pointed out that something like "screen -R -x" is probably what you want for "Multi display mode".
Just so you're aware, there's a tool called kibitz which comes with expect which is specifically for this sort of terminal sharing.
TBH, I can't think of anything you couldn't do with screen that kibitz would provide but it's worth knowing about incase you're ever on a system without screen but with expect.
Will.