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 some screen sessions are already open, please terminate them before starting a new session.
If you want to work together on the anarchaserver. Somebody can share the user screen, and other user can follow. If some screen sessions are already open, please terminate them before starting a new session.
<code>screen -wipe</code>
<pre>screen -wipe</pre>


http://www.gnu.org/software/screen/manual/screen.pdf
http://www.gnu.org/software/screen/manual/screen.pdf
Line 6: Line 6:
==STEP 1 BECOME ROOT==
==STEP 1 BECOME ROOT==
All users become root<br />
All users become root<br />
<code>sudo -i</code>
<pre>sudo -i</pre>


==STEP 2 OPEN SCREEN SESSION==
==STEP 2 OPEN SCREEN SESSION==
One user open a screen<br />
One user open a screen<br />
<code>screen </code>
<pre>screen </pre>




==STEP 3 WATCH SCREEN==
==STEP 3 WATCH SCREEN==
Another user (also root!) attaches to the screen<br />
Another user (also root!) attaches to the screen<br />
<code>screen -x</code>
<pre>screen -x</pre>




==STEP 4 TEST==
==STEP 4 TEST==
to test <br />
to test <br />
<code># "and write something" <br /></code>
<pre># "and write something" <br /></pre>
(if you use a # it functions as a comment - even if you execute it)<br />
(if you use a # it functions as a comment - even if you execute it)<br />



Revision as of 14:05, 27 September 2021

If you want to work together on the anarchaserver. Somebody can share the user screen, and other user can follow. If some screen sessions are already open, please terminate them before starting a new session.

screen -wipe

http://www.gnu.org/software/screen/manual/screen.pdf

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" <br />

(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
.

STEP 6 OP NEW SESSION IN A SESSION

(like another tab)
create new screen: CTRL A C which check the the screens (space)
move to the next tab of screen : CTRL (space)


STEP 6 Go in browser mode

Ctrl+A ESC