Attention: The latest info in InitNG can be found on https://wiki.ubuntu.com/InitNG.
This HOWTO is outdated. I stopped to maintain it, since I was running Windows exclusively for some time, and then decided I can live with classical init as it is.
Frustrated with the long boot time in Breezy and want to do something about it? Here comes the remedy! Meet InitNG - a new generation init program that is able to reduce your boot time by a third to a half. Below are step-by-step instructions how to do it on your system.
IMPORTANT: InitNG is pretty much work in progress, and not all things may work. Currently it does everything I personally want, but it may not be the case for you - your success depends on the combination of hardware and software you use. Suggestions, fixes, hacks and workarounds offered by people will be incorporated in this HOWTO.
1. Download InitNG version 0.3.3-2 from http://alioth.debian.org/download.ph...3.3-2_i386.deb
2. Install it:
3. Change the content of dbus.i file in /etc/initng/daemon to this:Code:sudo dpkg -i initng_0.3.3-2_i386.deb
http://bugzilla.initng.thinktux.net/...ment.cgi?id=69
4. Change the content of hald.i file in /etc/initng/daemon to this:
http://bugzilla.initng.thinktux.net/...ment.cgi?id=70
5. Set up gdm/kdm to load on default runlevel. To do that, run
if using Gnome, orCode:sudo ng-update add daemon/gdm default
if using KDE.Code:sudo ng-update add daemon/kdm default
6. Set up coldplug to run on system runlevel (we need this to have working sound - thanks Bitmastro!):
7. OPTIONAL: Set up various things that you may or may not need.Code:sudo ng-update add system/coldplug system
7.1. Start ADSL modem on boot (when using eciadsl driver)
7.1.1. Create a file called eciadsl.i with the following content:
7.1.2. Put this file in /etc/initng/system directory.Code:service system/eciadsl { need = system/initial system/mountfs system/usb start { /usr/local/bin/eciadsl-start } stop { /usr/local/bin/eciadsl-stop } }
7.1.3. Set ADSL service to start on default runlevel:
7.2. Start Jack audio daemon on boot (if you don't know what it is, you most likely don't need it).Code:sudo ng-update add system/eciadsl default
7.2.1. Create a file called jackd.i with the following content:
Note that parameters (daemon_args) listed here are only an example - you should set them according to your needs.Code:service daemon/jackd { need = system/initial system/mountfs system/coldplug system/alsasound daemon = /usr/bin/jackd daemon_args = -R -d alsa -d hw:0 }
7.2.2. Put this file in /etc/initng/daemon directory.
7.2.3. Set Jack daemon to start on default runlevel:
7.3. Start wireless connection on boot (thanks Manny C!).Code:sudo ng-update add daemon/jackd default
http://ubuntuforums.org/showpost.php...1&postcount=55
This worked for a specific configuration mentioned in the post referenced above. Let me know if it works for you.
7.4. More scripts for setting up other useful things can be found here (thanks Samuel!):
http://forum.initng.thinktux.net/vie...8855c0184409a7
8. Set up GRUB for booting with InitNG. To do that, edit /boot/grub/menu.lst. Find an entry that looks like
Your actual entry may look slightly different, but it must be the option that you normally choose to boot into Ubuntu.Code:title Ubuntu, kernel 2.6.12-9-686 root (hd0,8) kernel /boot/vmlinuz-2.6.12-9-686 root=/dev/sda9 ro quiet splash initrd /boot/initrd.img-2.6.12-9-686 savedefault boot
Insert an identical entry below. Remove the word 'splash' from the 'kernel' line in the newly created entry and append 'init=/sbin/initng' to that line (without quotes). Replace 'Ubuntu' word in the 'title' line with something like 'Ubuntu (InitNG)'.
9. Reboot and choose 'Ubuntu (InitNG)' in Grub boot menu.
After that, the system should correctly boot, and you should be able to login to Gnome/KDE. In my case the actual boot time reduced by 25 sec (from 65 sec to 40 sec). Your results may vary, depending of your configuration.
If something does not work, you can always boot into your normal configuration - just choose the boot option that you cloned in the Grub menu. Meanwhile, here's some fixes suggested by the kind people in this thread:
* If you have problems with ACPI, frequency scaling etc., try these quick links:
http://ubuntuforums.org/showpost.php...1&postcount=27 (thanks Maecenas!)
http://ubuntuforums.org/showpost.php...8&postcount=30 (thanks Rob2687!)
If you don't need ACPI, you can turn it off altogether:
* To make NVidia modules load (by mounting volatile kernel modules), do as prescribed here:Code:sudo ng-update delete daemon/acpid default
http://ubuntuforums.org/showpost.php...6&postcount=29 (thanks Meralon!)
Have Fun.



Adv Reply


Bookmarks