Every Flavour Beans

“The time has come…to talk of many [technologies].” –Lewis Carroll(’The Walrus and the Carpenter’)
Development Tools. Web Frameworks. GNU/Linux. Nokia N800. Video Encoding.

October 1, 2006

How to Speed up Booting Into GNOME - A Gentoo Wiki Tip

Filed under: GNU/Linux, Gentoo — tabrez @ 4:32 pm

While there are several ways to cut down the time it takes for a GNU/Linux system to boot up completely, the most popular way is to prevent any unnecessary services from being started at the boot time(if you don’t host web pages from your machine, for example, then disabling the apache server from starting at boot time will save some precious CPU cycles). There are several HOWTOs littered around the internet describing how to identify and disable the services that are not needed by a user. You can go to Desktop -> Administration -> Services in GNOME to have a look at the most important services; the commands ‘rc-status boot’ and ‘rc-status default’ will give you a complete list. Make sure that you understand what a service does before trying to disable them.

Gentoo Wiki has another trick to speed up the boot process of Gentoo OS: start loading GDM at boot time by adding ‘xdm’ to the boot runlevel instead of the default runlevel. I am reproducing the procedure here mainly because the boot time for my Gentoo system got reduced roughly by 40% after I implemented this tip, which by no means is insignificant.

Follow these steps.

  1. Using your favourite editor, modify one line of code in the file /etc/init.d/xdm:
    sh# emacs -nw /etc/init.d/xdm

    Substitute the following line:

    /sbin/telinit a &> /dev/null

    with this line:

    /etc/X11/startDM.sh &> /dev/null

    (All the above names are case-sensitive.)

  2. Now run the following two commands:
    sh# rc-update del xdm
    sh# rc-update add xdm boot

That’s it. To immediately try it out, you can run ‘/etc/init.d/xdm restart’ command, or preferably, can do a full system reboot. The major gain for me after making this modification has been that the system no more gets stuck at the boot time for more than 10 seconds when it can’t find a DHCP server.

NOTE: This tip is meant only for the desktop machines. It’s not advisable for server machines for obvious reasons.

More information on Gentoo Wiki:

Speed up your boot time
Gnome Desktop for the End-User


If you want to receive future posts by email, enter your email address here:

Related Posts:

  • Installing Ubuntu & Kubuntu Dapper(6.06 LTS) For NVidia GeForce Cards
  • Apache + PHP + MySQL on Gentoo
  • K3B and amaroK: Only KDE applications I use
  • Direct Server to Server Copy using FXP
  • Spice up GNOME Desktop Using gDesklets(aka SuperKaramba in KDE)
  • C# & MonoDevelop (.NET) on Gentoo and Ubuntu
  • Moving A GNU/Linux Installation To A Different Partition

  • Readers who viewed this page, also viewed:


    6 Comments »

    1. [...] Cómo acelerar el arranque de Gnome: Algunos trucos para que cargue más rápido este entorno de escritorio. [...]

      Quote

      Pingback by Kernel Source » Artículos de la semana (2-8 Oct 2006) — October 10, 2006 @ 3:17 am

    2. Featured on BuzzTracker…

      Quote

      Trackback by BuzzTracker.com — November 19, 2006 @ 10:30 am

    3. [...] Dün geceden bu yana haberler bu kadar gibi, bir de ufak tiyo, (purak söyledi): /etc/init.d/xdm dosyasında “/sbin/telinit a &> /dev/null” (ya da buna en benzeyen ) satırı ” /etc/X11/startDM.sh &> /dev/null” diye değiştirin. Ardından: rc-update del xdm rc-update add xdm boot İşinizi görür sanırım, bende 5 saniye hızlandırdı şu boot işini.. [link] [...]

      Quote

      Pingback by ah ulan Gnome! « seqizz’in uyuz günlüğü — July 25, 2008 @ 8:23 pm

    4. [...] http://beans.seartipy.com/2006/10/01/how-to-speed-up-booting-into-gnome-a-gentoo-wiki-tip/ [...]

      Quote

      Pingback by Gnome hızlandırma ipucu « burak@unix~$ — July 25, 2008 @ 9:15 pm

    5. Hello I like the layout of this page. Can you please send me the Wordpress theme file ??

      Quote

      Comment by Sreejith K — November 4, 2008 @ 9:18 am

    6. Hi, does anyone have reported this to work for Ubuntu? I’d like to know before give it a try, and I don’t want to mess up my system. Thank you!

      Quote

      Comment by Juan Pablo Angamarca — December 7, 2008 @ 12:12 am

    RSS feed for comments on this post. TrackBack URI

    Leave a comment

    Subscribe without commenting


    Copyright (c) 2006, 2007 Tabrez Iqbal.
    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved. A copy of the license is included in the section entitled "GNU Free Documentation License".


    Powered by WordPress
    This website is hosted by Dreamhost