Kategoriarkiv: Knowledge Base

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

LVM Commands

# Grow a file system: SIZE=+220G DEVICE=/dev/vg1/misc lvextend -L${SIZE} ${DEVICE} && umount ${DEVICE} && e2fsck -f ${DEVICE} && resize2fs ${DEVICE} ; mount ${DEVICE} # Shrink a filesystem: umount ${DEVICE} && e2fsck -f ${DEVICE} && resize2fs ${DEVICE} ${SIZE} && lvresize -L${SIZE} … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Starting JACKD with my soundcard and EDIROL UM1SX

mike@workstation:~$ lspci | grep Audio 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 05) jackd –realtime –driver alsa -p 128 -n 3 -r 44100–device=hw:0 Edirol UM1SX: modprobe snd-seq-midi modprobe snd-usb-audio to confirm: workstation:~# aconnect -oi … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

Starting JACKD with my soundcard and EDIROL UM1SX

mike@workstation:~$ lspci | grep Audio 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 05) jackd –realtime –driver alsa -p 128 -n 3 -r 44100–device=hw:0 Edirol UM1SX: modprobe snd-seq-midi modprobe snd-usb-audio to confirm: workstation:~# aconnect -oi … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

MSN Webcam on Debian

I have this crappy old “MSN Webcam” and i thought i was lost until one day i took it apart and discoveret that it was a generic chip that was supported by the spca5xx driver, which can be installed in … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

MSN Webcam on Debian

I have this crappy old “MSN Webcam” and i thought i was lost until one day i took it apart and discoveret that it was a generic chip that was supported by the spca5xx driver, which can be installed in … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

creating a debian repository

20:57 < pusling> put dine debs i en mappe. 20:58 < pusling> dpkg-scanpackages . /dev/null >Packages 20:58 < pusling> gzip -c Packages > Packages.gz 20:58 < pusling> i den mappe 20:58 < pusling> deb file:/lager/chroot/unstable/home/pusling/mirror ./ 20:58 < pusling> i … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar