Posts from 2009-02

NFS v4 (without Kerberos)
new: (German, not yet taken into account for the following information)

NFSv4 client

sudo apt-get install nfs-common

NFSv4 server

sudo apt-get install nfs-kernel-server

NFS v4 Server

NFSv4 exports exist in a single pseudo filesystem, where the real directories are mounted with the --bind option. Here is some additional...

Read on

Project: Paperless Office / Document Management System

Collection of document management software on Linux:


If you know a good DMS (document management system) on Linux, please comment!


Read on

Install freeNX Server


add the following lines (replace VERSION with intrepid if you're running 8.10) to your /etc/apt/sources.list

deb VERSION main
deb-src VERSION main

then update your repository informations and install freenx

sudo apt-get update
sudo aptitude install freenx

to have a...

Read on

Online Banking and Accounting

Overview - Software:

Read on

Time Tracker gnotime and hamster Panel Applet

When you want to track your time with an Ubuntu application, I recommend gnotime. Just install the package:

sudo aptitude install gnotime

Alternatively use the hamster panel applet (new in Gnome 2.24)!


Read on

Raising Skinny Elephants is Utterly Boring (or: if all else fails)

The magic key codes on Linux systems:

press Alt + SysRQ ("print") +

  • R keyboard → raw mode
  • S sync disc
  • E terminate all processes
  • I kill all processes
  • U remout all filesystems read-only
  • reboot

That works almost all the time. Even after problematic errors.


Read on

Indexed Search Systems on Ubuntu

Indexed search systems help you find your files faster and easier. They keep an index of the files on your computer and don't search the files themselves but look up the search phrase / meta data in their database. Ubuntu offers different choices for an indexed search system.

(An example for...

Read on

Install Firefox Add-Ons using the Package Manager

You can install Firefox add ons on your own by using the built in add on manager. But you can also use the Ubuntu/Debian package system to install some extensions such as the great Adblock Plus and the Noscript extension:

sudo apt-get install mozilla-firefox-adblock mozilla-noscript

Read on

Set up Port-Knocking

The installation of the port knocking daemon is quite simple:

sudo apt-get install knockd

To start the knockd daemon automatically: uncomment START_KNOCKD=1 in /etc/default/knockd.


Edit the config file /etc/knockd.conf:

   logfile = /var/log/knockd.log
   sequence    = <span...

Read on

Display Contents of .deb Packages Using deb-gview

You can display the contents of a .deb package with the program deb-gview. To install run:

sudo aptitude install deb-gview

To have a look at the contents of the package garmin-upload-tools_1.2.0_all.deb run:

deb-gview garmin-upload-tools_1.2.0_all.deb

Read on

Convert an mdf CD Image to an ISO Image

You can convert .mdf files to .iso files using the tool mdf2iso. Install:

sudo aptitude install mdf2iso

To convert a .mdf file to .iso, run:

mdf2iso inputCDImage.mdf outputCDImage.iso

To see more options:

man mdf2iso

Read on

Organize Keyfiles – using Seahorse

Seahorse is organizes your SSH keys and is a frontend for GNU Privacy Guard (GPG)!

If you're using KDE

You should use KGPG


Read on

Set up Printing at Goethe University, Frankfurt am Main, Germany

  • Download the PPD files from and save them to /usr/share/ppd/custom/
  • lpadmin -p blacknwhite_hrz -v smb://${HRZ-LOGIN:HRZ-PASSWORD} -P /usr/share/ppd/custom/<PPD-Datei> -E
  • do the same for colour_hrz ...
  • lpq -P schwarzweiss_hrz gives → schwarzweiss_hrz is ready, no entries

Read on

Le Nouveau Petit Robert 2009 on Wine (not working yet)

not working yet!

Insert CD:

sudo mount -o loop PetitRobert2009.iso ~/tmpmount


wine ~/tmpmount/setup/Robert.exe

There it dies with:

err:ole:CoGetClassObject class {72c24dd5-d70a-438b-8a42-98424b88afb8} not registered

Read on

AVR Studio 4.15 using Wine

What works:

  • open and build a c-project (WinAVR) for atmega8

What was not tested:

  • programming a device

Here's what i did:

  • On a new wine installation, use winetricks for corefonts, allfonts, dcom98. This also sets native overrides for some OLE dlls.
  • With winecfg, set default overrides for ole32, oleaut32, rpcrt4 back to builtin,native. Leave Version to...

Read on

Make Ubuntu System Bootable Using Wake On LAN

Install the package ethtool:

sudo aptitude install ethtool

Add the ethtool command to your nic using its configuration in /etc/network/interfaces (last line):

iface eth0 inet static
    pre-down /usr/sbin/ethtool -s eth0 wol...

Read on

Setup and Using GPG (GnuPG)
for further information see
for e.g.:

Import a key from somebody else using a textfile

gpg --import key.asc

Check fingerprint

List all imported keys with their fingerprints:

gpg --fingerprint

Sign someones public key

To accept other's messages as authentic you have to...

Read on

Use lm-sensors to read out I2C/ISA hardware (check temperatures, ...)

Many motherboards have electronic chips that control fan speed or measure temperatures. Some are connected via I2C, others via ISA. Most of them can be read out using lm-sensors on Linux computers.

Install the lm-sensors package using:

sudo apt-get install lm-sensors

Try to detect the chips (sensors) connected to your...

Read on

Chroot SFTP users

OpenSSH supports jailing SFTP users to a directory (using chroot) just by changing its configuration file:

Basically you add the users you want to jail to a linux user group (sftp) and add the following lines to /etc/ssh/sshd_config:

### Comment out the following line:
#Subsystem sftp /usr/lib/openssh/sftp-server
### and replace with:
Subsystem sftp...

Read on

Installing a Fixed Ethernet Driver for Realtek RTL8101E/8102E on Linux

Get the packages (linux headers and build tools):

sudo aptitude install linux-headers-$(uname -r) build-essential

blacklist the wrong driver, get the fixed driver sources and unpack them:

echo 'blacklist r8169' | sudo tee -a /etc/modprobe.d/blacklist
cd ~/Downloads
mv r8101-1.010.00.ta.gz r8101-1.010.00.tar.gz
tar xvzf r8101-1.010.00.tar.gz
cd ~/Downloads/r8101-1.010.00

change line...

Read on

Looking for Windows Neighbourhood Using smb4k

if you want to search the domains / workgroups / shares of you MS Windows neighbourhood then do it using smb4k.


sudo apt-get install smb4k

Read on

Encryption with TrueCrypt

Encrypt Your Home Directory

  • create a volume with truecrypt
  • check if any processes access files from your home directory using lsof | grep /home/user
  • mount it and move your stuff from /home/user to /mounted/truecryptVolume with cp -vax /home/user/ /mounted/truecryptVolume
  • create a new home in your root directory using {{mkdir /home_sec}}
  • change /etc/passwd so that /home/user...

Read on

Install NX "Free Edition" Server


sudo dpkg -i nxclient_3.3.0-3_x86_64.deb
sudo dpkg -i nxnode_3.3.0-3_x86_64.deb
sudo dpkg -i nxserver_3.3.0-8_x86_64.deb

Note: Go to the NoMachine Installation Instructions for detailed instructions on how to install the NX Client, NX Node and NX Server packages. The NX service can be controlled by the command


Read on

Set up IPtables Firewall

set up your rules:

1.As 1st rule (INPUT 1) allow all traffic on loopback adapter lo (so your programs on localhost can communicate if all other traffic is blocked later)

sudo iptables -I INPUT 1 -i lo -j ACCEPT

2.Allow incoming traffic on port 80:

sudo iptables -A...

Read on

Set Up Your Own Font Server

If you want to use mathematica via a nx server, you need to make the mathematica fonts available via xfs (X font server): note that there may be another way to load the fonts:

sudo aptitude install xfs

and change file /etc/X11/fs/config: at the end of catalogue:


Read on

latexdb - a tool to automate document creation using DBs
hopefully there will be a version 0.4 soon! (dev. since v.0.3 took 2 years already)

get the package and run the "install" script contained... latexdb-0.3 also needed: python_mysqldb:

sudo apt-get install python-mysqldb
latexdb-0.3 $ sudo ./install

Read on

Short Of Disk Space - Find Large Files & Clear Caches

When your hard disk is getting full you might want to know why and what files are the largest. This post describes how to find that out and clean up using the disk usage analyser, package cache cleaning and a fast way to list big files on the terminal using...

Read on

Installing CUPS-BJNP

Download the package cups-bjnp-0.4-1.src.rpm from SourceForge.

Convert it to a .deb package:

$ sudo alien -k cups-bjnp-0.4-1.src.rpm

Install the .deb package:

$ sudo dpkg -i cups-bjnp_0.4-1_amd64.deb

Check if all went well and if the binary bjnp finds the printer in the network:


Read on

Rip a DVD

get lib CSS to work properly (encryption of encoded DVDs) → install "Restricted Extras"

rip VOB files and VIDEO_TS folder and make ISO image

install vobcopy and mkisofs:

sudo apt-get install vobcopy mkisofs

rip using vobcopy and create iso using mkisofs:

cd Desktop
vobcopy -v -m...

Read on

HP PSC 2210 scanning

This post has been replaced by → Using HP PSC 2210 with Ubuntu Linux


Read on

Bluetooth Icon in Panel (Install Support for Gnome Bluetooth)

Just run:

sudo apt-get install gnome-bluetooth

Read on


downloads on


Read on

Rip Audio CDs

Using sound-juicer

sudo aptitude install sound-juicer

using grip and FLAC codec

run grip: Alt + F2 → grip

Set up:

  • Config → CD
  • CD drive: /dev/scd0 (if it doesn't find the CD with /dev/cdrom)
  • Config → Encode...

Read on

HowTo Debug sane

set the variable SANE_DEBUG_DLL:

export SANE_DEBUG_DLL=255

then run sane (xsane, scanimage) and look at debug output.


Read on

Set up gedit preferences

Edit → Preferences:

  • View
  • Display Line Numbers
  • Highlight matching bracket
  • Editor
  • Tab width: 4
  • Insert spaces instead of tabs
  • Enable automatic indentation

Read on

C++ Boost Development Libraries

sudo aptitude install libboost-dev libboost-doc

Or get all packages at once:

sudo aptitude install libboost.*dev libboost-doc

then put eg the following line into your sourcefile:


Read on

Burning Tools For Linux

The most important graphical buring tools on Linux are:

  • K3b
  • Brasero
  • gnomebaker

On the Command Line

You can read more about this on the wiki page CdDvdBurning on the Command Line in the official Ubuntu Wiki.

burn *.iso to CD: (wodim is a fork of cdrecord)

wodim --devices

to check the available burners...

Read on

Suspend Using Console

see also:

$ sudo /etc/acpi/ force


$ sudo echo mem > /sys/power/state

or as gdm does it (see /etc/gdm/gdm.conf → constant SuspendCommand):

$ sudo /usr/sbin/pm-suspend

you can run this script and therefore suspend remotely with ssh option -t to prevent echo on the terminal:


Read on

Conky – Set Up System Monitoring for your Linux Desktop

Conky is a graphical tool that allows you to monitor your system resources on a Linux desktop computer. See the screenshots to get an idea how it looks like.

The latest Conky version can be found in a Git repo:

git clone git://


Read on

C++ code completion for KDevelop 4 and Emacs

Read on

Playing HD movies: mplayer

jutter free playback wanted as well as the capability to load subtitles and additional sound tracks (languages)

some fragments:

mplayer movie.avi -audiofile italian.ac3 -audio-demuxer 20 -rawaudio format=0x2000

Read on

System Emulators / Virtual Environments


[Strg] + [Alt] to release mouse
to boot from an iso image:

qemu -cdrom knoppix.iso -boot d -m 512

to boot from a real cd:

qemu -cdrom /dev/cdrom -boot d -m 512

to set up a hard disk to use with qemu:

qemu -cdrom /dev/cdrom -boot...

Read on

Transfer HDD Software Raid from IB-NAS-4220-B to workstation computer

I'm writing this post because I want to get away from my Raidsonic IB-NAS-4220-B, a dedicated network access storage (NAS) device. Instead I want to put the two S-ATA hard disks into my Ubuntu linux home server. It should use software raid1 just as the NAS did before and I...

Read on

Backup using disk dump – dd

Note: The following commands have all to be run as the super user (root) as raw access to partitions is not permitted to normal users.

A simple bit by bit backup of the partition 9 on the hard disk /dev/sdx:

dd if=/dev/sdx9 of=imagefile bs=2048

You can also pipe it into gzip...

Read on

.CHM windows help file viewer

GnoCHM is a CHM file viewer for Gnome. Details can be found in its man page. Install using:

sudo aptitude install gnochm

or xCHM and its man page. Install using:

sudo aptitude install xchm

Read on

Check Logfiles of Cron Daemon

check if cron runs the scripts as it should

cat /var/log/syslog

example output:

Jun 21 20:31:01 lion /USR/SBIN/CRON[8702]: (philipp) CMD (~philipp/

From the cron manpage:

  • cron logs its action to the syslog facility ’cron’, and logging may be controlled using the standard syslogd(8) facility. So if syslogd is available it is...

Read on

Software to Communicate via the Serial Port


sudo aptitude install minicom


cd ~/Downloads/
mkdir hterm
cd hterm
# nowadays you don't have to be that specific about what kind of archive it is 'tar -xf ' will work on anything
tar -xf hterm.tar.gz
rm hterm.tar.gz

Read on

Datalogic Bar Code Readers with Ubuntu Linux

I was trying out two bar code readers on my Ubuntu Linux machine. They work fine as an input device. So all they do is to enter the number encoded in the barcode and send Return.

dmesg of the first device, a Datalogic Gryphon D230-STD Grey (shipped manual: Dx30 Readers)


Read on