monks.co / blog

mosh tmux

Pi Guide

# mosh; tmux

# install

sudo apt-get install mosh sudo apt-get install tmux

# start tmux on boot

sudo cp ~/rpi-setup/src/tmux /etc/init.d/tmux
sudo chmod 755 /etc/init.d/tmux

test:

sudo /etc/init.d/tmux start
tmux attach
[ctrl-b d]
sudo /etc/init.d/tmux stop
tmux attach

that last attach shouldn’t work

run at startup:

sudo update-rc.d tmux defaults

# usage

mosh into raspberrypi:

mosh pi@raspberrypi.local

attach to tmux session:

tmux attach

detach when you’re done:

^B d

# tmux extras

# credit

from stuffaboutcode