Thursday, February 12, 2009

Thunderbird Portable - Configuration - Win XP

Create a ThunderbirdPortable.ini File. How to do this you'll find in the \ThunderbirdPortable\Other\Source\Readme.txt File that comes with the installation.

Google Sync - Iphone

Just changed from Nuevasync to GOOGLE SYNC to sync my Google Contacts and Google Calendar with my Iphone.

Monday, February 9, 2009

pdf - debian 'etch'

apt-get install xpdf

For more information about pdf and debian see the debian wiki.

ntfs-3g - debian 'etch' - read and write ntfs

today I wanted to mount my external harddisc in ntfs format, so that's what I did:

I basically followed the instructions, that are described here.

1. Because of unsolved dependencies in 'etch' I had to manually download ntfs-3g and libntfs-3g.

2. install dependencies:

apt-get install fuse-utils libfuse2

3. install ntfs-3g using the just downloaded packages:

dpkg -i libntfs-3g0_0.0.0+20061031-6_i386.deb
dpkg -i ntfs-3g_0.0.0+20061031-6_i386.deb

4. mount the external disc:

ntfs-3g /dev/sda1 /mnt/extdisc -o force

a) Make sure that you create the directory /mnt/extdisc before mounting.
b) /dev/sda1 is to be replaced by your disc (find out by typing: 'fdisk -l')
c) Because there was en error loading the disc normally (might be caused by ms windows), I used the 'force' option.

Friday, February 6, 2009

slim down the debian 'etch' minimal x-system

Got this error message at start-up, that the internet superserver doesn't start, so I first did the following:

update-rc.d -f openbsd-inetd remove

But soon afterwards I decided to remove the whole openbsd-inetd package by typing:

apt-get remove -purge openbsd-inetd


apt-get install gimp

nice and fast!

Thursday, February 5, 2009

vpnc on Debian 4.0 or 'Etch' - the latest stable release

If you need a vpn client installed on your machine, here's a tutorial for vpnc (which is the best alternative for the cisco client for windows machines).

Open a terminal and go root by typing:

Open 'etc/apt/sources.list' with the nano-editor, which is very intuitiv and comes with every Debian installation, by typing:
nano /etc/apt/sources.list

Once opened, check if your repositories-list looks similar to this one:

deb etch main contrib non-free

Because the package is in the main-repository 'main' is the key word that must not be missing in your '/etc/apt/sources.list'. If it should not be there, just add the line above. To save in the nano editor, you press 'ctrl-o' and quit it by pressing 'ctrl-x'.

If you had to modify the file update the repository list by typing:
apt-get update

Install the vpnc by typing:
apt-get install vpnc

Create a configuration file in order to have access to Zurich University by typing:
nano /etc/vpnc/uzh.conf

The following text should be inside:
IPSec gateway
IPSec ID 'groupUsername'
IPSec secret 'groupPassword'
Xauth username 'sYourImmatriculationNumber'
Xauth password 'yourPassword'

save the file by pressing 'ctrl-o' and quit the editor by pressing 'ctrl-x'.

a) don't write the quotation marks ' '.
b) 'groupName', 'groupPassword' can be found on the website
of the Zurich University.
go here

c) Xauth password can be set or not, it's up to you!

Customise the File Rights
Type in the terminal:
chmod 644 /etc/vpnc/uzh.conf
chown root.root /etc/vpnc/uzh.conf

Start / end the program
1. In order to start the program, type in the terminal as superuser:
vpnc uzh

2. In order to end the program, type in the terminal as superuser:

More information on how to enter the internal section of the University of Zurich can be found

Install Flash in Debian 'Etch'

To surf the world wide web you need for a lot of websites flash installed. And unlike the Iphone, which I nevertheless love a lot, with Debian it's possible to install flash!

The automatic procedure included in browsers does not work for a Debian 'Etch' based system. But it's very easy to install:

Because we need the backports repository, we first install the debian-backports-keyring package in order to verify the downloaded files:

apt-get install debian-backports-keyring

Then, one has to add the following line to the '/etc/apt/sources.list':

deb etch-backports main contrib non-free

In order to have the packages automatically upgraded from the backports repository, you modify or create 'etc/apt/preferences' in the following way:

Package: *
Pin: release a=etch-backports
Pin-Priority: 200

Update afterwards the repositories list with:

apt-get update

And then you simply type:
apt-get install flashplugin-nonfree

For more information on backports see The Debian Wiki or
For more information on Flash and Debian see The Debian Wiki.
For more information on installing Flash in a Debian based System see

Debian 'Etch' on Toshiba Libretto U100 - a minimal X-system and wireless card

I just love my good old Toshiba Libretto U100. And after some years on Windows XP I decided to go back to the roots and work with Debian GNU/Linux - a system I played a lot with in the past.

The installation process went easier than it used to be. Everything I need for the beginning is recognised on the Toshiba Libretto U100. Not the wireless card though, but this is just because the driver is inside the non-free repository!

I decided to install nothing but the core system (so said no to all the tasksel offers during the installation process). Then on the terminal I first customised the '/etc/apt/sources.list' to the following:

deb etch main contrib non-free
deb-src etch main contrib non-free

deb etch/updates main contrib
deb-src etch/updates main contrib

Then I did a 'apt-get update' and went on installing a minimal x-System:

apt-get install xorg (I chose 1600x1200 for the external monitor I plan to use and 1280x768 and 1024x768 for the tiny U100 display).

#very basic login manager
apt-get install xdm

I was hesitating between fluxbox - blackbox - openbox - jwm... but there are lots more, have a look here for a nice comparison between some desktop packages. I first stick to fluxbox.
apt-get install fluxbox

For more information to install a mininmal debian x-system see here.

Now it's time to get my wireless card working, because I hate the limitations of a cable-based internet connection! For more information on this see here.

#install the needed packages
apt-get install module-assistant wireless-tools

#build and install a madwifi-modules*-package in my system
m-a prepare
m-a a-i madwifi

There was no need for me to unload the ath5k module (you can do it anyway if you're not sure by typing: 'modprobe -r ath5k'.

#load the ath_pci module
modprobe ath_pci

#check that your device has an available interface

#raise the interface to activate the radio, for the U100 it's ath0
ifconfig ath0 up

#Because I'm using wpa encription, I needed to install wpa-supplicant package
apt-get install wpasupplicant

After this I customised my '/etc/network/interfaces' file, for more information on this, see here.

# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface (I commented-out the 'eth1'
#interface for ethernet, because
#I won't use it normally, I did not delete it, if I have to use it some day)

iface ath0 inet dhcp
#bring up wireless automatically at system start-up
auto ath0
wpa-ssid myNetworkName
wpa-psk mySecretPassPhrase
wireless-essid MyNetworkName

#allow-hotplug eth1
#iface eth1 inet dhcp

After saving the file, I brought up the interface
ifup ath0

Now, in order to use the internet, I installed iceweasel (debian's firefox):
apt-get install iceweasel

And finally, I'm going to restart my new system, pretty nervous, though :-)

And yes.... it's working!

Wednesday, February 4, 2009

Acer Aspire One - vpnc tutorial - sample Universität Zürich

Prepare your Acer Aspire One

1. Press 'Alt-F2', write 'terminal' and press 'Enter'.

2. Download the kernel module 'tun.ko' by typing the following into the terminal: 'sudo wget'

3. Now copy the module where it should be by typing the following:
'sudo cp tun.ko /lib/modules/'
'sudo mv tun.ko /lib/modules/

Of course it's possible to download the file directly to the right place:
'sudo wget /lib/modules/'
'sudo cp /lib/modules/ /lib/modules/'

'' is the current kernel version (after 9 it's an 'l' as in 'lima' and not a 'one').
You find your version by typing: 'ls /lib/modules'. If you have a different version just replace with your version number!

4. Finish by typing: 'sudo depmod -a'.

Create the configuration file and customise it
1. Go to the place where the file should be placed by typing: ' cd /etc/vpnc'.

2. Create the file by typing: 'sudo vi uzh.conf'.
Although 'vi' is not very intuitiv, but every GNU/Linux Distribution comes with it, and by following this tutorial you're able to use it in order to create and customise the configuration file. If you prefer another editor, just take the one you like.

3. Once the editor's opened in the terminal, type the following: ':i' and press 'Enter'. You're in the 'insert-mode' now.

4. write:
IPSec gateway
IPSec ID 'groupName'
IPSec secret 'groupPassword'
Xauth username 'sXXXXXXX'
Xauth password 'yourPassword'

a) don't write the quotation marks ' '.
b) 'groupName', 'groupPassword' can be found on the website of the Zurich University:
go here
c) Xauth password can be set or not, it's up to you!

5. In order to save the file, press 'ESCAPE', your in the command mode now. Then type: ':wq' ('w' is for write, i.e. save the file and 'q' is for quit.

Customise the File Rights
1. Type in the terminal:
'sudo chmod 644 /etc/vpnc/uzh.conf'
'sudo chown root.root /etc/vpnc/uzh.conf'

Start / end the program
1. In order to start the program, type in the terminal: 'sudo vpnc uzh'
2. In order to end the program, type in the terminal: 'sudo vpnc-disconnect'

More Information on how to enter the internal section of the Zurich University by a vpn client can be found here.

Acer Aspire One - System Rescue - USB Stick

After my System Rescue Disc, that was delievered with my new Acer Aspire One, just did not want to work, I searched the web for a usb-stick image and a possibility to install the system from scratch without a cd!
For my solution you need a running GNU/Linux system, a usb stick (at least 2GB) and the usb-image.

Where to find an image:

or look for a torrent:

Once you've downloaded the image, plug-in the usb stick, open a terminal and go root by typing 'su'.

In the Folder where the image is, type:
'zcat aa1_usb_recovery_image.gz > /dev/sda'

In my case the usb stick is 'sda', to find out what's in your computer, type fdisk -l.

And voilà your bootable usb recovery stick is done!