I've noticed that Fedora takes a long time to boot
, and most of it can be disabled.
A quote from justol'bob:
Originally Posted by justol'bob
There have been several threads about how Fedora may take longer to boot
than you're happy with. A couple of excellent threads already exist on ways to speed up the process:
However, you may have wondered as all the startup processes speed by: 'Do I really need all of that? What ARE those things used for?'
This 'How-to' is to answer some of those questions and to suggest which processes MIGHT be turned off and which ones MUST be left on.
To start, let's learn a bit about the boot
is what starts your computer -- It loads the services and determins which ones to start in what order.
sets the bool values (true / false) on the services to enable/disable them at startup.
controls currently running services by starting, stopping or restarting them.
There are 7 runlevels to init, each will have a different configuration/do differnt things:
configurable mean you can edit the daemons & services that start
0 = shutdown (not configurable)
1 = single-user (not configurable)
2 = multi-user (configurable, full CLI functionality but no network, this one is usually ignored)
3 = multi-user (one of the common ones, configurable, full CLI functionality)
4 = Xen kernel (configurable, but ignored b/c not many people use it)
5 = Runlevel 3 + X Windows (configurable, most used, full graphical functionallity)
6 = reboot (not configurable)
Note that, init
are commands, and also that you'll need to be root first:
Now that you're root (make sure you add that space & dash after su
...), you can execute the commands:
chkconfig [service name] [ on | off ]
chkconfig sendmail off
chkconfig nvidia-glx on
service [service name] [ start | stop | restart ]
service network restart
service wpa_supplicant start
service sendmail stop
Next, let's go into the default runlevel: This is part of the /etc/inittab file:
# Default runlevel. The runlevels used by RHS are:
... - snip - ...
Changing the number (in this case, 3 -> 5) will change your default runlevel.
Now, let's move on.
Changing your default services
If you're in the GUI, you can install an easy tool to do so:
yum install system-config-services
It can now be accessed under [System menu] > Administration > Server Settings > Services
or by running
from the menu. I like to [Edit Runlevel menu] > Runlevels All
to let you edit runlevels 3, 4 and 5 all at once.
If you're in the terminal, you're stuck with the manual chkconfig command. Sorry.
for more info on the commands.
Last thing I'm going to say is don't be afraid to disable services; The worst that can happen is something won't work and on reboot you simply re-enable it.
= Only laptops need this.
= Only Desktops need this.
= All need this! Keep it enabled.
= Highly Recommended! But not absolutely needed. Better to keep enabled.
= Not needed at all but nice to have.
= Not needed, disable at will. Keep enabled if you're using things itn it's description, though.
[ service ] : [ Description ] : [ Priority ]
NetworkManager : Best network selection : L
acpid : Power managment : HR
anacron : More Cron management : HR
apmd : For laptop's battery monitoring : L
atd : Similar to Cron's functions : NN
autofs : Auto-detect/mount filesystems : HR
ahavi-daemon : Zeroconf stuff : NN
avavi-dnsconfd : DNS Zeroconf stuff : NN
bluetooth : needed for bluetooth wireless devices to work : NN
btseed : BitTorrent Seeding : NN
bttrack : BitTorrent tracking : NN
cpuspeed : dynamic CPU speed daemon : L
crond : Automated tasks : A
cups : Central Unix Printing System : HR
cups-config-daemon: Central Unix Printing System through D-Bus : HR
dc_client : SSL session cache client proxy : NN
dc_server : SSL session server : NN
dhcdbd : D-BUS control of ISC DHCP client : NN
diskdump : Create Dump files if system crashes : NN
firstboot : First-boot configuration utility : NN
after your first boot
gpm : Mouse support in terminals (runlevel 3) : NN
haldaemon : Hardware Abstraction Layer : A
hplip : HP Printer service : A
for all that use HP Printers
httpd : Apache's Web server : NN
iptables : Firewall. Plain & Simple. : A
isdn : Integrated Services Digital Network : NN
kudzu : hardware probe at startup, only if you're changing hardware : NN
lirc : Infrared controls : NN
lisa : Similar to "Network Neighbourhood" : R
lm_sensors : System sensor monitoring : A
that have CPU / fan sensors
mdnsresponder : Howl network : NN
messagebus : The system-messenger dbus : A
mysqld : MySQL's database server : NN
named : BIND DNS server : NN
netdump : netconsole & netcrashdump utility : NN
netfs : Network filesystems : HR
netplugd : Dynamic network managment : NN
network : Network connectivity & services : A
nifd : Network interface monitor daemon : NN
nscd : Name service caching daemon : NN
ntpd: Network Time Protol : NN
nfs + nfslock : NFS servers : NN
portmap : RPC connections, like NFS / NIS : NN
pcmcia : Laptop PCMCIA : L
redahead & readahead_early : Caches boot
services & therefore decreases boot
time : A
rpcgssd : NFS v4 connection helper : NN
rpcidmapd : NFS v4 connection helper : NN
rpcsvcgssd : NFS v4 connection helper : NN
saslauthd : plaintext auth in cyrus-sasl : NN
sendmail : Mail server, although there are better ones out there I'd disable this one and install something like squirrelmail. Either way, it's enabled by default and can be disabled. : NN
smb : The Samba or SMB server : NN
snmpd : Simple Network Management Protocol : NN
snmptrapd : Simple Network Management Protocol : NN
sshd: remote SSH server : NN
syslog : System & Kernel logger. VITAL!: A
wpa_supplicant : Wireless auth helper : A
who use wireless
xfs : X font server. Vital to graphic functioning!: A
xinetd : the replacement for inted, xinetd is a internet superdaemon. HR
ati-fglrx / nvidia-glx : Livna graphics drivers services : HR
Services you want to disable *should* be disabled in runlevels 3, 4 and 5 (the default for editing when using chkconfig [service] [ on | off ]
See the links provided below, you can also remove all instances of the
text in /etc/grub.conf:
if you're in gnome, kedit
if you're in KDE. For me, it's
Then simply remove any instance of the four letters
"rhgb" and not the entire line!
For more info (links, same as at the top):
Enjoy the fast boot