During some tasks it’s useful to have more than one person present to
check commands before they are entered. This may be due to the severity
of an event and the risk if the commands are incorrect, or may be as
straightforward as running a tutorial.
While Vidyo can share screens (in the display sense), it’s often not the
clearest for sharing a terminal window.
To enable multi-user screen sessions, the screen binary must be setuid
chmodu+x/usr/bin/screen
To save time during the screen session, we can add the necessary options
to ~/.screenrc of the user who will be setting up the session.
multiuseronacladduser1,user2,user3screen-L
multiuser allows a screen session to be connected to from several
places at once. acladd adds specific usernames to the list of
accounts allowed to connect to a screen session screen-L starts a
screen window with logging enabled.
If you don’t want this configuration for every screen session, this can
also be saved as a separate configuration file, and screen run with
screen-cconfigfile
In this example, the cltbld user will be running a screen session,
and has ~/.screenrc set up as above.
Use the -S option to give the shared screen a more useful name
cltbld@host1:~>screen-Sshared
As the other user:
user1@host1:~>screen-xcltbld/shared
With -L the output logs of the screen shell will be saved in the
current working directory as screenlog.0 with incrementing integers
if the file already exists. If you have colors turned on in your shell,
remember that you can use less-R to view this log file and render
the colors, instead of wading through pages of terminal coding.