Archive for the 'tipps' Category

upgrade ubuntu to a new release

Wednesday, October 22nd, 2008

there is a simple and usually pretty good working method to upgrade from an old ubuntu release to the next newer release. you can’t or shouldn’t jump releases though .. so if you have not switched releases during more than one release cycle you need to do the folowing procedure several times. i did an upgrade from feisty to gutsy to hardy on a running webserver remotly through ssh and it worked like a charm ;)

login as root and then:


apt-get install update-manager-core
do-release-upgrade

woooooowwww that was simple ;) and i thaught apt-get dist-upgrade was easy ;)

a little addon…
upgrading from an old unsupported ubuntu release
okay, you got me.. i didn’t upgrade an old feisty installation in time and now it’s not supported anymore and my ch.archive.ubuntu.com doesn’t contain those feisty packages anymore..
in order to start the upgrade or to keep working with that old ubuntu version, you can simply replace all ch.archive.ubuntu.com (or whatever your archive server is) with old-releases.ubuntu.com in the /etc/apt/sources.list file.
this can be achieved like so:


sudo su
cd /etc/apt/
sed 's/ch.archive/old-releases/' sources.list >sources.list.new
cp sources.list sources.list.old
cp sources.list.new sources.list
apt-get update

now start with the update as described above. during the process it should somewhen stop an tell you, that it couldn’t find the new repository because you are probably using your own. it then asks you if it should rewrite sources.list anyway.
at this point switch to a second console (locally ALT + F2 for example, from remote: just login from a second window) and copy your original sources.list file back

sudo cp /etc/apt/sources.list.old sources.list

now go back to the updater window and choose “y” for yes.
from now on it should continue normally and your system should update just as smoothly as any supported system would.

cool one line linux commands for sed and such

Friday, October 10th, 2008

copy a whole system installation with rsync

Tuesday, December 11th, 2007

remapping keys under linux

Sunday, September 23rd, 2007

quadhead with onboard and extra video card

Saturday, August 11th, 2007

converting pdf to something more editable

Wednesday, July 18th, 2007

freevo + lirc + mceusb2 (+ ivtv) on ubuntu

Saturday, April 14th, 2007

Mediawiki + ActiveDirectory

Tuesday, April 3rd, 2007

installing ubuntu 6.10 edgy on a via epia machine

Saturday, March 31st, 2007

getting a matrox parhelia 128 triplehead video card to work with ubuntu 6.10

Monday, February 19th, 2007