Server moved... thus the downtime

I have moved my server from my parents low bandwith to my own low bandwidth DSL connection… so I’m the only one (when I’m at home) who enjoys my speedy weblog :-D

Dirvish backup through ssh tunnel

For some time now I have been trying to switch to Dirvish (from rdiff-backup) mostly because you can use a limit bandwidth which is a very important factor for me. The following is an example of configuring dirvish to use a ssh tunnel to backup through.

I assume you have created a master config file /etc/dirvish/master.conf. Lets jump right into configuring a vault /dirvish/default.conf:

client: root@localhost
tree: /
xdev: 0
index: gzip
image-default: %Y%m%d

Note: xdev needs to be 0, not false, no, off or anything like it. (I was tricked by this because the dirvish for Debian guide uses the value true for xdev which AFAIK is wrong.

All this until now is standard dirvish stuff. Now comes the tunnel part:

pre-server: ssh -f -L 20014:rivendell:22 sleep 14400
rsh: ssh -o HostKeyAlias=1114 -p 20014

pre-server is a command to run before the backup starts. The command above will create a ssh tunnel through to rivendell on port 20014 and go into the background. The sleep 14400 keeps the tunnel open for 4 hours when idle. Don’t worry!… your backup won’t be terminated if it is still in progress after 4 hours. The tunnel will be kept open for as long as the runnel is in use. The remote execution is just an ugly hack to ensure that the tunnel is automatically closed after use.

rsh is the important stuff. The -o HostKeyAlias=1114 makes us able to connect to localhost without being told that someone might be trying to do a ‘man-in-the-middle attack’ and refuse to connect to the tunnel. But to use HostKeyAlias we need to specify this in /root/.ssh/config more on this further down. -p 20014 specifies the port we want to connect to.

The following might be useful when making backups over the internet:

zxfer: true
speed-limit: 90

zxfer compress all data transmitted and speed-limit limits the bandwidth that dirvish will use.

Now to complete the setup the machine being backed up is defined in /root/.ssh/config:

Host rivendell
Port 20014
HostKeyAlias 1114

This is placed in root’s home dir because (on my system) root (cron) runs my backups. It is possible to create a separate user for it but I didn’t think it nessesary.

Now when you have copied your public ssh key to the machine that is going to be backed up, you are all set.

World of Warcraft under WINE with kernel 2.6.12

After reading a post on some Gentoo forum where someone said that they didn’t need the memory hack for Cadega to run World of Warcraft after using kernel 2.6.12, I gave it another shot.

The annoying not-beeing-able-to-click-on-anything-in-game-bug is now gone. So far I havn’t played more than 10 minutes but it seems the game just runs as it should :-D

My danish characters has stopped working again, though. But I think it has something to do with Breezy because it worked in Hoary.

Well, running WoW with the newest WINE release and a 2.6.12 kernel in opengl works!

Over and out!

Sound-Juicer and MP3 in Ubuntu Breezy

After my success with installing Ubuntu Breezy I wanted to rip 2 new CD’s I got today. But the gstreamer MP3 encoder (gstreamer0.8-lame) isn’t in the Ubuntu repositories.

I found it at Marillat’s Debian repository (direct link) where I downloaded it and installed it with:

rivendell:~# dpkg -i gstreamer0.8-lame_0.8.10-0.1_i386.deb

You also need the package liblame0, which is in multiverse:

rivendell:~# apt-get install liblame0

In the Sound-Juicer in Breezy you can add a MP3 profil from within Sound-Juicer preferences. You might wanna take a look at an earlier entry about MP3 ripping in Sound-Juicer in my blog.

Installed Ubuntu Breezy with success

…well it didn’t come working out of the box :-D

  1. I installed Hoary from CD and upgraded Hoary packages from the internet (though I dont think upgrading was nessesary).
  2. Logged into a console (Alt+F1) and shutting down X:

    rivendell:~# /etc/init.d/gdm stop
  3. Changed all Hoary soruces to Breezy sources in /etc/apt/sources.list
  4. Then i dist-upgraded Hoary:

    rivendell:~# apt-get -u dist-upgrade

    I had to upgrade a few times before all packages was upgraded.

  5. Now I tried to configure X with:

    rivendell:~# dpkg-reconfigure xserver-xorg

    Didn’t read what it was saying just pressing enter, enter, enter…

  6. Now I tried to start X:

    rivendell:~# /etc/init.d/gdm start

    But got the following errors in the logfile in /var/log/gdm/:0.log:

    sh: /usr/X11R6/lib/X11/xkb/xkbcomp: No such file or directory
    Couldn't compile keymap file
    (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap


    Fatal server error:
    could not open default font 'fixed';
    the X server's font paths might be misconfigured, remote font server(s)
    may be unreachable, and/or local fonts may not be installed or are not
    configured correctly.

    Note: I had trouple using my keyboard at this point but I waas able to get through all the messages wit the ‘d’ key, and back into the console.

  7. Surfing the got me to the following:

    rivendell:~# apt-get install xkb-utils
    rivendell:~# apt-get install --reinstall xfonts-base

    xkbutils gives the needed binary xkbcomp. Actually I don’t think I had xfonts-base installed at all after upgrading to Breezy, so the option --reinstall might not be nessessary.

  8. Now try restarting GDM and perhapes you are as lucky as me, and will now be greeted by the Ubuntu graphical login screen:

    rivendell:~# /etc/init.d/gdm restart

My computer is equiped with a fairly old Nvidia graphic card, dunno if that makes any difference.