Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering how to package some wallpapers into a package for the Ubuntu Software Center?

share|improve this question
Do they have the appropriate licenses ? – hakermania Dec 17 '13 at 2:58
I created them myself, so they are properly licensed. I am trying to figure out how to package them so I can add them to the software center. – rstreeter78 Dec 17 '13 at 3:00
Great idea! Reply back in comments if you get a package out – Dolan Antenucci Dec 19 '13 at 19:47
Have you looked into using to publish your wallpapers? It is used by quite a lot of popular projects: Inkscape:,, MySQL: to name few! – RPi Awesomeness Dec 20 '13 at 3:07
It seems there are a number of steps involved in preparing software for the Ubuntu Software Center, more than what I am able to document here. Perhaps this Getting Started pdf will provide you with the answers you need. – Timothy Martin Dec 31 '13 at 20:23
up vote 6 down vote accepted

Create a folder named whatever you want it to be. I recommend wallpapers in your home folder.

Inside this, create 2 folders: DEBIAN and usr

In the usr folder, create share. In that, create wallpapers. Put your wallpapers there.

In the DEBIAN folder, create 2 files: control, and postinst.

Then, make the control file look like:

Package: package name
Priority: optional
Section: misc
Maintainer: your name <your@email>
Architecture: all
Version: version number
Depends: whatever it depends on.
Description: a brief description of what your package includes or does.
<blank line here>

Note the blank line at the end, important!

Then, In postinst


chmod a+r /usr/share/backgrounds/<wallpaper 1>
chmod a+r /usr/share/backgrounds/<wallpaper 2>
chmod a+r /usr/share/backgrounds/<wallpaper n>
# ...

exit 0

Do that for as many wallpapers as you have.

Save all the files.

Next, sudo chown -R root.root ~/wallpapers/

Finally, sudo dpkg -b ~/wallpapers wallpaper.deb

Then, you upload this to your PPA. Done!


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.