Saturday, April 18, 2009

6 Ways to Make Ubuntu Fast


1. Remove Network Manager if you do not need it “sudo apt-get remove network-manager”. If possible give yourself a static IP in /etc/network/interfaces like so:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.150
netmask 255.255.255.0
network 192.168.1.100
broadcast 192.168.0.255
gateway 192.168.1.1
Having a static IP helps with boot time as your machine doesn’t have to communicate with the router/dhcp server as much to obtain an address.
2. Also remove firestarter or whatever graphical firewall frontend you’re using.Learn to control iptables at boot up and shutdown. It’ll be much snappier.
3. Install bum, “sudo apt-get install bum” and run it with root access. Shut off all unnecessary services. If you’re not sure about a service research it before shutting it off. Also, install sysv-rc-conf. Run the application as root. This will allow you to control, in an easy way, what services start at which run level. It’s like bum, but more detailed. Be very careful with which services you are removing from which run-level. If you don’t know what you’re doing here, research it or don’t touch it. After you do this you may want to reboot to make sure you didn’t break anything.
4. Turn off usplash in grub. (Mind you, you’re bootup won’t be as pretty as the splash will go away).
  • vim /boot/grub/menu.lst
  • on the kernel line delete the words “splash” and “quiet”
  • Reboot to see the changes.
5. If you have a dual core processor, you can decrease your boot time with concurrency.
  • sudo vim /etc/init.d/rc
  • and find the line CONCURRENCY=none and change it to:CONCURRENCY=shell
  • Reboot to see the changes. (tired of rebooting yet?)
6. Remove some TTYs
I could easily do this by editing /etc/inittab and then commenting the extra TTYs there. With the new upstart mechanism in place, things are a little different.
You have to edit /etc/default/console-setup file. This file defines how many ttys should you get.
Change ACTIVE_CONSOLES=”/dev/tty[1-6]” to the number of consoles you want. Lets say, 3 ttys, then change it to “/dev/tty[1-3]“.
And then goto /etc/event.d/ and change the ttyx files that you DONOT want. Edit them and comment lines starting with “start on runlevel”. So, in this case, you’ll comment the start line in tty4..tty6 files.
Rebooting shoud minimize the number of consoles for you. Worked for me!! Good luck, NOTE: Even though you’ve reduced the tty number, X is still on Alt-F7. Again, go ahead and reboot to make sure you didn’t break anything.

No comments:

Post a Comment

Related Content

Related Posts with Thumbnails