I’m at a conference, I have my ChromeBook (vanilla, no local linux installs or any such thing), I have internet and I’ve set up a VM out there in the cloud,
I’m regularly closing my laptop and wondering between talks, so it would be handy to be able to resume my ssh session without having to restart and without having to type “screen -r” every time.
My ChromeBook ssh client doesn’t let me set up a “ssh here and run this command” so instead, given that I’m only logging into my VM with a single session at a time I can add this to the end of my ~/.bashrc file:
# If STY has not been set (which screen # does). Either detach and connect to the # main screen session, or create one first # if the screen session is missing. if [ -z "$STY" ]; then screen -dR PyCon-AU fi
Problem solved, one technical distraction from the business of enjoying the conference down.