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.
Dealing with more than one terminal:
To allow other users access:
To remove access:
+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
To convert an existing session to multi-user
- Attach
$screen -r - Command-mode
ctrl-a : - 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:
Ctrl-A cCreate a new terminalCtrl-A nNext terminalCtrl-A pPrevious terminalCtrl-A "List all the terminalsCtrl-A ARename this terminalCtrl-A SSplit the session.Ctrl-A QUn-split leaving only the current frame.Ctrl-A TabSwitch beteen Split framesCtrl-A :Enter screen command modeCtrl-A ?Help, list the possible commands
To allow other users access:
- Ctrl-A :
- multiuser on
- Ctrl-A :
- addacl [username]
(permissions) <This allows the given user access>
To remove access:
- Ctrl-a :
- acldel [username]
- Ctrl-a :
- multiuser off
- Ctrl-a :
- aclchg [username] [permissions]
+w add write
-w remove write
same works for "r" read and "x" execute
Cool commands:
sessionname [name]
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