Maintain terminal session after reboot?
I recently installed and started using guake terminal. I really enjoy the way it keeps terminal sessions active after closing the window, however whenever I reboot I have to rerun some of the tabs that I usually keep alive for programs such as irssi.
I would like to know if there is a way to either remember sessions after reboot, or to reopen tabs and rerun set commands.
For example, when I reboot guake will automatically create a new tab called irc which immediately runs screen irssi
.
Solution 1:
I don't think Guake can (currently) maintain sessions in the way you describe. But, if you execute the following commands, you can create the same tab every time:
guake --new-tab=irc
guake --select-tab=irc
guake --execute-command="screen irssi"
Repeat for every tab you want, replacing the tab name (irc
) and the command ("screen irssi"
).
For more options like renaming tabs, making Guake open, and so on, see guake --help
.
Solution 2:
Perhaps you could put these into your .bashrc
or in /etc/rc.local
so that you don't ever need to run them manually, this way they'd either be run when a terminal is opened, or when the system is booted