Screen: Difference between revisions

From Grid5000
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{Warning|text=This page is under construction}}
{{Warning|text=This page is under construction}}


= Multiuser mode =
<code class="command">screen</code> is a screen manager with VT100/ANSI terminal emulation.


  <code class="command">chmod</code> +s /usr/bin/screen
== Basics ==
* Start a screen session (creates a single window with a  shell  in  it):
  <code class="command">screen</code>
* Invoke a screen command (consists of a "Ctrl + a" followed by one other character):
C-a <code class="replace"><command_char></code>
* 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):
<code class="command">screen</code> -r
* Invoke a screen customization command (used to set options):
C-a : <code class="replace"><customization_command></code>


Ctrl + a <code>:multiuser on</code>
== Multiuser mode ==
With multiuser mode, <code class="command">screen</code> reveal itself as a powerfull colaborative administration tool.


  Ctrl + a <code>:acladd root</code>
=== Requirements ===
* <code class="command">screen</code> binary file must be setuid-root:
  <code class="command">chmod</code> u+s /usr/bin/screen
* <code class="command">screen</code> socket directory must not be NFS mounted (your default must be changed if it is <code class="dir">$HOME/.screen</code>):
<code class="env">SCREENDIR</code>=/tmp/screen-<code class="replace">username1</code>


  <code class="command">screen</code> -x xdelaruelle/
=== Howto ===
* User, named <code>username1</code>, initiates a basic screen session:
<code class="command">screen</code>
* Then, he enables multiuser mode for this session:
C-a : multiuser on
* After that, he allows the others, like <code>username2</code>, to connect to his session:
C-a : acladd <code class="replace">username2</code>
* At last, allowed users, like <code>username2</code>, can attach to the multiuser session initiated by <code>username1</code>:
  <code class="command">screen</code> -x <code class="replace">username1</code>/

Revision as of 18:55, 24 March 2006

Warning.png Warning

This page is under construction

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
  • screen socket directory must not be NFS mounted (your default must be changed if it is $HOME/.screen):
SCREENDIR=/tmp/screen-username1

Howto

  • User, named username1, initiates a basic screen session:
screen
  • 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 by username1:
screen -x username1/