Posts with the category Ubuntu 10.04

Resize Images from Context Menu on Gnome / Ubuntu Linux

Easiest way using the Ubuntu/Debian package nautilus-image-converter:

sudo apt-get install nautilus-image-converter

Using a Custom Photo Resize Script for the Nautilus File Manager

This context menu script can resize to 3 predefined sizes (more can be added) and it asks to put the resized pics in a folder or rename them....

Read on

Keyboard Commands for the IceWM Window Manager

See Keyboard Commands in the IceWM manual.


Read on

Upgrade to Ubuntu Maverick using the CD

  1. Download the alternate installation CD
  2. Burn and insert it or mount it using sudo mount -o loop ~/Desktop/ubuntu-10.04-alternate-i386.iso /media/cdrom0
  3. Follow the on-screen instructions or run gksu "sh /cdrom/cdromupgrade"

Read on

Local SOCKS-5 Proxy by only connecting via SSH

ssh -D 8080 someuser@somecomputertouseasgateway

then setup the browser on this machine to use localhost:8080


Read on


denyhost can help keep out unwanted guests from your ssh server.


# /etc/hosts.deny


# End of file


# /etc/hosts.allow

sshd: ALL EXCEPT /etc/hosts.evil

# End of file

Read on

Install eclectus Chinese Dictionary

eclectus is a great piece of software! It can use CEDICT (Chinese English incl. pinyin) and HanDeDict (German - Chinese).

Add the repository to the package sources:

echo "deb lucid main 
deb-src lucid main" | sudo tee /etc/apt/sources.list.d/eclectus.sources.list

Add the signing key, update...

Read on

Set up WebDAV-Server

First install apache2:

sudo aptitude install apache2 apache2-doc

Then enable the needed mods dav and dav_fs:

sudo a2enmod dav
sudo a2enmod dav_fs

and reload the apache2 configuration:

sudo /etc/init.d/apache2 reload

Now setup a directory for webdav access. You can do this by adding the following lines in the file...

Read on


Install OpenVPN

sudo aptitude install openvpn
# open port 1194 (as shown here for the ufw firewall interface):
sudo ufw allow 1194

Become an Certificate Authority

Alternative to this way: Use TinyCA (there are Ubuntu packages available).

sudo mkdir /etc/openvpn/easy-rsa/
sudo cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/
sudo chown -R $USER /etc/openvpn/easy-rsa/
cat << EOF...

Read on

IP address calculators


sudo aptitude install python-ipcalc

the needed module is /usr/share/pyshared/


sudo aptitude install sipcalc

example usage:


sudo aptitude install ipcalc



gip - IP calculator for gnome

sudo aptitude install gip

Read on

Set up an AFP Server for Apple Time Machine

If you follow the steps on this site you install netatalk from the Ubuntu binary archives and not from source! So make sure you use (as mentioned below) as auth module in order to encrypt your password.

sudo aptitude install netatalk
# Edit the configuration files:
sudo vim /etc/default/netatalk

Read on

virtualbox - Configuring port forwarding with NAT

To set up incoming NAT connections to an ssh server in the guest, use the following command:

VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22"

With the above example, all TCP traffic arriving on port 2222 on any host interface will be forwarded to port 22 in the guest. The protocol name...

Read on

Install The compiz Plugin: Screen Saver

sudo apt-get install compiz-bcop compiz-dev build-essential libtool libglu1-mesa-dev libxss-dev libcairo2-dev git-core x11proto-scrnsaver-dev libxss-dev
mkdir -p ~/Downloads/compiz
cd ~/Downloads/compiz
git clone git://
cd screensaver
make install

log out and back in


Read on

NX Server


sudo apt-get install python-software-properties && sudo add-apt-repository ppa:freenx-team
sudo apt-get update
sudo aptitude install freenx

Now use nxsetup to install necessary files and create the special user "nx"

sudo /usr/lib/nx/nxsetup --install

If you need nxsetup binary for this check out:

shadow sessions on FreeNX - enables concurrent access to...

Read on

CalDAV Server

Apple Calendar Server


The project homepage
DAViCal on Ubuntu Users (German)

I got DAViCal to work with Ubuntu but its not the most stable piece of software that I have seen yet.

sudo aptitude install davical davical-doc

Allow network connections on port 11371:

sudo ufw allow...

Read on

Install EtherPad server

To install EtherPad you first have to edit the package repositories:

sudo gedit /etc/apt/sources.list

and add the following two lines (of which you might already have the first activated and where lucid could also be maverick or natty depending on your Ubuntu version):

deb lucid...

Read on

Mount HFS+ Volume with Write Access / Disable HFS+ Journal

If you want to mount an HFS+ volume on an Ubuntu computer, all you have to do is to disable the Journaling for the partition. Connect the HDD to a Mac (Firewire didn't work!), boot into Mac OS X and execute the following command on the terminal:

sudo diskutil...

Read on

monit - A Tool To Monitor Processes Running on your Linux Machine

Setting it up (German)

sudo aptitude install monit

Enable it by setting startup=1 in the config file /etc/default/monit.


You have to edit the file /etc/monit/monitrc.

Here's a small example:

## Monit settings
set daemon 120
set logfile syslog facility log_daemon            ...

Read on

Watch the network for an IP conflict - ipwatchd

Installation on Ubuntu:

sudo aptitude install ipwatchd-gnotify

if configured correctly (true by default) it will show you graphical warnings for IP conflicts as well as create log entries in /var/log/syslog (check for log messages containing ipwatchd).

Advanced configuration options are described and have to be set in the file/etc/ipwatchd.conf. This could...

Read on

EtherApe – A Tool To Analyse Network Traffic

A bit less technical than wireshark (does not show single packages in detail):


Read on

Xilinx ISE WebPACK

Get it from the website, install and run




Read on

Clean Google Docs from Chrome Bookmarks

I was annoyed of all my Google Docs appearing in my Chrome bookmarks (used the daily build). So here is how to remove them from the bookmarks:

Open Google Chrome, set up sync, select all bookmarks ([Ctrl]-[Shift]-[B] and then select multiple bookmarks using the [Shift]-key) and keep Chrome open to sync...

Read on

How to use tcpdump

You can use tcpdump to debug TCP/IP connections.

How it works

1st console run tcpdump:

philipp@lion:~$ sudo tcpdump -i lo
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes
09:55:05.968006 IP lion > lion: ICMP echo request, id 5745, seq 1,...

Read on

Install MediaWiki from Debian package

You can install a MediaWiki either by downloading and unpacking the .tar.gz archive and setting it up manually or by using the Debian package mediawiki.

This blog posts describes how to install MediaWiki using the Debian package on Ubuntu:

sudo apt-get install mediawiki

Now uncomment the alias for mediawiki in the...

Read on

React to IP Takeover

When someone has taken your IP, react!

Set your IP to the correct one (belonging to you):

sudo ifconfig eth0 netmask

and run arping to get the IP back on your side:

sudo arping -U -c 3 -I eth0
sudo arping -A -c 3 -I eth0

Also have...

Read on

Sun Java on Ubuntu 10.04 (instead of Open JDK)

With Ubuntu 10.04 Lucid Lynx there are no sun-java6-... packages (previously found on multiverse) anymore. They now are part of the repository partner. It's recommended to uninstall all openjdk packages.

You need the following lines (uncommented) in your /etc/apt/sources.list:

deb lucid partner
deb-src <span...

Read on

Downgrade a Package

using Synaptic: Package → Force Version in Synaptic

preferred using aptitude:

apt-cache showpkg libAppA

which will produce an output similar like this:

6.5.1-cvs20060628 - libAppA
6.4.1-0ubuntu8 - libAppA

So you can force a certain...

Read on

Viewing the Changelog of Ubuntu Packages

at the command line using aptitude:

aptitude changelog <packagename>

This only works for officially supported packages, so it won't work for PPAs

alias to see the changelog for all packages that need an update

To see a description of all available updates, I create for myself the following alias in the ~/.bashrc:


Read on

Virtualbox – Installing the NonFree Version on Ubuntu

sudo add-apt-repository "deb lucid non-free"
wget -q -O- | sudo apt-key add -
apt-get update
apt-get install virtualbox-3.1

solve problems with package signature

when running sudo apt-get update I got the following error:

W: A error occurred during the signature verification<span...

Read on

Ubuntu 10.04 lucid

set window operating buttons back to the right side

gconftool-2 -s /apps/metacity/general/button_layout --type=string "menu:minimize,maximize,close"

upgrade problems on Samsung Q25

but seems to be rather this issue:

boot with the -vesa video driver

other choice: use a newer Intel Video driver 2.11git:

upgrade xserver-xorg-video-intel to 2.11git

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