I use my raspberry pi exclusively over ssh. While it's great to be able to use my regular laptop to control my pi, ssh has some downsides:
- Difficult to start long-running processes
- Lose all your state when you close your laptop
- Need to re-ssh in every new tab
tmux is a terminal multiplexer which is a program that can manage terminal sessions for you. We can start a session on login of your pi, and then whenever we ssh in we can automatically connect to that same session. When you log out and re-connect, you'll get the same terminal windows with the same processes still running. Suddenly those problems are now features: