What I want to do is open some programs in the boot sequence so Ubuntu loads them into memory. I'm already using the preload package and it's not helping in that part. Thanks.
Asked
Active
Viewed 1,274 times
1 Answers
6
It should be possible to force ureadahead to load the programs during boot. Do achieve this:
- Delete the .pack files in
/var/lib/ureadahead/:
Alt + F2 →gnome-terminal→sudo rm /var/lib/ureadahead/*.pack - Make sure you are using automatic login:
Alt + F2 →gdmsetup - Reboot.
- Once your desktop loaded, quickly start the programs you want to preload during boot.
- To check if it worked, you can check, if the files are listed in the newly generated .pack files, e.g.:
Alt + F2 →gnome-terminal→ureadahead --dump | grep "gedit" If a program is not included, you can extend the phase during which ureadahead waits after boot, by editing the file
/etc/init/ureadahead.conf:
Alt + F2 →gnome-terminal→gksu gedit /etc/init/ureadahead.confThen increase the sleep time in the last line:
pre-stop exec sleep 45and go back to 1.
htorque
- 66,086