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

  • Do they have the appropriate licenses ?
    – hytromo
    Commented Dec 17, 2013 at 2:58
  • 3
    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. Commented Dec 17, 2013 at 3:00
  • 1
    Great idea! Reply back in comments if you get a package out Commented Dec 19, 2013 at 19:47
  • Have you looked into using launchpad.com to publish your wallpapers? It is used by quite a lot of popular projects: Inkscape: launchpad.net/inkscape, Unity:launchpad.net/unity, MySQL: launchpad.net/mysql...just to name few! Commented Dec 20, 2013 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. Commented Dec 31, 2013 at 20:23

1 Answer 1


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!

src: http://ubuntuforums.org/showthread.php?t=2034040

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .