Archive

Archive for June, 2009

IMAP mail account migration

June 29th, 2009 No comments

I moved my email account to FastMail.fm and had to migrate an imap mailbox via my ubuntu desktop. If you want to join them feel free to use my link with referal code :) FastMail.fm

First we have to install the imapsync package:

sudo apt-get install imapsync

Then we have to trigger the migration:

imapsync --syncinternaldates \
  --host1 mail.source.tld --authmech1 LOGIN --user1 user@domain.tld --password1 secret \
  --host2 mail.target.tld --authmech2 LOGIN --user2 user@domain.tld --password2 secret

Now drink a coffee :D , because this can take a while.

Categories: IMAP, Linux, Mail, Ubuntu Tags:

Syncronize time on ubuntu

June 18th, 2009 No comments

This how to is based on the ubuntu documentation. First we have to add the basic packages:

sudo apt-get install ntp ntpdate

Than we have to do some basic configuration:

echo "ntpdate ntp.ubuntu.com pool.ntp.org " >> /etc/cron.daily/ntpdate
sudo chmod 755 /etc/cron.daily/ntpdate
echo "server ntp.ubuntu.com" >> /etc/ntp.conf
echo "server pool.ntp.org" >> /etc/ntp.conf

Have a look at this page for more ntp Servers.

I had to change my timezone as well, this can be done by changing a symbolic link:

ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

Just replace Europe/Berlin by your timezone. You can find more information about changing timezones here.

Categories: Linux, Ubuntu Tags:

Adding madwifi support to easy peasy

June 17th, 2009 No comments

As descibed here we have to install the kernel headers first:

sudo apt-get install build-essential linux-headers-$(uname -r) subversion

Now we can add the madwifi drivers for the wlan chipset:

cd /usr/local/src
svn checkout http://madwifi-project.org/svn/madwifi/trunk madwifi
cd madwifi
make
sudo make install
sudo modprobe ath_pci

You can find some additional Information of putting madwifi into a kernel at this page. (German)

We have to do some additional configuration first we have to add the module to /etc/modules:

echo "ath_pci" >> /etc/modules

I added some scripts following the howto.

Categories: Linux, Ubuntu, easy peasy Tags:

Screen and ubuntu 9.04

June 16th, 2009 No comments

We have to install the screen package first:

apt-get install screen

We add the following at the end of the configuration file:

vim /etc/screenrc
hardstatus string "%h%? users: %u%?"
startup_message off
hardstatus alwayslastline "Redmine: %-Lw%{= BW}%50>%n%f*   %t%{-}%+Lw%<"
bindkey -k k7 prev
bindkey -k k8 next

Now you can open a screen session:

screen
screen -r
-> resume a screen session
screen -x
-> join a screen session

When you start screen:

CTRL - A then CTRL - D
-> exit screen
CTRL - A then CTRL - C
-> new tab
CTRL - D
-> close window (when all are closed screen will be terminated)
CTRL - A then CTRL-D
-> exit screen without terminating tabs
Categories: Linux, Ubuntu Tags:

creating a kernel 2.6.30 deb file

June 16th, 2009 No comments

If you want to create your own debian style packaged kernel you can follow this guide.

First we open a shell and install the necessary packages to create kernels under ubuntu:

sudo apt-get install kernel-package build-essential libncurses5-dev bin86 subversion-tools

Get the newest vanilla kernel, best practice would be to put it into /usr/src.

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2
tar xjvf linux-2.6.30.tar.bz2
cd linux-2.6.30

Now we can update the symlink:

rm -rf linux && ln -s /usr/src/linux-2.6.30 linux && cd /usr/src/linux

The we load the old configuration and then we launch the command line interface:

sudo cp /boot/config-$(uname -r) .config && yes "" | make oldconfig
cd /usr/src/linux-2.6.30
sudo make menuconfig

Now you can change what ever you want for you own custom kernel, after this we can clean the kernel and then we can trigger the creation of our new kernel:

sudo make-kpkg clean
sudo make-kpkg --revision eee701 kernel_image

If you want to know more about make-kpkg, have a look at this page. (German)
Some ubuntu specific information can be found here.

To install the kernel run:

sudo dpkg -i linux-image-2.6.30_eee701_i386.deb
Categories: Linux, Netbook, Ubuntu Tags: