I’ve published this earlier as google doc, but it seems that was a bad idea and many people are still asking the same question. So here’s the same howto, targetting a somewhat broader audience:
Please note: This is not officially supported yet but has been tested by a fair amount of people by now. All steps are taken at your own risk. Be prepared to reflash the tablet if you mess up. Also note that none except the preinstalled applications have been tested by Canonical. Your favorite application might just not work yet.
Update: As people pointed out in the comments (thanks for that!), this will fail if ran from the Terminal app on the device. Instead, use a USB cable and log in to the tablet using
phablet-shell from the package phablet-tools and run the following commands from there.
First we need to replace the link to the container config with the actual container config so it can be edited.
# cd ~/.local/share/libertine
# rm ContainersConfig.json
# cp /custom/click/.click/users/@all/com.ubuntu.puritine/libertine-config/libertine/ContainersConfig.json .
Create a new container
# libertine-container-manager create -i puritine2 -n "Puritine 2" -t chroot -d vivid --force
Now we have a second container in the writable part of the image named puritine2. The original that comes preinstalled (named puritine) is still there, but in the read-only part of the image.
Installing applications in the new container
First we fire apt-get inside the container to install inkscape. The libertine-container-manager can do that all for us. In this example, we’re installing inkscape.
# libertine-container-manager install-package -i puritine2 -p inkscape
Nearly done. All that’s left to do is to add an icon in the dash so we can actually launch inkscape. For that we copy the preinstalled gimp icon and edit it to launch inkscape instead. Note that the naming of the file is key here. The file name consists of containerid_appid_version.desktop. So in our case puritine2 for the container id, inkscape for the appid and well, the version seems to be unused at this point, so let’s leave that at 0.0.
# cd ~/.local/share/applications/
# cp /usr/share/applications/puritine_gimp_0.0.desktop puritine2_inkscape_0.0.desktop
Now edit the file and change the
Name= field to say inkscape and the
Icon= field to point to an icon you want. Don’t edit any other fields.
Now pull down the apps scope to refresh it. Inkscape should appear there and start up when you click it.