Kategoriarkiv: Old Base

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, 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

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

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 … Læs resten

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

How to slipstream an windows XP cd

Look <a href=”http://www.maximumpc.com/2005/01/how_to_slipstre.html”>here</a>..

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

Renaming PHP Functions

web02:~# apt-get install php4-apd In php.ini zend_extension=/usr/lib/php4/20020429/apd.so apd.dumpdir = NULL apd.statement_tracing = 0 And then in your code: rename_function(‘mysql_query’, ‘doquery’); function mysql_query($query) { doquery($query); echo “Der var en SQL-kommando her<br>\n”; }

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