Wednesday, July 05, 2006

 

Note to self: Multi-user Screen

Screen is a rather cool app that allows you to use one terminal to access more than one shell session, there are additional features such as multi-user mode (share you shells with other users, or more than one session), detach allows you to close your ssh sheesion and come back later as if you never left, and split-screen alowing you to see more than one shell at once.

To convert an existing session to multi-user

  1. Attach $screen -r
  2. Command-mode ctrl-a :
  3. Set new mode multiuser on

Now attach from another terminal

$ screen -r / note the trailing slash seems to be important.

Dealing with more than one terminal:
Update 20-Jul-06 Sharing with other users.

To allow other users access:
  1. Ctrl-A :
  2. multiuser on
  3. Ctrl-A :
  4. addacl [username] (permissions) <This allows the given user access>

To remove access:
  1. Ctrl-a :
  2. acldel [username]
  3. Ctrl-a :
  4. multiuser off
To change another user's access:

  1. Ctrl-a :
  2. aclchg [username] [permissions]
Permissions are in the form:
+w add write
-w remove write

same works for "r" read and "x" execute

Cool commands:
sessionname [name] Changes the session name in a screen -list
writelock [on|off|auto] Changes group behavior
wall [message]
send a message to all screens of this session


Useful links:
http://web.mit.edu/gnu/doc/html/screen_8.html

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?