Written by TWCrap the 21 Feb 11 at 11:32.
Category: Others.
Related project:
Nothing/Others.
Status: New
Rationale
I work with an USB device with Ubuntu on it. At school i have to change a lot of classrooms, so i have to shut down Ubuntu and reboot later...
I work a lot with the terminal. But because of the reboot thing, doesn't work that fine.
So i went on the Internet looking for saving my terminal session so i can reboot and continue. But i haven't found 1 with is working.
Because the most work... but not after an shut down / reboot.
So my idea was to put something in the terminal that saves his current session (what it's doing and so on) and that you can select the file later (after an reboot) so you can continue where you where.
Agreed with Akerbos. Besides, it's better to set Ubuntu on a partition, anyway. So thataway, whilst going from class to class, you're asured of a saved terminal/ command line history.
1; The thing that i want is an button so you can save the status and when you browse with the terminal to that file and open it... It will continue with what is was doing.
2; I have Ubuntu on an partition on my USB (100 GB partition)
3; I have to shut down because i have to go to an another classroom... and as far as i know is it not possible to suspend and continue on an another PC.
4; And i know the security risk about it... But if you know what you are doing then nothing is happing (right?)
Darwin Survivor(Brainstorm moderator)
wrote on the 26 Feb 11 at 00:43
Ok, booting ubuntu off a USB DOES present some new special issues that definitely require some attention.
Does anyone know if it is possible to use part of the USB drive (or even a second USB drive) for suspend-to-disk operations?
Depending on the cli stuff you are doing (irssi, etc), you could also set up a home server with ssh (public/private keys) and screen (VERY useful cli tool) and simply re-connect from your next lab computer. That way your processes won't even have to be paused when you move between labs. In fact, you could even put portablePutty on the sub drive and not even need to reboot the machine.
What kind of software are you running on the cli (irssi, gcc, ssh, telnet, links, etc) and is it imperative that those applications be "running" on your lab machine, as opposed to simply connecting to another linux machine that IS running them?
You can't hibernate on one machine and resume on another, because there could be different hardware or other set-up differences.
But you can install Ubuntu on a USB and have a dedicated home partition. This means you will have saved history. I use that method myself. You can install your own programs, etc. Of course, you need to boot from the USB, not from the computer's hard drive.
Simply install Ubuntu using System > Administration > Startup Disk Creator. Set "Stored in reserved extra space". I recommend a USB of at least 4Gb, preferably more, for this.
>>>PaddyLandau wrote on the 2 Mar 11 at 13:02 Report as spam / offensive
You can't hibernate on one machine and resume on another, because there could be different hardware or other set-up differences.
But you can install Ubuntu on a USB and have a dedicated home partition. This means you will have saved history. I use that method myself. You can install your own programs, etc. Of course, you need to boot from the USB, not from the computer's hard drive.
Simply install Ubuntu using System > Administration > Startup Disk Creator. Set "Stored in reserved extra space". I recommend a USB of at least 4Gb, preferably more, for this.
This is a good idea, however, terminal must not restart running programs, excluding maybe man or less, which are generally safe, but rather save all the outputs on all tabs automatically and load it, including different command history for different tabs and it names, also print a line like
-----------------restored--------------------
Also that thing must store commands which was typed, but was not executed yet.
I'm unhappy when my long command, I have worked on for a hour disappear when I was having to restart X forcefully
But if you are doing an process that takes an long time, and the power shuts of or something like that... Than it's handfull if the terminal continue where it was...
Darwin Survivor(Brainstorm moderator)
wrote on the 22 Mar 11 at 15:17
@TWCrap That would require that every application you run in terminal use the HDD (or flash drive, what-ever) as RAM. This would SEVERELY impact performance to the point where your 1/2hour command would take around 4-5 hours!
Alright, I understand that. But isn't it possible to make some kind of an save button that makes an log file or whatefer with the current task and all that kind of stuff???
Darwin Survivor(Brainstorm moderator)
wrote on the 23 Mar 11 at 09:14
Hmm, so sort of like hibernation for a single application... It's technically possible, though I've never seen it done (aside from an application being specifically designed for it), you'd just have to work around architecture issues (cpu being the big one).
Another way to do it would be to use a light bootable linux distro that has VirtualBox (or similar) and run your real linux distro inside that. Since VirtualBox can "pause" any guest OS and it provides a layer between the OS and the hardware, you wouln't have to worry about your guest OS being able to resume on the new hardware.
Per-process hybernation is possible, but would need some serious work, the VirtualBox thing is kind of a "it can be done now with minimal work" temporary fix.
Good idea to start new window with predefined taps and titles from the last or saved session.
I am using the Dynamips for my Networking lab simulation, each time i have to re-open 8 tabs and re-set their titles and to start connecting to the telnet server for each tab, if their is any option to load all of this automatically would be great.