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 1:00:00

Result:


jail01:~# uptime
 02:40:10 up 7 min,  7 users,  load average: 520.63, 179.30, 64.23


http://ltp.sourceforge.net/tooltable.php
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 doing it in php (client side, which in this case would be
squirrelmail). If the imap server doesn't support sorting, consider switching to
another imap server.
To make squirrelmail use the advantages of server side sorting, locate the
following lines in /path/to/squirrelmail/config/config.php and make sure they're
both set to "true":

    $allow_thread_sort        = true;
    $allow_server_sort        = true;

That should set things straight!
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} ${DEVICE} ; mount ${DEVICE}


# Remount all volume groups
find /dev/vg?/* | xargs -l umount && find /dev/vg?/* | xargs -l mount
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
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 16: 'UM-1' [type=kernel]
    0 'UM-1 MIDI 1     '
workstation:~#
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
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 16: 'UM-1' [type=kernel]
    0 'UM-1 MIDI 1     '
workstation:~#
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 debian with the following cmd:

workstation:~# apt-get install spca5xx-modules-2.6.17-2-686

followed by a modprobe spca5xx
and adduser mike video

will allow ie. kopete to use the webcam to broadcast webcam.



Greetings to choko for assitance
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 debian with the following cmd:

workstation:~# apt-get install spca5xx-modules-2.6.17-2-686

followed by a modprobe spca5xx
and adduser mike video

will allow ie. kopete to use the webcam to broadcast webcam.



Greetings to choko for assitance
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 sources.list

21:03 < pusling> hvis du også vil have sources med (til deb-src linjer), så er det
21:03 < pusling> dpkg-scansources ./ | gzip -c9 >Sources.gz
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Business links

http://www.match-online.dk/ 
http://www.webhostingtalk.com/
Udgivet i Knowledge Base, Links, Old Base | Skriv en kommentar

Skift mellem labelprinter og a4 printer paa Thyfisk’s printerserver

  Printer labels

root@thyfisk:/etc/cups/ppd# html2ps http://ekimrebyc.dk | lpr
Retrieving http://ekimrebyc.dk
Retrieving http://ekimrebyc.dk/dragonmini.png

  Printer A4
root@thyfisk:/etc/cups/ppd# html2ps http://ekimrebyc.dk | lpr -P Laserjet-1320
Retrieving http://ekimrebyc.dk
Retrieving http://ekimrebyc.dk/dragonmini.png
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar