Forfatterarkiv: mike

Tool for recovering broken harddisk…and stuff like that

http://www.cgsecurity.org/wiki/TestDisk

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Dualscreen med x200 paa debian med aabne drivere

Section “Files” FontPath “/usr/share/fonts/X11/misc” FontPath “/usr/X11R6/lib/X11/fonts/misc” FontPath “/usr/share/fonts/X11/cyrillic” FontPath “/usr/X11R6/lib/X11/fonts/cyrillic” FontPath “/usr/share/fonts/X11/100dpi/:unscaled” FontPath “/usr/X11R6/lib/X11/fonts/100dpi/:unscaled” FontPath “/usr/share/fonts/X11/75dpi/:unscaled” FontPath “/usr/X11R6/lib/X11/fonts/75dpi/:unscaled” FontPath “/usr/share/fonts/X11/Type1” FontPath “/usr/X11R6/lib/X11/fonts/Type1” FontPath “/usr/share/fonts/X11/100dpi” FontPath “/usr/X11R6/lib/X11/fonts/100dpi” FontPath “/usr/share/fonts/X11/75dpi” FontPath “/usr/X11R6/lib/X11/fonts/75dpi” # path to defoma fonts FontPath “/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType” EndSection Section “Module” … Læs resten

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

Parse dhcpd.leases and return all active leases

#!/usr/bin/php <? $fh=fopen(“/chroot/dhcp/var/lib/dhcp/dhcpd.leases”,”r”); while ($dat=fgets($fh)) { if (preg_match(“/lease/”,$dat)) { $active=false; $ip = preg_split(“/ /”,$dat);$ip=$ip[1]; $dat=fgets($fh); while (!preg_match(“/hardware ethernet/”,$dat)) { if (preg_match(“/binding state active/”,$dat)) { $active=true; } $dat=fgets($fh); } $mac = preg_split(“/ |;/”,$dat); $mac=$mac[4]; if ($active) { print $ip.” – “.$mac.”\n”; … Læs resten

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

SSH Pre-login banner

/etc/issue.ssh should contain the banner: web01:~# cat /etc/issue.ssh This is a Level2 system web01:~# and add: Banner /etc/issue.ssh to /etc/ssh/sshd_config then sighup

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

Klientel anvendelse af CVS (pserver)

— Remote anvendelse: Log ind på CVS Serveren og log herefter ind på remote maskinen med flg. kommando: # ssh web01.mcs.bz -R 2401:127.0.0.1:2401 Herefter kan CVS Serveren tilgåes fra web01 ved at connecte til localhost port 2401, trafik mellem CVS … Læs resten

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

D-Link DFE-570TX

This is a 4 Port NIC Card from D-Link, the systems sees it as a DEC-21152(But on the board/chip itself it says Intel 21152) this is in fact a PCI Bridge which bridges to 4 PCI Nic’s which again Linux … Læs resten

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

How not to gain knowledge (Stupidity warning)

~Morten131@x1-6-00-14-bf-f2-3a-0c.k427.webspeed.dk (quakenet) 01:59 -!- Irssi: Starting query in quakenet with LaXy^ 01:59 <LaXy^> hallo 02:15 <cybermike2> leave 02:15 <LaXy^> ? 02:16 <LaXy^> why ? 02:16 <cybermike2> Fordi der klart og tydeligt staar paa kanalen at vi ikke gider pm’es 02:16 … Læs resten

Udgivet i Humor, IRC | 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