I have a laptop I bring to work and back home. At work, I often set up a lot of shells and open ssh connections. When I go back home, I have to restart all these connections, after logging into my home network, and then the VPN. It's a bit of a hassle to set up everything if I have a lot of shells open, a lot of ssh connections, servers started, and environment variables exported.
Is there any way I can maintain this setup so it would be ready for me to use when I get home?
I was thinking of setting up a separate box in my cube at work, and work on that box at work. When I get home, I could remote desktop into that box and all my sessions would be ready for me to use. However, I'd much rather be able to avoid the lag that remote desktop entails.
The only alternative I can think of is to write an Apple script to relaunch some commonly used SSH connections, export variables, launch servers, etc... So I'd have to restart everything but I'd be able to automate it. Unfortunately, my setup often changes so time spent maintaining the script might outweigh its advantages.
Info particular to me: My laptop is a Macbook pro. All the servers I log into are Linux.