Sharing a session with others

Sharing a session with others

Linux Screen for Session Management
———————————–
Installing
Installing Screen on a Fedora or Red Hat® Enterprise Linux® 5 with yum.

1.Login as root:
su # enter root password
2.Use yum to install it:
yum install screen

shortcuts to navigate through screen environment.
•0 through 9 – Switches between windows
•Ctrl+n – Switches to the next available window
•Backspace – Switches to the previous available
•Ctrl+a – Switches back to the last window you were on
•A – Changes window session name
•K – Kills a window session
•c – Creates a new window
•[ – Then use arrows to scroll up and down terminal

configure to allow screen to be shared
1.As root: chmod u+s /usr/bin/screen
2.chmod 755 /var/run/screen
3.Log out of root, and run Screen as the user who is going to share the session:
screen

4.Press Ctrl+a, then type :multiuser on and press Enter.
5.Press Ctrl+a, then type :acladd user .

Connecting to the shared screen
1.SSH into the workstation
2.On terminal type: screen -x user

list available screen sessions
screen -ls
screen -x screen_session_name
 
Shadow a Remote Desktop Session in Windows
—————————————–

Just opened on the Terminal Server, open a command prompt and use the shadow command to shadow the original session

D:\Documents and Settings\admin>shadow /?
Monitor another Terminal Services session.

SHADOW {sessionname | sessionid} [/SERVER:servername] [/V]

  sessionname         Identifies the session with name sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server containing the session (default is curre
  /V                  Display information about actions being performed.

command to get the session is query session
read more usages from http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ts_cmd_querysession.mspx?mfr=true

To disconnect the shadow session from the remote side, press CTRL-*(on the numeric keypad)

Refferences
http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/
http://support.microsoft.com/kb/279656

Advertisements

Posted on September 22, 2012, in Uncategorized, Windows. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: