Breaking News

Speed up Ubuntu on Chromebook

Speed up Ubuntu on Chromebook

If you successfully installed Ubuntu or other GNU/Linux on your Chromebook device, maybe want to optimize your new OS on your Chromebook. Note that isn’t specifically for Chromebook and can be used on most GNU/Linux systems, but is a good starting point to get more performance on your Chromebook. Warning: this document comes.

Warning: this document comes without warranty of any kind. I do not issue any guarantee that this will work for you!

Before starting

Update information repositories and all the packages we have installed so far.

Open a terminal (Applications -> Accessories -> Terminal) and type as follows:
sudo apt-get update && sudo apt-get upgrade


1. Tuning Swappiness

If you have been running Linux systems for some time and you have used applications like ‘top’ to see what’s going on in your machine, then you’ve probably wondered: Where has all my memory gone? You should know that the largest place it is being used in is the disk cache, as the cached memory is free and it can be replaced anytime if a newly started application needs that memory. Linux systems are made like this to use so much memory for disk cache because the RAM is wasted if it is not used and if something needs the same data again, then there is a very good chance to be in the cache memory.
Open a terminal (Applications -> Accessories -> Terminal) and use your favorite text editor to edit the file /etc/sysctl.conf:
sudo nano /etc/sysctl.conf


Now add the following line at the end of this file:


The number at the end of this line can be between 0 and 100. At 100 the Linux kernel will prefer to find inactive pages and swap them out, while value 0 gives something close to the old behavior where applications that wanted memory could shrink the cache to a tiny fraction of RAM. Save, close and reboot.

2. Concurrent booting

The order in which scripts run at startup is controlled by the RunLevel system. It is possible to
reorder the boot scripts according to the script dependencies. Some init.d scripts can then be launched in parallel during startup and shutdown, so that (for instance) the boot process won’t have to stop dead while it waits for the Internet connection to come up.
sudo nano /etc/init.d/rc
and find the line CONCURRENCY=none and change it to:
Note that old ‘startpar’ value on CONCURRENCY was obsolete and now is replaced by ‘makefile’ value.
Save, close and reboot your Chromebook to take effect.

3. Prelinking

Prelinking is a process to speed up system by reducing the time,the application program needs to begin.It is done by using a free program prelink,developed by Jakub, for Linux.It is just equivalent to the prebinding process of MacOSX. Prelinking process decreases the time in dynamic linking process(by Modifying ELF shared libraries and executable files) and due to the fewer reallocations, it also reduces the run time memory consumptions,so it also helps you in working more efficiently with low amount of RAM.
sudo apt-get install prelink
Now we’ve to edit the prelink config file:
sudo nano /etc/default/prelink
And change the following line PRELINKING=unknown to:
Now prelinking is activated and prelinking process will begin in background in a periodic manner.
NOTE: if you feel some problem in running other application programs due to prelinking then remove it from executable files by typing this command:
sudo prelink -ua
Then remove the prelink package.

4. Install preload

Preload is an adaptive readahead daemon. It monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times.


sudo apt-get install preload


Preload will run silently in the background. If you want to change the way preload behaves, you can modify its configuration file: /etc/preload.conf
If you change the configuration, you need to restart preload:
sudo /etc/init.d/preload restart


5. Blacklist ipv6

If you are using ipv6 please skip this tip. Else if you disable IPv6 you can get reasonable Internet connection and DNS speeds. Edit the file /etc/modprobe.d/blacklist.conf:


sudo nano /etc/modprobe.d/blacklist.conf


Then add the following:
# disable ipv6
blacklist ipv6

6. TCP tuning

Like most modern OSes, Linux now does a good job of auto-tuning the TCP buffers, but the  default maximum Linux TCP buffer sizes are too small. You can edit the /etc/sysctl.conf:


sudo nano /etc/sysctl.conf


Then add the following:


net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_retries1 = 3
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 7200
net.ipv4.tcp_syn_retries = 5
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1


Now reload the changes:

sudo sysctl -p

7. Ubuntu tweak

Ubuntu Tweak is a must have application for Ubuntu, it is an application to configure Ubuntu easier for everyone.
Install Ubuntu Tweak in Ubuntu via repository, open terminal and enter the following command:


sudo add-apt-repository ppa:tualatrix/ppa




sudo apt-get update && sudo apt-get install ubuntu-tweak


There are more tips, I’ll try to add more If I’ve time, if you want please share your favorite tips and tricks on comments.

Leave a Reply

Your email address will not be published. Required fields are marked *