As a regular and experienced Ubuntu user, you may notice a decrease in the speed of your Ubuntu system over time. This may be due to the large number of applications that you may have installed from time to time, or that your configuration settings are not optimal for faster Ubuntu operation. In this article, I will show you several ways to speed up your Ubuntu system, which has been working for me for years.
The commands and procedures mentioned in this article ran on the Ubuntu 18.04 LTS system.
Reduce boot time by changing your grub configuration.
By default, your system grub gives 10 seconds to choose between operating systems on a dual boot system. When you know that most of the time you have to load the Ubuntu system into grub, it is useless to sit and choose Ubuntu manually on any other OS. One way to do this is to change the grub settings so that your system boots Ubuntu automatically, for example, after 2 seconds.
To do this, open the Terminal application either through Ubuntu Dash, or through the keyboard shortcut Ctrl + Alt + T.
The grub configuration file is located in the / etc / default / folder and can be modified as follows to change the grub timeout.
Use the following command to open the grub file in the Nano editor:
$ sudo nano /etc/default/grub
The highlighted part in the following figure is where you can set the grub timeout, which is 10 seconds by default:
You can change it to a shorter duration, preferably 2 seconds. Press Ctrl + X to save and exit the file. Then enter the following command to update the system grub:
$ sudo update-grub
Now, the next time you start your system, you don’t have to wait 10 seconds to boot into Ubuntu.
Get rid of heavy startup applications
As a regular Ubuntu user, you continue to install more and more applications on your system. Some of them may become part of your launch at will or automatically. Many boot applications take a lot of time to boot the system, and you have to wait a long time to get started on your system. One way to save time is to configure the launch on launch of only really necessary applications.
Access Startup Applications from the list of applications or through Ubuntu Dash as follows:
You will be able to view the list of applications added to your launch.
You can easily remove an additional application from startup by simply selecting the application and then clicking the “Delete” button.
In addition, you can click the “Change” button and add a delay after which a certain application will be launched after launch. In the “Edit” dialog box, add the command in the following format before the already recorded command as follows:
sleep 20; dropbox start -i
Use the Preload utility to reduce application startup time
Preload is a system utility that runs in the background, monitors frequently running applications, and already loads the appropriate dependencies into system memory so that these applications load quickly if necessary. You can use the following command as root to install this utility on your system:
$ sudo apt-get install preload
Install apps faster through apt-fast packaging
If you, like me, often use the apt-get command to load applications through the command line, there is a faster alternative. Apt-fast is a shell script shell that downloads an application package from several places at the same time, which makes it faster than the apt-get command.
It can be installed through the Terminal. Use the following command to add the ppa repository:
$ sudo add-apt-repository ppa:apt-fast/stable
Then enter the following command:
$ sudo apt-get update
Now use the following command to install apt-fast $ sudo apt-get install apt-fast
Now you can save time by installing your applications much faster.
Choose the best server for faster software updates.
The software mirror that your system uses to download software updates plays an important role in the download speed. Therefore, it is best to make sure that you are using the nearest mirror, as it significantly increases the download speed.
To do this, open the Software and Updates utility through the system bar as follows:
On the Ubuntu Software tab, click the Download From drop-down list and select Others from the list.
Then click on the “Choose the best server” button in the “Select Download Server” dialog box.
The system will then check the various mirrors to determine which one is most suitable for you. Then you can select the proposed server for faster download updates.
Using these simple methods described in this article, you will notice that the same system that you used will run faster than before. You will now have faster downloads, faster downloads of applications and updates, and faster downloads of frequently used applications.
5 Ways to Speed Up Your Ubuntu 18.04 System