Screen: Difference between revisions
Jump to navigation
Jump to search
(→Howto) |
Xdelaruelle (talk | contribs) m (Portal: tag try) |
||
Line 1: | Line 1: | ||
{{Maintainer|Xavier Delaruelle}} | |||
{{Portal|Admin}} | |||
{{Portal|User}} | |||
<code class="command">screen</code> is a screen manager with VT100/ANSI terminal emulation. | <code class="command">screen</code> is a screen manager with VT100/ANSI terminal emulation. | ||
Line 35: | Line 38: | ||
* To lists screen from others: | * To lists screen from others: | ||
<code class="command">screen</code> -ls <code class="replace">username1</code>/ | <code class="command">screen</code> -ls <code class="replace">username1</code>/ | ||
{{Note|text=A <code class="file">$HOME/.screenrc</code> file can be use to systematically setup the multiuser mode variables <code>multiuser</code> and <code>acladd</code>.}} | {{Note|text=A <code class="file">$HOME/.screenrc</code> file can be use to systematically setup the multiuser mode variables <code>multiuser</code> and <code>acladd</code>.}} |
Revision as of 14:58, 29 November 2006
screen
is a screen manager with VT100/ANSI terminal emulation.
Basics
- Start a screen session (creates a single window with a shell in it):
screen
- Invoke a screen command (consists of a "Ctrl + a" followed by one other character):
C-a <command_char>
- Detach from this screen terminal (program continues to run when its associated screen session is detached):
C-a d
- Reattach a session (brings foreground a previously detached session):
screen
-r
- Invoke a screen customization command (used to set options):
C-a : <customization_command>
Multiuser mode
With multiuser mode, screen
reveal itself as a powerfull colaborative administration tool.
Requirements
screen
binary file must be setuid-root:
chmod
u+s /usr/bin/screen
![]() |
Note |
---|---|
The setuid setting is not mandatory if once the screen session is created by the first user, the second user can become |
screen
socket directory must not be NFS mounted (your default must be changed if it is$HOME/.screen
):
SCREENDIR
=/tmp/screen-username1
![]() |
Note |
---|---|
There is nothing to configure on Debian systems, as the |
Howto
- User, named
username1
, initiates a basic screen session name test:
screen
-S test
- Then, he enables multiuser mode for this session:
C-a : multiuser on
- After that, he allows the others, like
username2
, to connect to his session:
C-a : acladd username2
- At last, allowed users, like
username2
, can attach to the multiuser session initiated byusername1
:
screen
-rusername1
/test
- To lists screen from others:
screen
-lsusername1
/