Monthly Archives: December 2010

(Re)building packages from source in Debian, Ubuntu

It is very easy to build a debian package from source. Typically you want to do this if you patched it yourself, but want it installed the “standard way”. This of course works with Ubuntu as well. In this example, we are rebuilding shotwell. Pay attention to when sudo is used.

First do:

  $ sudo apt-get build-dep shotwell
  $ mkdir tmpsrc
  $ cd tmpsrc
  $ apt-get source shotwell

Now it is time to patch the source of shotwell. Then:

  $ cd shotwell-0.7.2
  $ debuild -uc -us
  $ cd ..
  $ sudo dpkg -i shotwell_0.7.2-0ubuntu2_amd64.deb

Of course, the names may depend on versions, architectures etc.

NOTE: Debian 6.0, use dpkg-buildpackage instead of debuild.

How to make the next apt-get upgrade not touch your custom version?

  # echo "hold shotwell" | dpkg --set-selections
  # dpkg --get-selections | grep shotwell

Replace “hold” with “install” to enable upgrade again.

Linux Citrix client SSL error 61

When connecting to a citrix server with the Linux client you can get this error message:

You have chosen not to trust “????”, the issuer of the server’s security certificate (SSL error 61).

Problem is that the Citrix client does not know about very many “trusted authorities”. Mozilla/Firefox knows about them though. If you have installed the Citrix ICA client in your home directory this is how to fix the problem on Ubuntu.

$ cd ~/ICAClient/linuxx86/keystore
$ mv cacerts cacerts.orig
$ ln -s /usr/share/ca-certificates/mozilla cacerts

Done! Now problem should be fixed.