Difference between revisions of "Screen"
From Anarchaserver
| Line 1: | Line 1: | ||
If you want to work together on the anarchaserver. Somebody can share the user screen, and other user can follow.  | If you want to work together on the anarchaserver. Somebody can share the user screen, and other user can follow.  | ||
[http://www.gnu.org/software/screen/manual/screen.pdf]    | [[http://www.gnu.org/software/screen/manual/screen.pdf]]  | ||
STEP 1 BECOME ROOT<br />  | STEP 1 BECOME ROOT<br />  | ||
All users become root<br />  | All users become root<br />  | ||
sudo -i  | sudo -i  | ||
STEP 2 OPEN SCREEN SESSION<br />  | |||
One user open a screen<br />  | STEP 2 OPEN SCREEN SESSION<br />  | ||
One user open a screen<br />  | |||
screen    | screen    | ||
STEP 3 WATCH SCREEN<br />  | |||
Another user (also root!) attaches to the screen<br />  | STEP 3 WATCH SCREEN<br />  | ||
Another user (also root!) attaches to the screen<br />  | |||
screen -x  | screen -x  | ||
STEP 4 TEST<br />  | |||
to test <br />  | STEP 4 TEST<br />  | ||
# "and write something" <br />  | to test <br />  | ||
(if you use a # it functions as a comment - even if you execute it)<br />  | # "and write something" <br />  | ||
(if you use a # it functions as a comment - even if you execute it)<br />  | |||
STEP 5 LEAVE THE SCREEN SESSION<br />  | |||
(without terminating it)<br />  | |||
CTRL a - d<br />  | STEP 5 LEAVE THE SCREEN SESSION<br />  | ||
<br />  | (without terminating it)<br />  | ||
(with terminating it)<br />  | CTRL a - d<br />  | ||
<br />  | |||
(with terminating it)<br />  | |||
exit<br />.  | exit<br />.  | ||
Revision as of 19:55, 20 September 2015
If you want to work together on the anarchaserver. Somebody can share the user screen, and other user can follow.
[[1]]
STEP 1 BECOME ROOT
All users become root
sudo -i
STEP 2 OPEN SCREEN SESSION
One user open a screen
screen 
STEP 3 WATCH SCREEN
Another user (also root!) attaches to the screen
screen -x
STEP 4 TEST
to test 
- "and write something" 
 
(if you use a # it functions as a comment - even if you execute it)
STEP 5 LEAVE THE SCREEN SESSION
(without terminating it)
CTRL a - d
(with terminating it)
exit
.