Gmail+Weather+Beauty right on your Ubuntu desktop September 27, 2008
Posted by askgel in Design, Desktop, Linux, Software, System.Tags: AWN, conky, gnome-do, Linux, ubuntu
trackback
[Update:After being hit severely by ‘Digg Effect’ when this post made to the front page this morning, this site is back again. Thank you for your patience, Diggs (Buries) and Comments folks! Digg on!]
Ever wished that you had new mails notifications right on your desktop? Ever wished you knew the weather info right on your desktop? Ever wished you had your hardware information right on your desktop? Ever wished your desktop was productive and beautiful at the same time? Ever wished you didn’t have to use Mac4Lin theme to hide the ‘ugliness’ of Ubuntu’s native appearance? Ever wished you had a desktop that looked as beautiful as mine? Let’s fulfil your wish:
I have already talked about how to make your Ubuntu desktop look beautiful and productive. This time I will focus mostly on Conky. Conky is a lightweight system monitor for X. Not only monitoring system, with a little bit of scripting, it can be useful to know your new mails, weather info etc.
Here I’ve attached all the required files, attached my Conky configuration file and explained how to make your desktop look similar to mine.
[ad]
[Updated]
- Read my previous post about AWN and Gnome-Do.
- Install Conky:
$ sudo apt-get install conky
- Download this file and save in your home directory(Right-click, Save Link As…save the file as .conkyrc)
- Make a directory scripts in your home directory. Download these scripts, extract and copy them inside the directory you just created.
- Download all these fonts, extract and copy them inside .fonts directory in your home directory. If you don’t have the .fonts directory, you need to create it. You might need to have administrative privileges to create this directory.
- Open .conkyrc file. Look for this line:
${execpi 300 python ~/scripts/gmail_parser.py yourgmailusername yourgmailpassword 3}
- Replace yourgmailusernamewith your username and yourgmailpassword with Gmail password. You might also need to install feedparser (thanks Onno and Neil for bringing this to my attention)
$ sudo apt-get install python-feedparser - To monitor your hard disk and CPU temperature install lm-sensors and hddtemp
$sudo apt-get install hddtemp
$sudo apt-get install lm-sensors- Now you need to know the location id for your location for weather info. Head to http://weather.yahoo.com. Enter city or zip code for your location and click go. Copy the location ID from the adress bar. For examples the location id for Geneva, Switzerland is SZXX0013, for Kathmandu, Nepal is NPXX0003
- Open pogodynka.sh file look for this line
kod=USID0025
. Replace USID0025 with the location ID you got from step 10 above - If you want the temperature in Celsius instead of Farenheit, find the following line:
w3m -dump http://weather.yahoo.com/forecast/"$kod".html | grep -A21 "Current" | sed 's/DEG/°/g' > $plik
Replace it with:
w3m -dump http://weather.yahoo.com/forecast/"$kod"_c.html | grep -A21 "Current" | sed 's/DEG/°/g' > $plik
- Create a new empty file in your home directory. Name it weather. Leave the file as it is; do nothing with the file.
- Bring Run Applicationdialog box (Alt+F2) type conky to launch it
- If everything goes right, your desktop should be looking much ‘cooler’
More info:
- My wallpaper, The Farm House, is from http://interfacelift.com/wallpaper_beta/details/1545/the_farmhouse.html
- Emerald Theme is Scaled_Black_Mod from gnome-look.org
- More variables for conky
- Settings variables for conky
[If you want to share your desktop and want me to show the best looking desktops on my blog, shoot an email to admin[at]quicktweaks[dot]com along with the screenshot of your desktop and the conky file (if you wish). If you decide to send your conky file, don’t forget to delete your gmail username and password. Sharing is learning!]
[ad]
Great tutorial. It really puzzles me why Ubuntu comes standard with a fugly interface when something as clean and elegant as this is achievable.. This is where linux falls down if you ask me. Very ugly, boring UIs (and that my friends, is what the masses want!)
I wish I was Mac but now I am happy that I am Ubuntu | nerdd.net…
\r\nEver wished you had a Mac only because it looks beautiful? Ever wish you could hide the ugly loo…
Step 10 .
What do we need to do with location ID. do we need to paste it into the file which is named weather ?. I tried this, but the weather file created gets overwritten by conky each time it is started
very nice but i have one question:
How can i get the tempereture in Celcius
@vgh and @bert. The post is updated to cover your questions. Please go through the tutorial once more. Sorry for the inconvenience and confusion.
Your panel text is unreadable.
To do this type this in the terminal: sudo apt-get install gnome-color-chooser
Then go System > Preferences > Gnome Color Chooser
Then click the Panel tab and change to Normal Foreground color to white or whatever color is the most readable in a transparent panel.
Thanks
I cannot get 2 things to work.
1. The Temperature displays in Celsius but i still have LETTER “F” while it should be “C”.
2. Gmail checker is not working.
Help Please. thanks
[…] Check it:http://www.quicktweaks.com/2008/09/27/gmail-weather-beauty-right-on-your-ubuntu-desktop/ […]
Amazing post. I loved openlogo things with conky 🙂
Ugliness shines through, no matter what you do. Look at that non-transparent scroll bar and look at that “XBMC media center” to display its ugly logo and text.
No themes or nice wallpapers are going to help all those ugly looking bundled in and “3rd party” apps you have to use. Good design and desire for it has to be everywhere.
[…] Смотрим, читаем: Gmail+Weather+Beauty right on your Ubuntu desktop […]
If your new mail does not show up (i.e. gmail feed is not read), check your Python modules. I had to install the feedparser module:
sudo apt-get install python-feedparser
Onno
I’m fairly new to Ubuntu, and I’m having some trouble getting conky working as it’s supposed to. I’ve gone through all of the steps and I’m fairly sure that I’ve done everything properly (of course, if it isn’t working, something’s up).
Whenever I try to run conky, instead of it opening up on the desktop as beautifully as yours appears, it opens in this ugly little window with tiny white text on a black background. It displays information like uptime, CPU usage, etc.
I’m wondering if anyone knows what issue I’m experiencing here, and how I might go about fixing it.
Hey, how do I add CPUs to the conkyrc file? I have a quad-core processor, and I wanna see all my CPUs up there.
thanks in advance,
Sam
This was a very helpful post, thanks. Two notes:
On my system I had to add:
“sudo apt-get install python-feedparser” since this module was missing.
Also, for those wanting Celsius, it is nice to also grep for ‘F’ in the pogodynka.sh script and change these to C.
awesome, just one problem, it wont read my gmail….
scratch that, it works now (thanx Neil) one more question though, is there a way to change the colors? some of it clashes with my background…
hi. Must say that i loved the tutorial.
But having a problem with my dual-monitor setup (second screen just showing 420x380ish) i had to reconfigure alot, but thats the fun part right =)
Now to my problem. I Can not make the weather and gmail to work. Other than that. Puuurfect.
i have the same problem as sponty
conky comes up in a black ugly window, not on the desktop
Thanks for advice, now my “C” and gmail works now.
One last thing is the battery bar of mine is not showing.
Please help.
Same as sponty too… black box only 😦
any ideas?
Never mind… it’s always the fine print! 🙂
be sure to “save the file as .conkyrc”
not conkyrc as it would be by default when you save as 🙂
I got the battery bar working already by changing to BAT1 in .conkyc
Thanks all
[…] Gmail, Weather, Beauty on your Ubuntu Desktop | Quick Tweaks (tags: ubuntu desktop howto conky) […]
[…] – Beautiful Conky Setup […]
Ah, you’re right Tim!
Thanks!
[…] Optimize your Ubuntu desktop Filed under: Linux — 0ddn1x @ 2008-09-30 16:52:13 +0000 http://www.quicktweaks.com/2008/09/27/gmail-weather-beauty-right-on-your-ubuntu-desktop/ […]
enjoyed, but i have two problems…
1. weather isn’t working. i’ve tried to fix it but can’t figure out what wrong.
2. i am hard wired into my network and this set up won’t show my data streams, how do i fix that?
This conky thing is beautiful….however, i’m having issues. I am getting these errors:
cat: /home/rishijain/weather: Is a directory
/home/rishijain/scripts/pogodynka.sh: 50: cannot create /home/rishijain/weather: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
tail: error reading `/home/rishijain/weather’: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
head: error reading `/home/rishijain/weather’: Is a directory
localhost [127.0.0.1] 7634 (?) : Connection refused
the weather thing isn’t working, and the connection refused thing keeps coming. Any ideas?
I got most of it working however my bars don’t become transparent, is that a something I should set myself manually?
[…] – Beautiful Conky Setup […]
where is the pogodynka.sh script??
But it looks so ugly?! Lol…
Hello,
I seem to have a problem with starting conky automatically, if I add conky under sessions it loads up with a kind of black frame around it and it stays on top of every window.
It only works good if I start it up manually (Alt F2, Conky).
Any advice?
Thanks
DaC
Wow, this is really great! I just recently found conky, and now this makes it even better. If anyone is interested, I wrote a little script a couple months ago that puts a continuously updating day & night map of the earth onto the desktop, with ~current cloud coverage, to make it look pretty. You can check it out here if you like: https://sites.google.com/site/sweetlinuxstuff/day–night-desktop
One change i would and will make is to use eterm instead of terminal. you can get a totally transparent terminal that “sits” on the desktop like conky with a few command line switches. I use it now and will use it once I apply this . If anyone is interested in the switches, please let me know. I will email them or post them here when i get home if anyone wants them.
Also, does anyone know how to get the forecast in teh weather?
Ablosutly awsome desktop!! I really, really love it, and i’m really picky about desktops, i’ll try it later! It rocks! Thanks for sharing.
Any idea how I’d modify the script to tell me if a different e-mail account (has IMAP and POP3 access) has mail rather than GMail?
[…] – Gmail, Weather, Beauty on your Ubuntu Desktop | Quick Tweaks mfff (tags: theme […]
Looks good? Yes. Useful and easy to use? Nope.
[…] Gmail+Weather+Beauty right on your Ubuntu desktop […]
Hey There
All is working perfectly loving the look. I’m wondering how to get my conky to update, my time and weather etc all stay the same, is there any way I can accomplish this?
Thanks Bud
Hi! Thanks for sharing this. “Default” Ubuntu theme looks like a 70′ sci-fi movie watched today… jaw dropping & laughable.
Maybe just a silly question from a ubuntu rookie – how do you make such mac style menu bar at the bottom?
Once this is known, I switch to this 21st century desktop immediately
Not really sure what I did wrong but for whatever reason all the icons that should be there for conky are instead replaced by single letters . . . also I did the weather just as said in the tutorial and I’ll I’ve got is F / F . . . any help would be appreciated. Thanks!
I love all the mods you made to the desktop, but I’m having one problem. Conky runs fine, but instead of the transparent sleek look that you have, mine simply runs as white text on a black backround. Do you know where i might have gone wrong?
for imap you can find here a rc file and imap script:
http://conky.sourceforge.net/screenshots.html
That’s partly due to the fact that ubuntu can be installed on any computer …new or old and I am not sure that you can do that on an old computer.
The ubuntu team is working on it as you can read on Mark Shuttleworth’s blog.
PS : OMG They should fix that webpage, I hate when I have to write in a box that is black over black!!! I have a black theme and that page doesnt like it, and my theme isnt the one to blame.
hello this should fix the problem with the startup of conky, it doesnt take over the section of the desktop
use_xft yes
xftfont verdana:size=8
alignment top_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
can someone help me find the script folder? i found one but it doesnt have the pogodynka.sh file 😦
stippled_borders 10
border_margin 4
border_width 1
default_shade_color grey
default_outline_color black
default_color BADCDD
use_spacer none
no_buffers yes
uppercase no
color1 F8DF58