Recover from a lost remote shell

tmux is a very nice terminal multiplexer, is a good replacement for the old screen, but with many more features, you can have multiple virtual terminals in the same windows with the window splitted bet

tmux logo

ween them. (Until four or eighteen as you like).

It’s great, in the case if you are using a command that it will take too much time to complete, like a software upgrade using the apt tool.

You can go on with your work in the shell by doing Ctrl+B (in screen it was Ctrl+A), and the virtual terminal will detach from you console and you can return there later and see the later output. Sometimes when I login remotely using SSH from a low bandwidth connection like the one made from a mobile wireless 3G, the connection is unstable and most certainly the terminal session will be lost. One way to avoid this is to force a creation of a new virtual terminal in tmux everytime you connect with SSH.
Continue reading “Recover from a lost remote shell”

Recovering your work when the devil visits you without first asking…

No, I didn’t have an Interview with the Devil the way the Stones sang, because the devil when it decides to visit you, he never warns you. From this metaphor, perhaps what happened was how to lead with something such as when the most unexpected happens, we should be prepared for the wost, or better speaking, how to deal with that measure of  unpredictability that we can’t get ridden of.
Speaking now in matters without recurring to dramatic speaking, I live last week something of the worst that can happen to a domestic user – in few words, my PC stopped to boot, speaking in more IT-esque words, the partition table of my hard disk got corrupted and I could not boot neither Windows nor Linux anymore.

Continue reading “Recovering your work when the devil visits you without first asking…”