.

Speed Up 9.10 by Disabling Services [KARMIC KOALA BIBLE #11]

English   English (change)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Faster Boot with System Efficiency

ubuntu karmic koala

For speed freaks out there, let's look at how we may tune the PC to load only those system services that we need, disabling unnecessary ones. Not only does this give a faster boot time but can also shore up potential security risks.

When you install Windows, unless you've got a PC crammed full of resource, one of the first things you would ideally do is to disable all those generally useless services, some of which are only there as legacies from prehistoric versions when Bill was practically poor and wearing those windows-sized glasses. (I hear Windows 7 is better, or at least the spectacles have improved.)

Set Up & Enhance Ubuntu 9.10 .. KARMIC KOALA BIBLE

In simple copy/paste steps .. from zero to hero.

Scroll down for the full series index.

Wake up and smell the Ubuntu! Hope it helps. the_guv

With Ubuntu Karmic, so toned a system it is, there aren't that many services one can disable but, if you really want the barest possible Koala - and everyone likes a Koala bear - saving on startup time a tad, here's how.

Disabling Services using BUM

Get the friendly GUI application, Ubuntu BootUp Manager or BUM for short (hey, no wise cracks):-

sudo aptitude install bum

Kick it up. Have to be root for this one:-

sudo bum

Or alternatively, navigate the menu:-

System > Administration > BootUp-Manager

.. either way, after giving your admin password, it'll take a little while to start the first time, while the programme scans your system.

One nice feature with BUM is the addition of a human-friendly description to each somewhat cryptic service name, to help identify what you may or may not wish to enable or kill.

To deactivate a service, simply uncheck the box next to the service item.

Otherwise, BUM benefits more advanced users with powerful run level editing functionality. At the bottom of the app's dialogue box, check the Advanced tab and a couple of tabs appear - Services and Startup and Shutdown Scripts: with these you can edit run levels, which basically means you can set whatever services to operate under different system conditions (maybe just for the root administrator, else for everyone, and more .. although run levels are not the point of this tutorial so, er, Google that.)

Disabling Services using sysv-rc-conf

An alternative method is using sysv-rc-conf, which is essentially the same but that works only from the terminal, and that misses the human-friendly service descriptions.

Download it:-

sudo aptitude install sysv-rc-conf

And, again as root, open it up:-

sudo sysv-rc-conf

Disabling Services using Command Line Syntax

The quickest way to deactivate services is by running the update-rc.d script from the terminal.

Let's say, for example, that you want to disable cron, the service that schedules tasks:-

update-rc.d -f cron remove

Like I say, I'm not getting into run levels here, but you can use update-rc.d to alter these too, as well as to start and stop services, and to prioritise them. To find out more, including examples:-

man update-rc.d

List of Services to Consider Disabling

Requirements vary, sure, but these are typical suspects to off-load.

avahi-daemon
Service Description
apmd for laptops and/or if you use UPSi
apport notifies the ubuntu makers of your pc errors
printer/scanner service
bluetooth for bluetooth
brltty for accessability
cups for printing
dns-clean dial-up modems
hotkey setup laptop thing
laptop-mode laptop thing
pcmciautils laptop thing
ppp-dns for old ADSL modems
rsync remove
samba for windows lan
saned for scanners
windbind for samba
wpa-ifupdown for wifi

Human-Readable Descriptions of init Scripts

For a handy list of services, coupled with their user-friendly descriptions, take a look at this page on the Ubuntu wiki.


If you liked that ...
  • How to Disable Windows XP Services

    Microsoft is well-known for bloating it's operating systems with a bunch of, well, crap that noone seems to need. Then there are all those functions that someone needs, only not you! Called services, these [...]
  • Kill the System Beep

    Here's how to stop that ruddy system beep every time the computer boots up. As it 'appens, there are several solutions for Ubuntu users, depending on your setup, so I'll list the lot and one should work for your [...]
  • Upgrading the System and Software

    Once you have repositories set up and your system updated to reflect what upgrades, patches, packages, software, libraries and so on are available, it's time to safe-upgrade. Safe-upgrade? Didn't it used to be [...]
  • GUV NEWS: Guvnr & MakeUseOf Karmic Tie Up

    PRESS RELEASE: Guvnr.com teams up with MakeUseOf.com to promote the ultimate Ubuntu 9.10 installation guide. Been a busy week or so with the release of the Karmic Koala Bible as a pdf with the boys at MakeUseOf.com [...]
  • EDIT/INCREASE server_names_hash_bucket_size

    If you're using nginx, and your domain name exceeds 32 characters, you may receive an error message when you restart the web server. Quite likely, you need to tell nginx to allow for longer domain names. To do so, [...]
  • INTRODUCTION: The 25-Part Ubuntu KARMIC KOALA BIBLE

    Detailing every aspect over 25 parts, this reference helps you to set up, enhance and use the ultimate installation of Ubuntu's superb new operating system. Stepped out in easy-read copy/paste detail, these how-to [...]
... maybe you'll like these?

.