Aug 19

When transfering a harddisk with Ubuntu 10.04 to another machine you’ll end up without a working network connection.

To overcome this you can do:

echo -n > /etc/udev/rules.d/70-persistent-net.rules
echo -n > /lib/udev/rules.d/75-persistent-net-generator.rules


Aug 05

Installing OpenVPN-GUI (openvpn-2.0.9-gui-1.0.3-install.exe in my case) on Windows 7 Pro 32Bit  works as usual by running the setup process.

Although the connection will be established you won’t have any routes.

  1. Download setacl from
  2. run setacl -on openvpnservice -ot srv -actn ace -ace “n:Benutzer;p:start_stop”
  3. by going to Computer/right click/maintenance/user and groups add the desired user to the group Networkconfiguration-Operators (Netwerkkonfigurations-Operatoren)
  4. in the .ovpn configuration file add the lines
    route-method exe
    route-delay 2
  5. disable the service openvpngui via msconfig
  6. change the startlink for OpenVPN-GUI to be run as Administratior
Jan 23

Assuming you have a default installation of Apache 2 and Tomcat 5.5 running on your Ubuntu box.

Like apache on http://hiserver and Tomcat on http://hiserver:8080

Now you want to accces i.e. http://hiserver:8080/baula through apache with http://hiserver/baula

Continue reading »

Jan 04

Just some common pitfalls to avoid when setting up BackupPC….

  1. When doing a backup of a host whose data is mounted using a nfs share then you have to modify the TarClientCmd.
    Instead of
    $sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f – -C $shareName+ –totals
    env LC_ALL=C $tarPath -c -v -f – -C $shareName+ –totals
    because ssh doesn’t work when accessing local directories.
  2. The part env LC_ALL=C is important if you work with a non english locale. Because otherwise the backup gets done but in the end BackuppPc can’t check the result.
  3. To avoid all sorts of access restrictions run tar as root like
    env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f – -C $shareName+ –totals
    To make this work start  visudo and add the line
    backuppc ALL=NOPASSWD: /bin/tar
Oct 14

sudo add-apt-repository ppa:robert-ancell/simple-scan

sudo apt-get update

sudo apt-get install simple-scan

Oct 13

Sometimes programs aren’t used in a way the programmer knows when creating a software. I had the situation that the properties stored in the registry where system wide but I needed different settings for every user.

Well actually not really a problem. (Except if you need to use Windows 7) I located the settings in the registry exported them into a .reg file and a small .cmd batch job should append a user specific setting and start the program.
The only problem is that a line like
echo pfrdlpfrz=c:\blabla\pfrz>>export.reg
resulted in a new line in export.reg with CHINESE CHARACTERS !!!!

But if you take the content of the export.reg and copy it into a NEW file and save it as export.reg then everything works.


Ok, it’s actually only a small problem, but PLEASE tell me the concept behind this – or – oh I understand – there is no concept…..

Aug 12

One of my customers is running a IPCop machine that does all the DHCP/DNS/Gateway stuff on the network. This works on the local 192.168.10.x network.
Recently we added a second internet line for accessing the company’s headquarter. They use the 172.16.x.x network.

Therefore a
route add -net netmask gw
does the job.
In order to make that route permanent the above line has to be added to /etc/rc.d/rc.netaddress.up also.

Now every workstation on the local network is capable of accessing the headquarter’s network by IP address. But accessing the headquarter’s network by hostname does NOT work.
The reason is that every DNS request to the domain gets transferred to the public DNS by IPCop and .group is no valid public TLD.

Using IPCop’s DNS1 / DNS2 settings does not work because the multiple DNS only get asked in case the previous one is unaccessible.

What has to be done is to tell IPCop that he has to use a different DNS once a request concerning arrives.

Continue reading »

Jul 28

There are serveral reports that Firefox (as well as Epiphany) is not able to upload files from a network-share on recent versions of Ubuntu. See Bug #279193 for example.

You can solve this by linking your ~/.gvfs directory to the bookmarks in nautilus.

Continue reading »

May 21

For some reason it may happen in Ubuntu Lucid (10.04) that your USB storage devices aren’t detected anymore.

The indeed _very_ strange solution is to turn off LEGACY FLOPPY SUPPORT in the BIOS setup. If you don’t have such a setting (i.e like my Dell Precision T3400) and don’t have any floppy drive either then try deactivating everything that refers to floppy drives in the BIOS setup.

May 12

A short (one line) script for linux that pings all clients on your network. If using another subnet than 192.168.0 then you have to adjust the numbers.

export i=0;
while [[ $((++i)) -le 254 ]];
do ping -c1 -w1 192.168.0.$i | grep ttl | cut -d " " -f4 | cut -d ":" -f1;

Thanks to

preload preload preload

WP SlimStat