As a Linux user, you may have experienced a decrease in the speed of your system over time. There can be a number of general suspicions that lead to a decrease in system performance, including a large number of heavy applications at startup, sub-optimal configurations, and many other factors. In this article, we will discuss some ways to help you improve the performance of your system.
The commands and procedures mentioned in this article were run on a Debian 10 system.
Reduce boot time by changing grub config
Grub is a program that allows you to select the OS you want to boot in a multi-OS environment. It detects the OS installed on your system and presents you with a selection menu for choosing the OS you want. By default, this usually takes up to 10 seconds. If you most often use one OS instead of another, then sitting and waiting 10 seconds is useless. You can reduce this time to, say, 2 seconds by changing the default timeout in your Grub config file. Here’s how to do it:
First, open a Terminal on your Debian OS. To do this, go to the “Actions” tab in the upper left corner of the desktop. Then search for the Terminal application by typing the appropriate keyword in the search bar. In the results, click the terminal icon to open it.
The GRUB configuration file is located at / etc. / default / catalog. To edit it, run this command in Terminal:
$ sudo nano /etc/default/grub
Now change GRUB_TIMEOUT default value, let’s say 2 seconds. After that press Ctrl + O and Ctrl + X to save and exit the file respectively.
After modifying the GRUB configuration file, you will need to update GRUB. To do this, run the following command:
$ sudo update-grub
The next time you boot your system, you don’t have to wait 10 seconds to boot.
Get rid of heavy startup apps
As regular Linux users, we install new applications on our system, and sometimes they become part of the launched applications. Launcher applications are those applications that start automatically when the system boots. The more applications you start up, the longer the system will take to load and you will have to wait longer to start working on your system. There is a way to work around this problem by leaving the required applications on startup, while uninstalling all others.
Open the Tweaks utility on your system by pressing the superkey and searching in the search bar as follows:
When the utility opens, select Launcher applications tab. Here you will see a list of apps added to your startup. Now click delete before any unnecessary application that needs to be removed from startup. If you’ve accidentally deleted the app you want, click + button to add it to the list of startup applications again.
Reduce application startup time with Preload
Preload is a system utility that runs in the background to help load programs faster. It monitors the applications that the user launches the most and preloads the appropriate dependencies into system memory.
To install the Preload utility on your system, follow these steps.
2. Edit /etc / apt / sources.list using the following command in Terminal:
$ sudo nano /etc/apt/sources.list
Now add the following line to your /etc/apt/sources.list file:
deb https://ftp.de.debian.org/debian jessie main
Replace ftp.de.debian.org/debian with one of the mirrors closest to you from the next page;
Once added, save and close the file using Ctrl + O and then Ctrl + X respectively.
2. Now update the system repository index by running this command in Terminal:
$ sudo apt-get update
3. Then install the preboot utility by running this command in Terminal:
$ sudo apt-get install preload
Install applications faster with apt-fast shell
Apt-fast is a shell script shell that is faster than the apt or apt-get command used to download packages from the command line. It improves download performance by simultaneously downloading application packages from multiple locations in parallel.
To install apt-fast, follow these steps:
1. Run the command in Terminal to import the key for the apt-fast repository.
$ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1EE2FF37CA8DA16B
2. Now add the apt-fast repository by running this command in Terminal:
$ add-apt-repository ppa:apt-fast/stable
3. After adding the repository, update the system repository index by running the following command in Terminal:
$ apt-get update
4. You can now install apt-fast by running the following command in Terminal:
$ apt-get -y install apt-fast
Now that apt-fast is installed on your system, you can start downloading any package using it like this:
$ sudo apt-fast install package_name
Adding mirrors for faster software updates
Another way to speed up loading is to add nearby mirrors based on your geographic location. Let’s see how to do it:
Method # 1
In this method, we will edit the apt-fast config file and add some additional mirrors to further increase the download speed with apt-fast. Don’t forget to add the nearest mirror. You can find a list of mirrors for Debian at:
Run the following command in Terminal to edit /etc/apt-fast.conf The configuration file:
$ sudo nano /etc/apt-fast.conf
Now add the mirrors as follows (separating multiple mirrors with commas):
MIRRORS=( https://ftp.debian.org/debian, https://ftp2.de.debian.org’)
After that save and close the file by pressing Ctrl + O and Ctrl + X respectively.
Method # 2
Open Updating software on your system by pressing the super key on your keyboard and searching with the search bar like this:
Please select Debian software tab in Updating software utility… Then press the button Download from dropdown and select Others from the list.
Then from Select download server dialog box click on Choose the best server…
The system will check for multiple mirrors to find the closest and best one for you, which can then be used to download packages faster.
In this article, we discussed some of the ways to help you improve the performance and speed of your system. Now you will have faster downloads, faster downloads of packages and updates, and even faster downloads of programs.
How to make Debian Linux faster