Skip to content

Instantly share code, notes, and snippets.

View technogoat's full-sized avatar

Naum Kostovski technogoat

View GitHub Profile
screen -x user1/pairprog
screen -S pairprog
multiuser on
acladd user2
ssh guest@host
screen -S pairprog
hardstatus on
hardstatus alwayslastline
startup_message off
termcapinfo xterm ti@:te@
hardstatus string "%{= kG}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
screen -t bash1 1
# multiuser setup
multiuser on
aclchg guest -wx "#,?"
sudo chmod +s /usr/bin/screen
sudo chmod 755 /var/run/screen
sudo apt-get install screen
trap "" 2 3 19 # stop user getting to shell
clear
echo "Welcome to pair-programming session"
echo -n "Press Enter to continue..." && read
screen -x dalibor/pairprog
exit
sudo useradd -s /bin/rbash guest
sudo passwd guest
sudo mkdir /home/guest