Forfatterarkiv: Brian Lund Klint

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

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

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

vmware server serials

981K8-YAU6A-25413-4L3JE 9AHUT-Y2V6Z-2GM96-4J6KE 92MUX-Y2FFV-2GH1K-4TLCX 90HU9-Y2F6V-2G4FN-4AH2J 905HW-Y0Z6Z-2EJ1K-4L3HH 92NRT-Y8C4U-25N1Q-4JQA8 92JU8-Y2CDY-27H37-4J4JX 98HHT-Y8V6F-27H37-4J60J 980KR-Y2U6Y-2E09L-4L6JN 92JRX-YAUFA-27592-4V711

Udgivet i Knowledge Base | Skriv en kommentar

How shit happends

In the beginning was the plan. And then came the assumptions. And the plan was without substance. And the assumptions were without form. And darkness was upon the face of the workers. And they spoke among themselves saying “It is … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

UUID / GUID generator

http://kruithof.xs4all.nl/uuid/uuidgen

Udgivet i Knowledge Base | Skriv en kommentar

Why i dont code C , Kernighan and Ritchie style

Page 14. “The C Programming Language” By Brian W. Kernighan and Dennis M. Ritchie 1978 a simple program to read characters from STDIN: #define EOF -1 main() { int c; c = getchar(); while (c != EOF) { putchar(c); c … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar

MySQL: Getting a random roll of the dice

CREATE TABLE dice ( d_id int(11) NOT NULL auto_increment, roll int, PRIMARY KEY (d_id) ); insert into dice (roll) values (1); insert into dice (roll) values (2); insert into dice (roll) values (3); insert into dice (roll) values (4); insert … Læs resten

Udgivet i Knowledge Base, Mysql | Skriv en kommentar