Kategoriarkiv: Linux

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

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

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

Installer vmware-server på debian

Installer en ren debian apt-get install x-window-system apt-get install libdb2 (only needed for mui) Download and install vmware-server, you can use only vmware server if you want to connect to it with vmware console and login with the unix root … Læs resten

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

Adding chroot ssh access and mounting directory multiple places

in fstab: /home/ifka /home/jail/home/ifka ext2 bind 0 1 or command line: mount -o bind /home/ifka /home/jail/home/ifka And about the jail: http://olivier.sessink.nl/jailkit/

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

Logrotate på Gentoo

Først, insttaller logrotate: # emerge logrotate Derefter, rediger /etc/logrotate.conf så den passer til dine behov. Lettere kan det ikke blive 🙂

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

NIC Configuration in Debian

# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 … Læs resten

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