jeltsch's blog

Some useful PDF editing (and search) commands

  • Insert pages with interleave: pdftk A=input_odd_pages.pdf B=input_even_pages.pdf shuffle A B output collated.pdf(from the pdftk package)
  • Split an A2-sized PDF into two A3 pages for printing (no overlap): pdfposter -m A3 -p A2 Periodic-Table_A2.pdf Periodic-Table_2xA3.pdf
  • Split an arbitrary-sized PDF into A3 pages for printing at 100% size (= 1), no overlap: pdfposter -m A3 -s1 Poster.pdf Poster_split_to_A3.pdf

A permanent static route in Ubuntu Karmic Koala (9.10), Precise Pangolin (12.04) & Trusty Tahr (14.04)

Karmic Koala
To add a permanent static route to a Karmic Koala system with one NIC, you need to edit the
/etc/network/interfaces file. The following section needs to be replaced:

# The primary network interface
auto eth0
#iface eth0 inet dhcp

Modify as follows:
# The primary network interface
auto eth0
iface eth0 inet dhcp
up route add -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.3
down route del -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.3

Pages