GLSlideshow picture directory and timeout

Linux Mint 10 comes with xscreensaver-gl, uses GNOME screensaver daemon and does not have xscreensaver installed. Therefore, using xscreensaver-demo is not the default way to configure your screen saver and you loose a lot of configuration possibilities. As setting GLSlideshow’s picture directory, timeout, with more. Luckily, it can be done easy with two files:

/etc/X11/app-defaults/XScreenSaver, here you will find

*imageDirectory:        /usr/share/backgrounds

Some personal images would be nice:

*imageDirectory:        ~/Pictures/screensaver


Exec=/usr/lib/xscreensaver/glslideshow -root -duration 5

Here, duration is the timeout for each picture. You can find more options with:

man glslideshow

For example fade, zoom, titles with more.

The manual for xscreensaver does also have information on the /etc/X11/app-defaults/XScreenSaver(under section X RESOURCES), but you need to install xscreensaver and might just use xscreensaver-demo to configure it then.

PDF toolkit – split/merge PDFs

I had some schoolwork scanned to a PDF-document, with odd pages in one document and even pages in another. The pages was also in wrong order. I was looking for an easy way to rearrange the pages in a single document. No fancy interface reacquired, a understandable command line would do. PDF toolkit is this.


apt-get install pdftk


pdftk A=file1.pdf B=file2.pdf cat A1 B2 A2 B1 output output.pdf

This will make an PDF document “output.pdf” with four pages. Page 1 in output.pdf being the first page from file1.pdf, page 2 being the second page from file2.pdf and so on.