GNU / Linux operating systems don’t usually have big speed issues, but things can always get better. It’s no secret that the standard version of Ubuntu lost a lot of speed with the advent of the Unity graphical environment, so it might be a good idea to give our system “vitamins” to move even faster. One of the vitamins we can give our PC with GNU / Linux is called Prelink.
Prelink is a program that will improve system speed reducing application loading time. Of course, this improvement will not be a barbarity in many computers, but it can be noticed in some operating systems, such as those used by many libraries, such as KDE-based. Below we will teach you how to install and configure Prelink on your GNU / Linux computer.
- Prelink is available in the default repositories of most Linux distributions, so installing it is as easy as opening a terminal and typing the following command:
sudo apt install prelink
- It can cause some errors with some proprietary libraries and applications, so after installing it we will have to include some exceptions in the file /etc/prelink.conf. We open the file and copy inside the following:
# Skype -b /usr/lib32/skype/skype -b /usr/lib/skype/skype # Flash Player Plugin -b /usr/lib/mozilla/plugins/libflashplayer.so # NVIDIA -b /usr/lib/libGL.so* -b /usr/lib32/libGL.so* -b //usr/lib/libOpenCL.so* -b //usr/lib32/libOpenCL.so* -b /usr/lib32/vdpau/ -b /usr/lib/vdpau/ -b /usr/lib/xorg/modules/drivers/nvidia_drv.so -b /usr/lib/xorg/modules/extensions/libglx.so* -b /usr/lib/libnvidia-* -b /usr/lib32/libnvidia-* # Catalyst -b /usr/lib/libati* -b /usr/lib/fglrx* -b /usr/lib/libAMDXvBA* -b /usr/lib/libGL.so* -b /usr/lib/libfglrx* -b /usr/lib/xorg/modules/dri/fglrx_dri.so -b /usr/lib/xorg/modules/drivers/fglrx_drv.so -b /usr/lib/xorg/modules/extensions/fglrx/ -b /usr/lib/xorg/modules/linux/libfglrxdrm.so -b /usr/lib/xorg/modules/extensions/libglx.so
- Already with the exceptions included, we performed system optimization by opening a terminal and typing the following command:
- It is also worth scheduling the previous order to be placed periodically, as any update to the libraries could cause it to stop working. We will schedule the execution of the previous command by creating the file /etc/cron.daily/prelink with the text inside:
#!/bin/bash [[ -x /usr/bin/prelink ]] && /usr/bin/prelink -amR &>/dev/null
- And we give it permissions by opening a terminal and typing the following command:
chmod 755 /etc/cron.daily/prelink
Special steps for KDE
If you are using a KDE-based graphical environment, you will need to add it to the file /etc/profile.d/kde-is-prelinked.sh the following text:
We will then give you the necessary permissions by opening a terminal and typing the following command:
chmod 755 /etc/profile.d/kde-is-prelinked.sh
Have you tried it yet? What did you think? Have you noticed any improvement?