Posts from 2009-08

How To Apply a Patch to Source Code

Learn by example:
Get a sourcecode package and a .diff.gz file and patch the source. The package is sane-backends_1.0.19.orig.tar.gz and the patch sane-backends_1.0.19-23ubuntu7.diff.gz:

cd ~/Downloads/
tar -xf sane-backends_1.0.19.orig.tar.gz
gunzip sane-backends_1.0.19-23ubuntu7.diff.gz
cd sane-backends-1.0.19/
patch -p1 < ../sane-backends_1.0.19-23ubuntu7.diff

An important parameter of patch is -p. It can be used if you apply a patch in...

Read on

VirtualBox Images of Operating Systems

If you would like to get ready-to-run images of preinstalled OSs in VirtualBox images you might want to take a look at the following sites.

Requirements: You have to have Java v6 installed and get the Java software registerimage from

example: damn small linux


Read on

OpenDNS - The better DNS-Server

Servers: and

(Fast alternative: google dns, servers: and I use the google DNS servers when going online via my mobile phone using 3G network. It is by far faster than the DNS server of the network provider.)

Perl client to update the openDNS IP (if...

Read on

Remove openjdk and install sun-jdk

For 9.04 jaunty:
For 11.04 natty:

# remove the previous openjdk
# (may have to be adjusted for newer Ubuntu versions such as natty):
sudo apt-get remove icedtea6-plugin openjdk-6-jre icedtea-6-jre-cacao ca-certificates-java openjdk-6-jre-headless openjdk-6-jre-lib
sudo apt-get install sun-java6-jre sun-java6-plugin

Read on

Input Methods for Chinese (SCIM-Bridge)

update (2010-10): Please consider for Chinese input on more recent versions of Ubuntu.

Install scim:

sudo aptitude install scim-pinyin
sudo aptitude install language-pack-gnome-en-base gnome-user-guide-en language-pack-gnome-en

Enable support for complex character input (System → Administration → Language Support)
SCIM should now start along...

Read on

Use DPMS from terminal to blank / supend / turn off the screen

Blank the screen (or activate the screensaver). You need the 1-sec delay.

sleep 1; xset s activate

switch the screen OFF after a delay of one second

sleep 1; xset dpms force off

other states: standby, suspend, or on



Read on

record what your screen displays... with recordMyDesktop

recordMyDesktop is a commandline tool, written in C, that can be used to create a screen cast. Very useful tips can be found on:

There are two frontends for recordMyDesktop, written in Python:

  • gtk-recordMyDesktop (pyGtk) and
  • qt-recordMyDesktop (pyQt4).

The installation of gtk-recordmydesktop on Ubuntu works as follows:

sudo aptitude install recordmydesktop...

Read on

Uninstall the Proprietary Nvidia Driver

For my Nvidia Geforce 8600 GT in order to uninstall the driver I have to run the following command and restart:

sudo aptitude remove nvidia-glx-180

Read on

FFGTK - a Fax / CAPI Client for Fritz!Box Fon

update 2011-02-14:

A recent version of ffgtk is contained in the repository ppa:stevi/ppa. To install it on Ubuntu 10.10 maverick do:

sudo add-apt-repository ppa:stevi/ppa
sudo aptitude update && sudo aptitude install ffgtk libcapi20

Then run ffgtk on the terminal and set up your box. (I had to use the auto detected...

Read on

Neo2 Layout

The official project

More projects around neo

Installing NEO2 on Ubuntu 8.10 (with root permissions)

sudo su
co ~/neo
cp /usr/share/X11/xkb/symbols/de /usr/share/X11/xkb/symbols/de.bcp
cp ~/neo/linux/X/de /usr/share/X11/xkb/symbols/xx

Using NEO on Linux

Change to the NEO2 Layout:

setxkbmap de neo

Change back to the default German layout:

setxkbmap de

KTouch Typing...

Read on

Sweet Home 3D

run with Java Web Start

cd ~/Downloads
javaws SweetHome3D.jnlp

or the original java one:

cd ~/Downloads
/usr/lib/jvm/java-6-sun- ./SweetHome3D.jnlp

and run using

cd ~/Downloads/
javaws SweetHome3D.jnlp

or if the above does not work, use:

install and run including Java VM

cd ~/Downloads
tar -xf SweetHome3D-2.0-linux-x86.tgz

and run

cd ~/Downloads/SweetHome3D-2.0

add extra...

Read on

Rhythmbox Plugins and Tools

Rhythmbox DLNA/UPnP sharing and Control plugin

to get this plugin to work I had to do:

sudo apt-get install python-coherence

Rhythmbox XSLT - convert Rhythmbox xml library file to xhtml


  • Perl
  • XML::LibXSLT Perl module

install like this:

sudo aptitude install libxml-libxslt-perl
cd ~/Downloads
tar -xf rbxml2html-0.03.tar.gz

usage: the pearl...

Read on

Install the Collaboration Tool Gobby and its Server infinoted

sudo apt-get install gobby

Open gobby and create a session, tell your collaborators your IP, port and password and start working on documents together.

install newer version using launchpad PPD

sudo apt-key adv --recv-keys --keyserver CFB6301E
echo "deb jaunty main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update 

Read on

OpenJDK and Sun Java on Ubuntu 9.04

install openjdk:

sudo aptitude install openjdk-6-jre

install sun java v6

sudo aptitude install sun-java6-bin

Choosing the default Java to use

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

to see the current configuration and possibilities:

sudo update-java-alternatives -l


Read on

MuseScore - a Free WYSIWYG Music Notation Program
MuseScore is a free cross-platform WYSIWYG music notation program.

stable releases:

sudo aptitude install mscore

Read on

Chinese Input in LaTeX

You need at least:

sudo aptitude install latex-cjk-chinese

or install all chinese related packages:

sudo aptitude install latex-cjk-all

\end{CJK*} (this is a test)

The above LaTeX code...

Read on

Editors for Vector Graphics: inkscape, dia and xfig



sudo apt-get install inkscape


sudo apt-get install dia

If you want to create an eps image to use with the LaTeX package psfrag, export the image to eps using ps fonts!


A great vector graphics tool!

sudo aptitude install xfig



Read on

Remove Ubuntu branding (Menu Icon on gnome-panel etc.)

remove the definitions of gnome-about and ubuntu-about

Delete the files gnome-about.desktop and ubuntu-about.desktop from /usr/share/applications

sudo rm /usr/share/applications/gnome-about.desktop
sudo rm /usr/share/applications/ubuntu-about.desktop

or less radical: move the files (to ~/tmp/):

sudo mv /usr/share/applications/gnome-about.desktop ~/tmp/
sudo mv /usr/share/applications/ubuntu-about.desktop ~/tmp/

or even softer: edit these *.desktop files and add the line NoDisplay=true.

To apply changes / see...

Read on

Use the tool `ip` to examine your network status

The most useful three commands are:

ip link list
ip address show
ip route show

Read on

Grab Content of the ZDF Mediathek

cd ~/Downloads

start with

java -jar ~/Downloads/Mediathek.jar


cd ~/Downloads
tar -xf rtmpdump-v1.6.tar.gz
cd rtmpdump/

example usage

protocol may be rtmp or rtmpe (encrypted)

./rtmpdump_x86 -o /home/philipp/Desktop/output.mp4 --host --port 1935 --protocol rtmp --playpath mp4:zdf/data-sec/quicktime/geoloc_zdf-de/09/07/090727_die_bombe_1_dok_vh.mp4 --swfUrl --tcUrl rtmp:// --pageUrl --app zdf...

Read on

Ghex Hex Editor

A graphical hex editor:

sudo aptitude install ghex

Alternative on the terminal: hexdump


Read on

Gnome Office

GNOME Office is a free office suite for GNOME which consists of:

  • AbiWord word processor
  • Evolution groupware and e-mail application
  • Gnumeric spreadsheet
  • GNOME-DB, software that provides database connectivity.

The Debian project includes additional applications in this list:

  • Dia diagram editor
  • GIMP raster graphics editor
  • Inkscape vector graphics editor
  • XSane graphical frontend of scanner access
  • Planner project management tool
  • GnuCash (Finanzverwaltung)

You can...

Read on

Freeciv - Civilisations Game
Freeciv is an empire-building strategy game inspired by the history of human civilization.

sudo aptitude install freeciv-client-gtk

run using


Read on

Empty Gnome Trash using Terminal

I connected my old notebook hard disk to my desktop computer (as the HDD was exchanged). To expunge the trash folder I did:

cd /media/disk/home/philipp/.local/share/Trash/info/
rm -rf *
cd /media/disk/home/philipp/.local/share/Trash/files/
rm -rf *

Read on

Set up Advanced Networking without Network Nanager

failback connection (routing):
advanced routing:
secondary virtual interface on one physical interface:
default gateway:
static DNS with DHCP: and

multi homing (using two internet connections at the same time) using policy routing:


  • redundant internet connections (but with default network...

Read on

Renaming Network Interfaces (When Changing Network Cards)

When I inserted a new network card into my Linux computer, the new network interface was named with an incremented number at the end. I didn't want that as my network setup (firewall rules etc.) were set up for the former name. So I had to change the configuration to rename...

Read on

New Certificate for University WiFi Authentication

The certificate needed for 802.1X auth for the WiFi network FLUGHAFEN of University of Frankfurt has changed. To get the new certificate ("Deutsche Telekom Root CA 2") run:

cd ~/Downloads/
sudo mv deutsche-telekom-root-ca-2.der /etc/cert

and set the new certificate in network manager.



Read on

Read and Convert NFO Files (Codepage 437)

convert to UTF8 with iconv

to convert a file from Codepage 437 to UTF8 do:

iconv -f 437 -t UTF8 your_nfo_file.nfo | less


sudo aptitude install nfoview

Read on

Get VolUp/VolDown keys on Cherry G85 keyboard to work

To get my cherry G85 to work properly including the additional audio keys I have to do the following:

To change the channels which your MM keys control, go to your main Gnome menu and find: Applications → System Tools → Configuration Editor (gconf-editor)

  • Set the value of /desktop/gnome/sound/default_mixer_device to alsamixer:hw:0
  • Edit /desktop/gnome/sound/default_mixer_tracks and...

Read on

RDP with Linux: rdesktop / xfreerdp

Alternative: xfreerdp!

Connect to a Windows PC Remotely using rdesktop

Examples, ticks & tricks:

Set up the connection on the windows computer according to
and use rdesktop

Command to connect (yet to be extended):


If you with no parameters it shows you its options:

philipp@lion:~$ rdesktop

Read on

Create Desktop and Menu Entries

freedesktop Desktop Entry Specification freedesktop Icon Theme Specification gnome Desktop Entry Files

You have to create a .desktop file and save it to /usr/share/applications/somefile.desktop.

icons are searched in the following folders (in that order): XDG_DATA_DIRS/icons /usr/share/pixmaps


Read on

Add GUI for lm-sensors to the Panel (German)

sudo apt-get install sensors-applet

Right click on the panel → Add to Panel → Hardware Sensors Monitor


Read on

Delete Downloaded Packages After Installation (Clean Package Cache)

If you're out of hard disk space on the root partition then set up you system to delete packages after installing:

sudo synaptic

Settings → Preferences → Files → Delete downloaded packages after installation, also click Delete Cached Package Files.

delete package files after installation using command line

On the command line...

Read on

Symbolic Link to a Folder

For convenience I want a link shortcut to my folder /home/philipp/something/deeply/stapled in the root folder / in order to have faster access to it (on the terminal):

sudo ln -s /home/philipp/something/deeply/stapled /shortcut

Now I can get to /home/philipp/something/deeply/stapled using the short form /shortcut


Read on

Check Open Ports on Local Machine Using Netstat

run netstat like this:

sudo netstat -lntup

and you get an output like this:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     ...

Read on

Resetup Skype

As I thought there were general problems I reinstalled skype from medibuntu repo:

sudo dpkg -r skype
sudo -i
echo "deb jaunty free non-free"  >> /etc/apt/sources.list
apt-get update
apt-get install medibuntu-keyring
apt-get update
apt-get install skype

effectively just the settings were wrong: and set Skype OptionsSound Devices to:

  • SoundIn: QuickCam (plughw)
  • SoundOut: pulse
  • Ringing: pulse

Read on

Run Script Triggered by Kernel Upgrade (← about the debian /ubuntu startup process)

myTool is what you want to set up after a kernel upgrade

if [ ! -e /lib/modules/`uname -r`/misc/.myTool_installed ]; then
        /usr/bin/ --default

Read on

The screen command - A versatile tool

With screen you can run an SSH command without interrupting the execution when the connection is lost. In case of a connection loss, all you have to do is to reconnected to the SSH host again when a connection is available and attach to the former screen session again.

Install screen:

Read on

Check Health of Software-RAID using mdadm

This article is about the data consistency health of your Raid. To check the physical health of the HDDs please use smartmontools to check the SMART status of your hard drives.

The simplest possibility to find out something about the status is to read the content of the special file...

Read on

Netbeans IDE

sudo apt-get install netbeans

or install latest version

Ensure your repository's are up-to-date.

sudo apt-get update

Install the JDK 6.0 and Java-plugin for Firefox using the terminal:

sudo apt-get install sun-java6-jdk sun-java6-plugin

Update the Java alternatives so Suns virtual machines is the default:-


Read on

HTML editors

Quanta Plus Bluefish Screem Nvu Kompozer


If you have a personal preference or another editor, please comment!


Read on

Gedit Plugin to Search and Replace using Regular Expressions

found here:

cd .gnome2/gedit/plugins
tar -xf regex_replace.tar.gz
rm regex_replace.tar.gz

Then open gedit and select Edit → Preferences → Plugins and activate the regex plugin


Read on

Use the tool x2x to use your mouse and keyboard as input for a differenct computer — works well!

With the very small toolx2x you can move your mouse to the left edge of your local screen and will continue to move over to the remote desplay. Your keyboard works on both computers as well, and you can even copy-paste between the two computers. It looks like the...

Read on

Make SSHd React Faster on Connect

If your ssh connection is established only with a delay of about 2-4 seconds (even when you are connected to a fast network), you can try the tips in this post.

What to try first

Debug you ssh connection: using ssh -p 28 -vvv (note the -vvv switch at the end).

Read on

Shutdown System Automatically Later

You might want to have some entertainment while falling asleep...

To shutdown the system in 30 minutes time:

sudo shutdown -P +30

cancel shutdown during that time:

sudo shutdown -c

Read on

Set up NetworkManager for VPN

sudo aptitude install network-manager-openvpn network-manager-pptp network-manager-vpnc

Read on

Set up gedit for use with C++

The post describes the setup for gedit to get most out of it for C++ development.

Activate gedit plugins using Edit → Preferences in gedit.

Smart indentation plugin for C/C++/Java

Function browser

The Ubuntu package gedit-plugins including an embedded terminal

to get an integrated terminal, get the package gedit-plugins. This...

Read on


sudo aptitude install merkaartoor

Read on

lighttpd webserver


sudo apt-get install lighttpd

The webdocuments root folder is /var/www. Refer to the site for more features (php etc) .

change ownership of /var/www in order to be able to put files there as normal user

sudo chown philipp /var/www
sudo chgrp philipp...

Read on

Autostart on Ubuntu

Xorg Server Autostart:

Check xinit(1) man page for further details.
System wide autostart: /etc/X11/xinit/xinitrc
User specific autostart: ~/.xinitrc


Gnome user specific:
System → Einstellungen → Sitzungen → Startprogramm

Gnome system wide:
Create a file e.g. MyProgram.desktop in the directory /etc/xdg/autostart:

[Desktop Entry]
Exec=command to be executed

Read on

Send `net send` commands like on Windows using Linux

On Windows Systems you can send short messages using the net send command. This is also possible using smbclient on Linux:

smbclient -M Hostname_or_IP "nachricht"

You can also pipe-in the text to send:

echo "Nachrichtentext" | smbclient -M Hostname_or_IP

Or directly send textfiles up to 1.6 KB:

cat msg.txt...

Read on

JOSM Java OpenStreetMap Editor



Tested Version

To install the tested (stable) version of JOSM, get the JOSM log...

Read on

Look into a Mac OS X installer package

To open a Mac OS X installer package (.pkg) you can right click on the bundle and select Show Package Contents. Inside you will find a packed file in the .zip or .gz format. When you unpack this file you get a pax file and you can unpack that too....

Read on

Ubuntu's Automatic File System Checks

Fix errors automatically on startup

sudo gedit /etc/default/rcS

and change FSCKFIX=no to FSCKFIX=yes

Force a check of all ext3 partitions on next startup

sudo touch /forcefsck

View results of previous filesystem checks

less /var/log/fsck/checkroot
less /var/log/fsck/checkfs

Read on

Statistical Data - Open Access

German Statistics:
German made European Statistics:
European Statistics:


The Open Source Geospatial Foundation
good overview
many, many links...
GRASS GIS especially
GDAL - Geospatial Data Abstraction Library


Read on

strace - Watch File Access of any Executable

To trace files that a certain software opens, run:
strace -e trace=open -o my_progam.log my_program
# Or include access as well:
strace -e trace=open,access my_program
# Log a CDROM autorun:
strace -o out.txt -f ./cdrom/autorun
# Analyze log file for operations setting a SUID bit:
grep '...

Read on

Network Bandwidth Monitoring Tools

Commonly used tools to monitor or test network bandwith are:

  • bmon
  • bwbar
  • bwm
  • bwm-ng
  • iftop
  • iperf
  • ipfm
  • ttcp
  • speedometer
  • cbm
  • ibmonitor
  • pktstat
  • mactrack
  • MRTG
  • Cacti


I really like bmon for monitoring; it's a light-weight real-time CLI bandwidth monitor. Its status output is given for the individual network interfaces on your computer.

sudo aptitude install bmon

sudo bmon

Press g for console graphics and d for detailed stats.


Read on

Hauppauge Nova-T USB2 DVB-T Stick

First we want to find out something about the hardware.
Using dmesg we find:

dib0700: loaded with support for 8 different device-types
dvb-usb: found a 'Hauppauge Nova-T Stick' in 

Read on

Problems with scp / gvfs caused by ~.bashrc

Output in printed by statements in your ~/.bashrc for non-interactive sessions causes scp and sftp actions to fail! So please do not put output to the .bashrc.

You can however test if the session is interactive or not. An example: If you want to start screen depending on whether we connect using an...

Read on

Set Up Public/Private Key Authentication for SSH to Connect from Laptop ↔ Desktop Without a Password Prompt

On both Linux/Unix computers you have to make sure they have a public key ~/.ssh/ If it is not there yet, run:

ssh-keygen -t rsa -b 4096

The desktop should be able to connect to the laptop with no password: (we work on the desktop here):

scp ~/.ssh/ philipp@laptop:~/
ssh philipp@laptop

Read on

Ifconfig - dissected and demystified

eth0      Link encap:Ethernet  HWaddr 00:70:40:42:8A:60
       inet addr:  Bcast:  Mask:
       RX packets:160889...

Read on

tinc vpn - with automatic full mesh routing

tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and encryption to create a secure private network between hosts on the Internet. It runs on many platforms including Linux, FreeBSD, OpenBSD, NetBSD, MacOS/X, Solaris, Windows 2000, XP, Vista and Windows 7.

The installation of tinc on Ubuntu Linux is...

Read on

Get rid of annoying rubber error: DeprecationWarning: md5 ...
the patch is:;filename=python2.6.patch;att=1;bug=520048

To get rid of the annoying rubber deprecation warning of a deprecated use of the md5 library, open /usr/share/rubber/rubber/ and change:

import md5
m =


import hashlib
m = hashlib

Read on

search for an alternative to google calendar and address book

debian howto:




Read on

Find out UUID of your Partitions

Run blkid:

    /dev/sda1: UUID=”1c9e4ae2-0ddc-4e3c-8758-4cdd6c90407a” SEC_TYPE=”ext2″ TYPE=”ext3″
    /dev/sda5: UUID=”a647ea33-74ee-4123-84bf-7edc32e2e39b” TYPE=”swap”

Read on

gLabels is a program for creating labels and business cards. Works well!

sudo apt-get install glabels

Read on

Calc 2 LaTeX Plugin for

update 2011-06-18: For LibreOffice, the extensions can be found on Calc2LaTeX, however, is not in this list and can still downloaded as before:

Get the extension from and install by double clicking or do it all on the terminal:

cd ~/Downloads
oowriter Calc2LaTeX.oxt

Read on

React when Network Interface is slow (as in half-duplex mode etc.)

Analyse the situation by taking a look at the configuration and stats:

ifconfig -a
netstat -s

Check if your gateway and DNS servers are reachable. If only one of the dns servers is not reachable edit /etc/resolv.conf manually (will be overwritten by next network change).

To set the network interface eth1 to 100MBits...

Read on

Set up an SMTP Server Without Authentification

I don't like to set up an SMTP server without authentification but I needed it for a special hardware, the Koukaam NETIO 230A. It sends reports of its operation via unauthenticated SMTP emails.

sudo aptitude install postfix

Read on

Delete old & unused Kernels

You could also use the "System Clean Up Tool":

List all installed kernels:

dpkg --list | grep linux-image

Then remove the kernel(s) you don't need anymore. e.g.:

sudo aptitude remove linux-image-2.6.28-11-generic

This automatically removes all kernel modules depending on this kernel image and the kernel headers. It also...

Read on

Anonymising Internet Usage

with Tor


gpg --keyserver --recv-keys 0x94C09C7F
gpg --export 0x94C09C7F | sudo apt-key add -
echo "deb jaunty main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update 
sudo apt-get install tor

setup of a HTTP-Proxy for tor Tor being a Socks-Proxy (not a HTTP-Proxy) means you can't...

Read on

No Beep on Reboot

sudo gedit /etc/modprobe.d/blacklist.conf

Then add those two lines to the blacklist and click save:

#Stop PC speaker
blacklist pcspkr

Read on

Vimperator – Firefox Plugin

The most important command:


Get the normal Firefox menu back:

set guioptions+=mT

Read on

Create ISO Image of non-copy-protected DVDs / CDs

Using dd

dd if=/dev/sr0 of=~/image.iso

Using readom

Usually a better choice compared with dd is readom (read optical media). It has built in error checking.

sudo umount /dev/sr0
readom dev=/dev/sr0 f=~/image.iso

Burn .iso to a CD/DVD

If you want to write the ISO to a disk afterwards, then you should be using wodim:

Read on

Recover Linux Account when You Forgot the Password

If you have a Linux machine and forgot the password you set during the installation process or if one of your friends gave you his old computer including a Linux installation without giving providing you his user name and password you can use this tutorial to help you...

Read on

Restore network-manager

When you previously removed the network manager you might want it back some day for some reason. Here's how to do it:

Remove interface definitions from /etc/network/interfaces and reinstall network-manager:

sudo apt-get install network-manager

Read on

xfig complains about missing fig2dev


sudo apt-get install transfig

Read on

Share Internet Connection

install needed packages:

sudo aptitude install dnsmasq ipmasq dhcp3-server

configure network/interfaces

auto lo
iface lo inet loopback
auto eth0
auto eth1
iface eth1 inet static
  wireless-mode master
  wireless-essid HDFredistribution


Change in /etc/default/dhcp3-server the line INTERFACES="" to INTERFACES="eth1"

In /etc/dhcp3/dhcpd.conf comment out the...

Read on

Search for Strings Inside Files

To search for the string Find me inside text files in the working directory on a UNIX computer, do:

grep "Find me" *.*

or if you want to search in all subdirectories too:

ls `find . -type f -print  | xargs grep -l -s "Find me"`

If you want...

Read on

Update the Turboprint Installation


Update the Turboprint installation:

cd ~/Downloads/
sudo dpkg -i turboprint_2.20-1_amd64.deb

Read on

Installing Google Chrome on Ubuntu 9.04

sudo gedit /etc/apt/sources.list

Then add to the file:

# Google Chrome
deb intrepid main
deb-src intrepid main

And add the sign-key to you keyring:

sudo apt-key adv --recv-keys --keyserver 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

Then update and install:

sudo apt-get...

Read on

Upgrading from Ubuntu 8.10 to Ubuntu 9.04
Upgrade using the Update Manager.

Fix a configuration issue with Gnome Power Manager

"The configuration defaults for GNOME Power Manager have not been installed correctly. Please contact your computer administrator." what helped:

sudo dpkg --configure -a

Ctrl-Alt-Backspace disabled by default in Xorg

To reenable the [Ctrl]-[Alt]-[Backspace] key combination to force a restart of...

Read on

CLI for the NetworkManager

NetworkManager has a DBUS API, so other applications can use DBUS to communicate with it and change its settings. I found three different ways to do this on the command line using a CLI (command line interface):

nmcli (NetworkManagerCmdline)

As of 2010-12-18 the most actively maintained project is nmcli:

Compare nmcli...

Read on

Guitar Tools


Free Music Instrument Tuner:

sudo aptitude install fmit

AP Tuner for Windows v3.08:


Read on

Quickshare Folder using SMB and Discover SMB Shares on the Command Line

Gnome 'Share this folder'

Right click the folder you want to share in Gnome → sharing options → Share this folder (maybe this requires the installation of package samba, after installation log out and on again).

Allow SMB Connections In Your Firewall

After configuring firestarter to allow SMB, sudo iptables-save contains:


Read on

Test Network Speed Using netcat
good (short!):

listen on machine A:

nc -v -v -l -n -p 2222 >/dev/null

on newer versions of netcat (Ubuntu 10.04) you must use

nc.traditional -v -v -l -n -p 2222 >/dev/null

Send from machine B:

time yes|nc -v -v -n 2222 >/dev/null


Read on

list all users on the system

cat /etc/passwd | cut -d":" -f1

Read on

DNS Lookup on The Terminal

Use the CLI programs host or dig to resolve domain names to IPs (and get some more information).

So when you run host for example you will get the answer has address has IPv6 address 2620:0:2d0:200::10

The output of the run of dig is more detailed:

Read on

Writer 2 LaTeX

There is an export plugin for Writer application. It uses Java and works for Writer >=v3.1 as Extension. Install like this:

sudo aptitude install

To export a Writer document do: File → Export → As LaTeX 2e ...


Read on

Searching For Files Inside Not-Installed Packages

If you want to search for a file contained in any installable package that you have not yet installed, you can search for it using apt-file search:

sudo apt-get install apt-file
sudo apt-file update
sudo apt-file search 'file'



Read on

Use smartmontools to monitor S.M.A.R.T. status of your HDDs

The S.M.A.R.T. status is not a perfect measure of your hdd health but it can sometimes provide pre-failure notification. Here is how to check the S.M.A.R.T. status on Ubuntu:

Install the smartmontools using:

sudo aptitude install smartmontools

To display all the S.M.A.R.T. information for an IDE drive, run

sudo smartctl...

Read on

Save Websites to Mirror a Browsable Version Using wget or webhttrack

using wget

wget -m -k -K -E

If this command seems to run forever, there may be parts of the site that generate an infinite series of different URLs. You can combat this in many ways, the simplest being to use the -l option to specify...

Read on

Barcode Technology (QRCode etc.)

For on overview of different barcode technologies and types see:

gnu barcode

sudo apt-get install barcode

perl barcode

GD::Barcode creates barcode images. It supports the following barcode formats:

  • COOP2of5,
  • Code39,
  • EAN13 (JAN13),
  • EAN8 (JAN8),
  • IATA2of5,
  • ITF (Interleaved2of5),
  • Industrial2of5,
  • Matrix2of5,
  • NW7,
  • QRcode,
  • UPC-A and
  • UPC-E.

Install this Perl...

Read on

Change Default Application (the one being opend on double click on a file)

  • right click a file
  • select properties
  • open open with tab
  • select you favourite application

Read on

One Time Use Email Addresses

One time use email addresses can prevent your real email mailbox from beeing flooded with spam.


Read on

ddclient - a DynDNS Client on Ubuntu Linux

Install ddclient:

sudo aptitude install ddclient

Now configure the program:

sudo gedit /etc/ddclient.conf

Enter your DynDNS account data and computer setup:

use=if, if=eth2 # the mode and network interface
# DynDNS account:

And set ddclient to run automatically on startup:

sudo gedit /etc/default/ddclient

Set the mode of ddclient...

Read on