wiki.allensmith.net

Personal "Rough Notes & Useful Links

User Tools

Site Tools


kb:linux:conky

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kb:linux:conky [2015/05/23 11:18]
Allen Smith Update after using w/ KDE
kb:linux:conky [2016/01/13 20:35]
Line 1: Line 1:
- ​====== Conky System Monitor ====== 
-<​note>​ 
-Part 1 » **Conky as a System Monitor**\\ ​ 
-Part 2 » [[kb:​linux:​conky_gcalcli | Conky Google Calendar using Gcalcli]]\\ ​ 
-Part 3 » [[kb:​linux:​conky_references | Additional References for Conky]] 
-</​note>​ 
-{{INLINETOC}} 
-\\  
  
-===== Install Conky with System Monitor Packages ===== 
- 
-==== Ubuntu 14.04 based Linux: Install Conky ==== 
-<​markdown>​ 
-* From the Terminal run the following commands: 
- 
-        sudo apt-get install conky-all curl hddtemp lm-sensors 
-        sudo apt-get install ttf-liberation ttf-dejavu ​    # these fonts might already be installed 
-        sudo chmod u+s /​usr/​sbin/​hddtemp 
- 
-<div markdown="​1"​ class="​notetip">​Apparently with the KDE Desktop (at least with Mint 17.1 KDE) the <​tt>​lm-sensors</​tt>​ package was already installed. So only in that situation, there would be no need to run the following command. (Do **not** try to setup lm-sensors a second time.)</​div>​ 
-* The following command will configure the lm-sensors package: 
- 
-        sudo sensors-detect 
-* For the (<​tt>​sensors-detect</​tt>​) command, answer all questions with "​yes"​ -- **including** the last question. 
- 
-RESTART SYSTEM ← to finish installing this and get everything running correctly 
- 
-</​markdown>​ 
- 
-==== Ubuntu 12.04 based Linux: Install Conky ==== 
-<​markdown>​ 
-* From the Terminal run the following commands: 
- 
-        sudo apt-get install conky-all curl hddtemp lm-sensors python-statgrab 
-        sudo chmod u+s /​usr/​sbin/​hddtemp 
-        sudo sensors-detect 
-  * For the last (<​tt>​sensors-detect</​tt>​) command, answer all questions with "​yes"​ -- **including** the last question. 
- 
-RESTART SYSTEM ← to finish installing this and get everything running correctly 
- 
-</​markdown>​ 
- 
-===== Starting & Restarting Conky Reliably ===== 
-<​markdown>​ 
-With the Xfce Desktop, using the "Save session for future logins"​ option (on the Logout Screen) does **not** always start up Conky the next time the system boots and is logged into. When Conky does not start up, it needs to be manually run (using Alt-F2, then typing in the command to run Conky) to get it going again. 
- 
-On the other hand, adding an entry for Conky to the Application Autostart list can result in an **additional** copy of Conky running each time the system is restarted. 
- 
-I have seen all of the above using the Xfce Desktop-- but similar situations might occur with other desktops. 
- 
-<p markdown="​1"​ class="​noteclassic">​The following configuration makes use of a Conky startup script to ensure that **only** a single instance of the desired Conky is running. … Adjust the below 5 second then 10 second delays as needed for your system.</​p>​ 
-* From the Terminal run the following commands: 
- 
-        mkdir ~/​.conky ​   # create a hidden directory for conky 
-        nano ~/​.conky/​conkystart.sh ​   # copy & past the following text into this empty file 
-</​markdown>​ 
-{{page>​data:​kb:​linux:​conkystart.sh&​nofooter&​noindent&​noeditbtn}} 
-<​markdown>​ 
-* Now run the following to set the permissions on the above file to permit it to be run as a script: 
- 
-        chmod +x ~/​.conky/​conkystart.sh ​   # needed file permission to run this script 
- 
-Now the .conkyrc configuration file that you would like to use with Conky System Monitor should be saved as conkyrc_sys in the just created .conky directory. ( <​tt>​~/​.conky/​conkyrc_sys</​tt>​ ) 
- 
-<div markdown="​1"​ class="​notetip">​**Tip:​** If the desired Conky configuration file already exists (as <​tt>​.conkyrc</​tt>​),​ then just run the below terminal command to move that configuration to <​code>​.conky/​conkyrc_sys</​code>​ 
- 
-~~~~ 
-mv ~/.conkyrc ~/​.conky/​conkyrc_sys ​   # move existing .conkyrc file into .conky directory 
-~~~~ 
-</​div>​ 
-Finally update the Autostart list to use the above Conky startup script, to ensure that only one instance of the desired Conky will be running. 
- 
-**For the Xfce desktop** 
- 
-* Xfce "​Menu"​ icon » "​Settings"​ » "​Session and Startup"​ » the "​Application Autostart"​ tab 
-  * If there is an existing Startup item listed for Conky, then select and Remove that. 
-  * Add a Startup Item for Conky using the following information:​ 
-    * Name: <​tt>​Conky System Monitor</​tt>​ 
-    * Command: <​code>/​home/​[user]/​.conky/​conkystart.sh</​code>​ ← Replace "<​tt>​[user]</​tt>"​with the login user name 
- 
-<p markdown="​1"​ class="​noteclassic">​**Noie:​** How an autostart item is created with other desktops should be similar to the above. Instructions for the other Ubuntu and Linux Mint desktops will be added as I do this for each of those desktops.</​p>​ 
- 
-</​markdown>​ 
- 
-===== Sample Conky System Monitor Configuration ===== 
- 
-==== The Conky Configuration File I Use ==== 
-<​markdown>​ 
-**The .conkyrc configuration file that I originally used on my workstation computer** 
- 
-* To use this directly **without** a startup script, save this **hidden** file to <​tt>​~/​.conkyrc</​tt>​ (use Alt-F2 then just type "<​code>​conky</​code>"​ to run this) 
-* To use the above startup script (highly recommended),​ save this file to <​tt>​~/​.conky/​conkyrc_sys</​tt>​ 
-<p markdown="​1"​ class="​noteclassic">​**Note:​** Instructions on the Internet refer to this configuration file as the "<​tt>​.conkyrc</​tt>​ file" -- so that is what will be used in the other parts of this document, when referring to this file in a **generic** manner.</​p>​ 
- 
-</​markdown>​ 
-{{page>​data:​kb:​linux:​conkyrc_sys&​nofooter&​noindent&​noeditbtn}} 
-<​markdown>​ 
-**Note:** The above configuration is for an **old** Gaming PC that was build using an AMD Athlon 64 X2 CPU, an ASUS motherboard and an Nvidia graphics card. 
- 
-<p markdown="​1"​ class="​noteimportant">​Different ​ motherboards,​ video cards and CPUs could require a different coding for the GPU and CPU section of the above configuration script. (What I often need to "​**fix**"​ in the above script.)</​p>​ 
- 
-**Different GPU and CPU sections example:** an Intel Core2Duo CPU in an HP desktop PC that **does not use** Nvidia Graphics 
-<pre> 
-# |--Nvidia GPU 
-#${voffset 4}${goto 6}${font ConkyColors:​size=16}e${font}${voffset -10}${goto 32}Nvidia GPU speed:​${font Liberation Sans:​size=9}${alignr}${color1}${nvidia gpufreq} #​MHz${color}${font} 
-#${voffset -2}${goto 32}GPU temperature:​${font Liberation Sans:​style=Bold:​size=10}${alignr}${color3}${nvidia temp} °C${color}${font} 
-# |--CPU 
-${voffset 4}${goto 6}${font ConkyColors:​size=16}e${font}${voffset -10}${goto 32}CPU1: ${font Liberation Sans:​style=Bold:​size=9}${color1}${cpu cpu0}%${font} ​ ${alignr}${color2}${cpugraph cpu0 12,80 709937 51751E} 
-#${voffset 0}${goto 32}CPU frequency:​${alignr}${color1}${freq_g 1} GHz${color} 
-${voffset -2}${goto 32}CPU2: ${font Liberation Sans:​style=Bold:​size=9}${color1}${cpu cpu1}%${font} ​ ${alignr}${color2}${cpugraph cpu1 12,80 709937 51751E} 
-${voffset 0}${goto 32}CPU frequency:​${alignr}${color1}${freq_g 2} GHz${color} 
-${voffset -2}${goto 32}CPU temperature:​${font Liberation Sans:​style=Bold:​size=10}${alignr}${color3}${hwmon 1 temp 3} °C${color}${font} 
-</​pre>​ 
- 
- 
-</​markdown>​ 
- 
-==== Install the Symbol TrueType Fonts ==== 
-<​markdown>​ 
-<p markdown="​1"​ class="​noteclassic">​To keep things "​simple"​ and light-weight,​ I use several symbol fonts instead of graphic in my <​tt>​.conkyrc</​tt>​ file. So the below notes explain how I install the fonts, that the above Conky configuration script needs, when using Ubuntu LTS based Linux. </p> 
- 
-</​markdown>​ 
-{{kb:​conkyttf.zip | conkyttf.zip (110KB)}} ... the free TrueType fonts that I use with Conky **instead** of Graphics with the above Configuration File. 
-<​markdown>​ 
- 
-<p markdown="​1"​ class="​noteimportant">​**Note**:​ The following instructions assumes the **extracted** "<​tt>​conkyttf</​tt>"​ folder is in the "<​tt>​Downloads</​tt>"​ directory for the current user.</​p>​ 
-* To install these fonts for only the **current user**, I use the following: 
- 
-        mkdir ~/.fonts 
-        cp ~/​Downloads/​conkyttf/​*.ttf ~/.fonts 
-        sudo fc-cache -f -v 
- 
-* **Or** to install these fonts for **all users** on the system, I use the following: 
- 
-        sudo mkdir /​usr/​share/​fonts/​truetype/​conky 
-        sudo cp ~/​Downloads/​conkyttf/​*.ttf /​usr/​share/​fonts/​truetype/​conky/​ 
-        sudo fc-cache -f -v 
- 
-</​markdown>​ 
kb/linux/conky.txt · Last modified: 2016/01/13 20:35 (external edit)