Install Conky Lua On Ubuntu 14.10/14.04/13.10/13.04, Debian, Fedora, Linux Mint And OpenSUSE

Conky is a free, lightweight system monitor for X, that displays any information on your desktop. There are many nice themes available for conky, that can display clock, CPU usage, ram usage, swap, disk, net and more. In this tutorial, let us see how to install and configure Conky-Lua. This theme (See screensot bellow) allow you to display nice rings for Clock, cpu …, and it is available for Ubuntu, Linuxmint, Fedora, openSUES and Debian.

See also Next Generation, another nice conky theme from Conky-Lua author

Install And Configure Conky

First of all, we need to install conky.

On Debian/Ubuntu/Linux Mint:

Enter the following command to install conky.

sudo apt-get install conky

On Fedora:

sudo yum install conky

On openSUSE:

zypper install conky

Now, download Conky-Lua from here.

Then, go to the directory where you have downloaded the Conky-lua zip file and extract it. All files will be extracted in a folder called Conky-lua.

Conky-lua_001

Go to the folder and pick a file and extract it depending upon your distribution. As I use Ubuntu 14.10 desktop, I extracted the file Conky ubuntu-lua.tar.gz. if you use Linux Mint, then extract the file Conky Mint-lua.tar.gz.

As I told you before, I use Ubuntu 14.10 desktop, so I extracted the file Conky ubuntu-lua.tar.gz. This will be extracted in a folder called Conky ubuntu-lua. Go to the directory, find the file conkyrc, and rename it to .conkyrc. Make sure you have put the dot(.) at the beginning of the file.

Conky ubuntu-lua_004

Now, move the renamed file .conkyrc to your home directory. Hence, we have put the dot(.) at the beginning, so this file will not be visible. To make sure this file is moved to the home directory, go to View -> Show Hidden files in your file manager.

Home_005

As you see in the above screenshot, the file .conkyrc has been moved to the home directory. Then, create a new folder called .conky in the home directory, and copy the other 2 files to this folder (new-ubuntu-logo.png and clock_rings.lua).

.conky_007

Now we have to mention the actual path of clock_rings.lua file in the .conkyrc file. Open the file .conkyrc in any text editor,

sudo vi .conkyrc

Find the line:Change the path to the new one in the home folder (See screenshot bellow):

lua_load /~.lua/scripts/clock_rings.lua

And, change it to:

lua_load ~/.conky/clock_rings.lua

Save and close the file. We’re done. Open terminal and run conky using the following command:

conky -c ./.conky/conkyrc &

Now, look at your Ubuntu desktop. The conky-lua theme will be running and displaying all details such as date and time, usages of CPU, RAM, net, disk and swap etc.

snapshot

This method is same for all distributions such as Debian, Fedora, OpenSUSE. Due to lack of time and resources, I have checked this article only on Ubuntu 14.10.

If you want to run conky automatically on every reboot, add the conky command in the Startup Applications. To do that, open Startup Applications either from the Unity or Menu. Click Add

Enter the name and the following command in the Command box:

conky -c ./.conky/conkyrc &

Finally, click Save.

Startup Applications Preferences_012

Now, conky should start automatically on every reboot.

Note:  If you are using wireless, and you want to display the wireless status on conky, edit file .conkyrc and change eth0 to wlan0.

Edit file,

sudo vi .conkyrc

Find the line:

${color FFFFFF}${goto 125}${voffset 25}${downspeed eth0}
${color FFFFFF}${goto 125}${upspeed eth0}

And, replace eth0 with wlan0.

${color FFFFFF}${goto 125}${voffset 25}${downspeed wlan0}
${color FFFFFF}${goto 125}${upspeed wlan0}

That’s it. Cheers!

You would like to see our another article: Infinity- A stunning theme for conky | Ubuntu, LinuxMint & Fedora