Månedsarkiv: januar 2007

Gentoo: How to transfer the world file to a new host

This will transfer all the packages installed on the old host to the new host: cd /var/lib/portage cp world world.bak scp 86.58.131.52:/var/lib/portage/world . emaint –check world >> update cat update | grep “is not installed” | sed “s/’\(.*\)’ is not … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

Creating pseudo raid devices for Jakob to play with

jal@alminde.com siger: Du må lige hjælpe mig med at sætte pseudo RAID op. Det aner jeg ikke hvordan man gør. MC @ Feta siger: ok: dd if=/dev/zero of=./loop1 bs=1024 count=10k dd if=/dev/zero of=./loop2 bs=1024 count=10k 127-0-0-1:~# losetup /dev/loop0 ./loop1 127-0-0-1:~# … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

Compile kernel on Debian sarge (from source)

Configure kernel: apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.7.tar.bz2 tar xjf linux-2.6.11.7.tar.bz2 cd linux-2.6.11.7/ make menuconfig Build package: make-kpkg clean fakeroot make-kpkg –initrd –revision=custom.1.0 kernel_image Install kernel: cd ../ dpkg -i kernel-image-2.6.11.7_custom.1.0_i386.deb

Udgivet i Knowledge Base | Skriv en kommentar

Stress test a linux-box

Run all three in 3 different consoles: Harddisk trafic dd if=/dev/md0 of=/dev/null bs=1024 count=1024M Bus trafic jail01:~# dbench 100 100 100 clients started 94 63477 310.44 MB/sec Throughput 304.644 MB/sec 10 procs Random system activity jail01:~# crashme +2000 666 100 … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

SquirrelMail runs slow with bigger inboxes

If you experience problems with squirrelmail running slow on inboxes with lots of e-mails, then the problem is with who’s handling the sorting. Normally, the imap server is capable of doing this sorting server side, which is alot faster than … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar