6

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.

6

It should be possible to force ureadahead to load the programs during boot. Do achieve this:

  1. Delete the .pack files in /var/lib/ureadahead/:

    Alt + F2gnome-terminalsudo rm /var/lib/ureadahead/*.pack
  2. Make sure you are using automatic login:

    Alt + F2gdmsetup
  3. Reboot.
  4. Once your desktop loaded, quickly start the programs you want to preload during boot.
  5. To check if it worked, you can check, if the files are listed in the newly generated .pack files, e.g.:

    Alt + F2gnome-terminalureadahead --dump | grep "gedit"
  6. 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 + F2gnome-terminalgksu gedit /etc/init/ureadahead.conf

    Then increase the sleep time in the last line: pre-stop exec sleep 45 and go back to 1.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.