![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Sep 2007
Location: 34°35'S - 58°21'W
My beans are hidden!
|
HOW TO: A Beginners Guide to Setting up Conky
Hi Folks
Preamble: First and foremost this thread isn't meant to be a place to display your screeshots of conky or to discuss the inner workings of the conky configuration itself. There are a couple of really good threads that will give you help in those areas:
While this topic is discussed in those threads above, trying to find the information is difficult as it's spaced out over hundreds of pages and thousands of posts. Here's some further reading to help you "configure" your conky if you are interested: Fact is, I'm hoping that his will be a 1 post thread to keep it "uncomplicated". If you see and error, have an addition, please PM me and I'll pop it in here giving due credit. So lets move on to: A Beginners Guide to Setting up Conky CHAPTER I Setting Up A Conky CONKY - Conky is a system monitor for X originally based on the torsmo code. Since its original conception, Conky has changed a fair bit from its predecessor. Conky can display just about anything, either on your root desktop or in its own window. Conky has many built-in objects, as well as the ability to execute programs and scripts, then display the output from stdout. First you need the file "conky" and I'd suggest you look at curl, lm-sensors and hddtemp as well, described below. You may as well get them now, I'll bet you will in the future if you don't: Code:
sudo aptitude install conky curl is a client to get files from servers using any of the supported protocols. The command is designed to work without user interaction or any kind of interactivity. curl offers a busload of useful tricks like proxy support, user authentication, ftp upload, HTTP post, file transfer resume and more. LM-SENSORS - utilities to read temperature/voltage/fan sensors Lm-sensors is a hardware health monitoring package for Linux. It allows you to access information from temperature, voltage, and fan speed sensors. It works with most newer systems. This package contains programs to help you set up and read data from lm-sensors. Homepage: http://www.lm-sensors.org hddtemp - hard drive temperature monitoring utility The hddtemp program monitors and reports the temperature of PATA, SATA or SCSI hard drives by reading Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T.) information on drives that support this feature. If you want all four, it's easy: Code:
sudo aptitude install conky curl lm-sensors hddtemp Now to use conky, open a terminal and type: Code:
conky But you want it on your desktop all the time and customized for your system, not in a pop-up window. I'm going to be using gedit, you may have mousepad or kate. I use Xfce, but have gedit installed because I open multiple files in a tabbed environment. I'm also suggesting a directory and file names, one is hidden, use whatever you like, I'm using my setup here as an example only. STEP 1 - Create a conky
Believe it or not that's it, you now have a working (maybe not configured correctly) conky. In terminal type (the -c is telling conky to load and run the file that follows): Code:
conky -c ~/Conky/conkymain The point is, you now have a working conky STEP 2 - Setting up conky to autostart on boot.
Code:
#!/bin/bash sleep 0 && # 0 good for Xfce - use 20 to 30 for Gnome conky -c ~/Conky/conkymain & #sleep 0 && #conky -c ~/Conky/conkyforecast & I left two extra lines in there (commented out) for future reference if you ever want to run more than one conky. That's why I'm suggesting the ~/.startconky here. Once you start with conky, in my opinion, it's addictive and you may want more than one running. This way you are prepared. Now you must make ~/.startconky executable. There are two methods: Terminal: Code:
chmod a+x ~/.startconky Right click on ~/.startconky > Properties > Permissions > check the box necessary to make it executable. OK, so now you have conkymain working and a way to start it and a second one for future reference inside your ~/.startconky file. Getting Ubuntu to Autostart conky. In Ubuntu:
In Kubuntu I am NOT a KDE user and have never seen it but I found this at the bottom of; http://ubuntuforums.org/archive/index.php/t-19154.html from 2006. Crinos512 has come up with an easy way to do this in KDE: Quote:
Having a problem with a transparent conky in KDE 4, Crinos512 has a fix for you in Post #24 Don't forget to thank him if you need it. Here's another one for KDE users by Ng Oon-Ee, Post #29 for those times when: Quote:
CHAPTER II A Multiple Conky Setup Ok, you have your conky set up, you've configured it the way you want it's working properly for your system. Now you want to put a second conky on your desktop, for example: weather. If you followed the example above you have a ~/.startconky file with a second entry commented out, called conkyforecast. Uncomment those lines and you are ready to create an run a second conky. Create that file the same way you created conkymain. When you get the blank file up I "suggest" copying your "conkymain" file into it and deleting everything below TEXT and change the "alignment" line for example: Code:
alignment top_right # top_right, top_left, bottom_left, bottom_right Code:
alignment bottom_left # top_right, top_left, bottom_left, bottom_right Add what ever you want conky to display below TEXT, save it. Then edit the ~/.startconky file removing the # before the last two lines and make sure the last line points to your second file: Code:
#!/bin/bash sleep 0 && # 0 good for Xfce - use 20 to 30 for Gnome conky -c ~/Conky/conkymain & sleep 0 && conky -c ~/Conky/conkyforecast & Code:
killall conky conky -c ~/.startconky More on conky:
OK that will get you started, now comes the fun part ... configuring it to your own personal tastes and machine. Have a Nice day Bruce PS: If you see errors or have other conky resources that you feel might be helpful here please PM me. ----- Dedicated to all the wonderful people that helped me with conky, you know who you are. Thank you ! EDITS:
__________________
Last edited by Bruce M.; February 27th, 2009 at 12:05 PM.. Reason: Added Information |
||
|
|
|
|
|
#2 |
|
Way Too Much Ubuntu
![]() |
Re: HOW TO: A Beginners Guide to Setting up Conky
good work
how to in how to, isnt it? More in conky: really all you can obtain in a terminal, all dbus program, all dcop program, all daemon, infinite posibilities...
__________________
mujeres y hombres de esta tierra
un otro mundo es posible otro mundo diferente justo si, y sin miedo de su gente |
|
|
|
|
|
#3 |
|
░▒▓»§«▓▒░
![]() |
Re: HOW TO: A Beginners Guide to Setting up Conky
Em, maybe I am missing something here, but what is the point of the ~/.startconky, and 'sleep 0 &' eh?
__________________
“It is a capital mistake to theorize before you have all the evidence. It biases the judgment." - Sherlock Holmes Linux User #441960 | Beginners Team | Wiki: DrSmall |
|
|
|
|
|
#4 |
|
Ubuntu Guru
![]() |
Re: HOW TO: A Beginners Guide to Setting up Conky
Nice write up, moved to tips and tutorials.
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
|
|
|
|
|
#5 | |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Sep 2007
Location: 34°35'S - 58°21'W
My beans are hidden!
|
Re: HOW TO: A Beginners Guide to Setting up Conky
Quote:
Thank you. Bruce
__________________
|
|
|
|
|
|
|
#6 | |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Sep 2007
Location: 34°35'S - 58°21'W
My beans are hidden!
|
Re: HOW TO: A Beginners Guide to Setting up Conky
Quote:
I'm happy. Have a nice day. Bruce
__________________
|
|
|
|
|
|
|
#7 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Sep 2007
Location: 34°35'S - 58°21'W
My beans are hidden!
|
Re: HOW TO: A Beginners Guide to Setting up Conky
Thank you for this.
CHIMO! Bruce
__________________
|
|
|
|
|
|
#8 |
|
░▒▓»§«▓▒░
![]() |
Re: HOW TO: A Beginners Guide to Setting up Conky
Oh. Ok, Thanks. It didn't make sense, since I don't use Gnome / Metacity
__________________
“It is a capital mistake to theorize before you have all the evidence. It biases the judgment." - Sherlock Holmes Linux User #441960 | Beginners Team | Wiki: DrSmall |
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Jul 2008
Beans: 6
|
Re: HOW TO: A Beginners Guide to Setting up Conky
Good work!!
Thank you. |
|
|
|
|
|
#10 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Sep 2007
Location: 34°35'S - 58°21'W
My beans are hidden!
|
Re: HOW TO: A Beginners Guide to Setting up Conky
You're welcome and Thank you.
Enjoy. Bruce
__________________
|
|
|
|
| Bookmarks |
| Tags |
| beginner's guide, conky, howto, setup |
| Thread Tools | |
| Display Modes | |
|
|