Ubuntu 7.10 Gutsy Gibbon

Saturday, 20. October 2007 16:31 - daniel - Linux - 0 Comments


I'm finally running Ubuntu 7.10 on my laptop. But getting there was a pain in the ass. My first try was a simple upgrade from 7.04 to 7.10. My previous upgrade from 6.10 to 7.04 was pretty easy and basically everything worked after some tuning. But this time everything gone wrong. The update manager hand multiple times during downloading the updates (blame my network connection) and after I finally got all the necessary files to upgrade and had them installed, 3D support wasn't working. No idea why, even a driver reinstall hasn't worked.

At this point i decided to reinstall Ubuntu instead of fixing the installation. Well, easier than it sounds. I downloaded a 7.10 alternate CD and burned it, but the disk check failed and installing ubuntu failed. I have no idea it's because of my CD drive, my burner or whatever. The iso was ok thought.

Since I couldn't install Ubuntu from my CD I just installed a command line system and installed the ubuntu-desktop package from the internet. Getting compiz running and installing all the programms and tools I normally use took some time too, but it running nicely now. And it looks a lot better the Ubuntu 7.04.



Howto: Update gcc-avr and binutils-avr

Tuesday, 18. September 2007 16:13 - daniel - Linux - 1 Comment


Ubuntu 7.04 Feisty comes with gcc-avr version 4.1.0 and binutils-avr version 2.16.1. I wanted to update the compiler to support the dwarf2 debug format. Since avr-gcc < 4.1.2 has a bug that makes it impossible to compile with dwarf2, I couldn't just recompile the ubuntu package with dwarf2 enabled. This howto is loosely based on this howto by coldtobi and this article (German) by Sven Rudolph and Heiko Schlittermann. The coldtobi's howto doesn't work at the moment, because the links for his patches are broken.

This Howto isn't for beginners, so if you miss something, ask. The lines that start with a $ sign are for a normal terminal and lines with a # in front are for a root terminal (or write sudo in front of the command).



Read more



encrypt your pendrive

Thursday, 13. September 2007 7:33 - daniel - Linux - 0 Comments


encfs is a module for encrypted filesystems in userspace. It doesn't require special permissions and uses the fuse library. And it doesn't use one big encrypted file that spams your regular file system.

I found a little script to manage the mounting and unmounting of the drive. Just put it in the root folder of your pendrive. Create a folder named .encrypted on the pendrive and a folder named USB in your home dir. Change the ENCDIR and MNTDIR variables to match your setup.

#!/bin/sh

###############################
# Config start
###############################

# The directory on the stick
ENCDIR=".encrypted"

# Where to mount
MNTDIR="/home/daniel/USB"

###############################
# Config ends here
###############################

usage(){
    echo basename $0" [m|mount|u|unmount]"
    echo " either mounts or unmounts encrypted file system"
    }

if [ -z $1 ]; then
    usage
    exit
fi

case "$1" in
    "m" | "mount" )
        while ! /usr/bin/encfs $( dirname $0 )"/$ENCDIR" "$MNTDIR"; do   
            echo -n "Retry "
        done;
        if [ "$?" -eq "0" ]; then
            echo "Encrypted filesystem now mounted"
            exit 0
        fi
        exit 1
        ;;
    "u" | "unmount" )
        if /usr/bin/fusermount -u "$MNTDIR"; then
            echo "Encrypted filesystem has been unmounted"
            exit 0
        else
            echo "Unmounting failde"
            exit 1
        fi
        ;;
    * )
        usage
        ;;
esac



Trafficlogger

Sunday, 2. September 2007 10:11 - daniel - Linux - 2 Comments




Trafficlogger for a linux system. The code is a mess and the database takes a lot of space after some time, but I like the result. Would anyone be interested in this script?