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
exclude:
    var/cache/apt/archives
    var/cache/man
    tmp
    var/tmp

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 root@fw.emcken.dk 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 fw.emcken.dk 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
    

    And:

    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 Ubuntuforums.org 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.

My WINE games status

To night I tried to play a few games with WINE (NOT Cadega) on my Ubuntu Hoary system. Here is what I found out so far:

World of Warcraft

NOGO WoW version 1.6.1. Patches apply, game starts, you can login and select a character og play with it. But it there is a bug which makes it nearly impossible to click on any in-game items such as NPC’s, mailboxes etc. I read on some mailinglists that if you put the camara just right you are able to click on them. Preferable when you can have nothing but sky behind the object you want to clock at (yeah something like running around looking up in the sky all the time). From what I have read on the mailing lists it seems to be a Blizzard bug… a few Windows users suffers from this too. Comon Blizzard… we are so close now. The game seems to run alot faster under Linux in WINE than on my Windows XP partition (though it havn’t been reinstalled for years now, so perhapes it isn’t a fair comparisson).

Update: It is actually a YEAH. Take a look at my post about WoW i Ubuntu Breezy

Sid Meier’s Pirates

NOGO Can’t make the game install. I get an error code 1628 at once. It seems that the game uses a MSI installer, but I havn’t found any guides (yet) on how you install the game, but perhapes installaing a native MSI would solve the problem (guide located in the bottom of this post). Haven’t tried to copy from my Windows partition

Risk II

NOGO Yeah this is an old game which I usually play with the guys when we make some of our small lan-parties. There is no visual evidence (spalsh screen, menu, mouse cursor etc.) that the game actually starts, it just dies almost before it is excecuted.

Warcraft III

YEAH Remove movies from the Movies/ directory. Apply a no cd patch and the game will run with the -opengl option. Haven’t looked into playing on Battle.Net… yet.

Here is a few good reads: