Montag, 9. Mai 2011

Combine multiple PDF documents into one

Just a quick one, as I now needed this for the second time and already didn't write it down the first time …

I found this when looking for a way to combine multiple PDF documents into one. You just need to

  • sudo apt-get install gs pdftk

  • gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

Pretty self explaining, so I'm gonna end early here.

Dienstag, 15. Februar 2011

Setting up my Kubuntu

Just for the record, here's how I configure Kubuntu after installation:
  • install Firefox with the following add-ons:
  • install VirtualBox
  • System Settings: setup Social Desktop opendesktop.org
  • setup ssh server
    • sudo apt-get install openssh-server
  • setup ssh public key authentication
  • setup Dropbox
  • setup Synergy+
  • setup BackupPC client:
    • sudo apt-get install rsync
    • edit /etc/default/rsync to include "RSYNC_ENABLE=true"
    • create /etc/rsyncd.conf
    • sudo chown root:root /etc/rsyncd.conf
    • create /etc/rsyncd.secrets
    • sudo chown root:root /etc/rsyncd.secrets
    • sudo chmod 600 /etc/rsyncd.secrets
    • sudo /etc/init.d/rsync start
  • setup Autostart
    • ~/.dropbox-dist/dropboxd
    • /usr/bin/ssh-add (using ksshaskpass)
    • On desktop, mounting netbook drive: /usr/bin/sshfs eee1005.home.lan:/home/stefan/ /home/stefan/eee1005/
    • On desktop, Synergy+ server: /usr/bin/synergys
    • On netbook, Synergy+ client: /usr/bin/synergyc -f e521mk
  • setup Skype

Freitag, 28. Januar 2011

Installed Linux on an SSD

I have it up and running for some weeks now, I took the most simple approach possible described here: just create one partition on the SSD (I still have Grub on my HD) using

sudo fdisk -H 32 -S 32 /dev/sdg (choose first cylinder as 2, end cylinder as the default one)
sudo mke2fs -t ext4 -E stripe-width=128 /dev/sdg1

when booting Kubuntu 10.10 from installation CD, then install from there.

No need to do any aligning calculations whatsoever. I even have /home, /tmp and /var on the SSD. There is quite some write activity in those directories, but then SSDs get cheaper and cheaper …

All that is left to do after installation is:

  • sudo apt-get install sysfsutils
  • sudo nano /etc/sysfs.conf
  • add the line block/sdf/queue/scheduler = noop at the end
  • sudo nano /etc/fstab
  • change the options for / to noatime,discard,data=ordered,errors=remount-ro

System performing abolutely great now!