Prelink, improves the loading speed of applications

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.

How to install and configure Prelink

  1. 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
  1. 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
  1. Already with the exceptions included, we performed system optimization by opening a terminal and typing the following command:
prelink -amvR
  1. 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
  1. 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:

export KDE_IS_PRELINKED=1

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?

ReadAlso

Related Posts

Next Post

Leave a Reply

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

You might also like

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.