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

Simplistisk debian system backup and restore process

mount and unmount the floppy as needed ( it holds your system config ) 


Save System 
dpkg --get-selections * > /mnt/floppy/pkg.lst 
# You might want to save your important config files too 
tar zcvf /mnt/floppy/etc.tgz /etc 


Restore System 
build a minimally installed debian from cdrom or net install 

dpkg --set-selections < /mnt/floppy/pkg.lst 
# Check your important config files 
cd / ; tar zdvf /mnt/floppy/etc.tgz 
apt-get update 
apt-get dist-upgrade 
( or apt-get dselect-upgrade ) ( or aptitude install )
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

restricting users to scp access (debian)

apt-get install rssh
 - uncomment allowscp and allowsftp from /etc/rssh.conf
to restrict a user to rssh add /usr/bin/rssh as its shell

Add shell to /etc/shells (or dont if you want to prohibit ftp logins)
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar