Change Ubuntu 12.04 SlideShow Desktop Background
This tutorial will explain how to modify the slideshow background in Ubuntu 12.04 (Precise Pangolin) to have your own pictures.
The pictures that are shown are loaded from an XML file that is located under /usr/share/backgrounds/contest/
called precise.xml
The basic outline of the XML file is as follows:
The static node defines the picture that is showing. It has the following:
duration
- how long the picture will stay before changingfile
- the full-path filename of the picture
The transition node defines the change from one picture to another. It has the following:
duration
- how long it will take to change from one picture to anotherfrom
- the full-path filename of the picture it’s changing fromto
- the full-path filename of the picture it’s changing to
The PHP program I’ve written will allow you to create an XML file that has file-names of JPEG (.jpg) files you want on your desktop background slideshow.
Follow the steps below:
- Download the zip file here and unpack it in your web directory.
- Open http://{YOUR-SERVER}/WriteXML/
- In the input fields:
- Enter the full path of the folder where the pictures are. The program only uses the .jpg files in that folder
- Enter the preferred filename (without the ‘.xml’). E.g. precise
- Enter the preferred picture transition duration in seconds (Not too many, maybe 2 or 3 seconds)
- Enter the preferred picture display duration in seconds (Not more than the transition duration
- Click ‘Create XML’
- If there were no errors, a page will appear telling you to download the xml file
- Click on ‘here’. Right-click the page and:
- On Google Chrome, click ‘Save As…’
- On Firefox, click ‘Save Page As…’
- On Opera, click ‘Source’. Click on the ‘Save’ button at the top of the page.
- Open where you downloaded the file and rename it to
precise.xml
. - Make a backup of the existing
precise.xml
file. For example, if you’re going to put the backup on your desktop, open a terminal window and do:
cd
to where you downloaded the file and do:
- Go to System Settings, Click on Appearance, under the Look tab, select the picture with a clock on the bottom right corner. Under the monitor on the left, it should say: Ubuntu 12.04 Community Wallpapers (multiple sizes)
And that’s it! The pictures in the directory you specified should be showing on your desktop background
NB: If your screen is blank, it means that the picture files cannot be read from their location. Give read permissions to the folder where the files are located.
All the best!!!