1. Disable IPv6
At present, IPv6 has not yet arrived. This advanced feature of Ubuntu can be temporarily blocked to speed up the process.
#vi /etc/modprobe.d/aliases
alias net-pf-10 ipv6
===>
alias net-pf-10 off #ipv6
2. Run the boot script in parallel (use with caution)
/etc/init.d/ The following are startup scripts. By default, these scripts are started in sequence. In fact, if you are using a SATA or SCSI interface, you can start these scripts in parallel to speed up the startup process.
# vi /etc/init.d/rc
CONCURRENCY=none
===>
CONCURRENCY=shell
3. Change localhost to hostname
It is said that this method can improve the problem of slow application startup in GNOME after using Ubuntu for a period of time.
# vi /etc/hosts
127.0.0.1 localhost
127.0.1.1 Ubuntu
===>
127.0.0.1 localhost Ubuntu
127.0.1.1 Ubuntu
Note: Add the host name at the end of the first line, which is the name on the second line.
<>4. Disable Pango
Pango is a library that focuses on internationalization and is used for output and text rendering. However, this library may cause some programs such as Firefox to occupy too much CPU, so we can disable it.
# vi /etc/environment
MOZ_DISABLE_PANGO="1"
5. Disable gettys
# vi /etc/event.d/tty3
Comment out all lines starting with start with # (:%s/^start/#start/)
6. Install preload
You can preload some commonly used lib libraries and applications into memory to improve the startup speed of the program.
# apt-get install preload
7. Set swappiness
Reducing the system's frequent writes to swap will speed up switching between applications and help improve system performance.
The system default is 60, you can change it to 10
# sysctl vm.swappiness=10
If you want it to automatically set when it is turned on
# vi /etc/sysctl.conf (added)
vm.swappiness=10
8. # vi /etc/fstab
# /dev/sda1
UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf/ext3 defaults,errors=remount-ro 0 1
===>
# /dev/sda1
UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf/ext3 defaults,errors=remount-ro 0 0
9. # vi /boot/grub/menu.lst (cancel the boot screen)
title Ubuntu 7.10, kernel 2.6.22-14-generic root(hd0,0) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf ro quiet splash initrd /boot/initrd.img-2.6.22-14-generic quiet ===> title Ubuntu 7.10, kernel 2.6.22-14-generic root(hd0,0) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf ro quiet nosplash initrd /boot/initrd.img-2.6.22-14-generic quiet