Posted by & filed under ubuntu.

Haven’t you always wanted Calvin & Hobbes stargazing at the daily NASA Astronomy Picture of the Day for  your wallpaper? I know I have. Now we can. In this tutorial I will show you how to set that up.

First, just double check you have these installed. I think most users will already.

sudo apt-get install imagemagick wget

Next, run the following code. It creates a directory to store the files we’re using in your home folder, and downloads the essential files.

cd ~/
mkdir CalvinAndHobbesWallpaper
cd CalvinAndHobbesWallpaper
wget http://i.imgur.com/IRi6k.png
wget http://www.mikesubuntu.com/wp-content/uploads/2010/09/hobbes.txt

Cool. Now, run this. It just tells you your screen resolution. If you already know it, great! Skip to the next step.

xdpyinfo | grep ‘dimensions’

Edit the file called ‘hobbes.txt’

gedit ~/CalvinAndHobbesWallpaper/hobbes.txt

Change the screen resolution in line 4 to match yours.
Finally, run the script to update your wallpaper.

bash ~/CalvinAndHobbesWallpaper/hobbes.txt

You can run this every day to get the latest image, or schedule it with Cron.

Based on some great work from Reddit.