X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml_tips;h=29df0c6891add4f5e29c126112088cfe1fb7cd0b;hb=66608faad46ca83cf25808895d1f479033363a24;hp=95f20b01c6061878919e2e73c60082d0beac80d1;hpb=b28f57c6ba862141b9ded5a250a84ff6b37bc7f7;p=grml-tips.git diff --git a/grml_tips b/grml_tips index 95f20b0..29df0c6 100644 --- a/grml_tips +++ b/grml_tips @@ -627,7 +627,7 @@ Read BIOS: -- Read HTTP via netcat: -echo "GET / HTTP/1.0\r\n\r\n" | netcat $DOMAIN 80 +echo -e "GET / HTTP/1.0\r\n\r\n" | netcat $DOMAIN 80 -- Get X ressources for specific program: @@ -1105,7 +1105,7 @@ Assign static setup for network cards (eth0 and eth1) via udev: First method - manual: ~~~~~~~~~~~~~~~~~~~~~~ Get information for SYSFS address: -# udevinfo -a -p /sys/class/net/eth0/ | grep address +# udevadm info -a -p /sys/class/net/eth0/ | grep address Then create udev rules: # cat /etc/udev/network.rules @@ -1288,19 +1288,22 @@ Use a Vodafone 3G Datacard (UMTS) with Linux: Plug in your vodafone card and check in syslog whether the appropriate (probably /dev/ttyUSB0 or /dev/noz0) has been created. If so run: -# gcom -d $DEVICE +# comgt -d $DEVICE # wvdial --config /etc/wvdial.conf.umts $PROFILE Usage examples: -# gcom -d /dev/ttyUSB0 +# comgt -d /dev/ttyUSB0 # wvdial --config /etc/wvdial.conf.umts a1usb -# gcom -d /dev/noz0 +# comgt -d /dev/noz0 # wvdial --config /etc/wvdial.conf.umts tmnozomi -# gcom -d /dev/noz0 +# comgt -d /dev/noz0 # wvdial --config /etc/wvdial.conf.umts dreiusb +# comgt -d /dev/ttyACM0 +# wvdial --config /etc/wvdial.conf.umts yesss + If you receive invalid DNS nameservers when connecting, like: [...] @@ -1326,7 +1329,7 @@ Bus 004 Device 008: ID 1199:6813 Sierra Wireless, Inc. To get a list of available providers execute: -# gcom -s -d /dev/ttyUSB0 /usr/share/doc/gcom/examples/operator +# comgt -s -d /dev/ttyUSB0 /etc/comgt/operator -- hdparm - get/set hard disk parameters @@ -2103,38 +2106,38 @@ See also: http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html Check filesystem's LABEL: generic way: -# vol_id -l /dev/sda1 +# blkid /dev/sda1 -ext2/3 without vol_id: +ext2/3 without blkid: # dumpe2fs /dev/sda1 | grep "Filesystem volume name" -xfs without vol_id: +xfs without blkid: # xfs_admin -l /dev/sda1 -reiserfs without vol_id: +reiserfs without blkid: # debugreiserfs /dev/sda1 | grep -i label -jfs without vol_id: +jfs without blkid: # jfs_tune -l /dev/sda1 | grep -i label -reiser4 without vol_id: +reiser4 without blkid: # debugfs.reiser4 /dev/sda1 | grep -i label -- Check filesystem's UUID: generic way: -# vol_id -u /dev/sda1 +# blkid /dev/sda1 -ext2/3 without vol_id: +ext2/3 without blkid: # dumpe2fs /dev/sda1 | grep -i UUID -xfs without vol_id: +xfs without blkid: # xfs_admin -u /dev/sda1 -reiserfs without vol_id: +reiserfs without blkid: # debugreiserfs /dev/sda1 | grep -i UUID -reiser4 without vol_id: +reiser4 without blkid: # debugfs.reiser4 /dev/sda1 | grep -i UUID -- Change a filesystem's LABEL: @@ -2590,7 +2593,7 @@ Recorder shellscript session using script: -- Test UTF-8 capabilities of terminal: -wget http://melkor.dnp.fmph.uniba.sk/~garabik/debian-utf8/download/UTF-8-demo.txt.gz +wget http://www.linux-cjk.net/Console/garabik/UTF-8-demo.txt.gz zcat UTF-8-demo.txt.gz or: @@ -2860,7 +2863,7 @@ language at the bottom of the file /etc/nanorc -- Create netboot package for grml-terminalserver: -# sh /usr/share/doc/grml-terminalserver/examples/create-netboot +# bash /usr/share/doc/grml-terminalserver/examples/create-netboot -- To boot grml via network (PXE) check out grml-terminalserver: @@ -3078,6 +3081,10 @@ btrace /dev/sda0 Convert Flash to Avi: % ffmpeg -i input.flv output.avi + +Extract MP3 from Flash file: + +% for i in *.flv; do ffmpeg -i $i -acodec copy ${i%.flv}.mp3 ; done -- Usage example for cryptsetup / -luks encrypted partition on LVM: @@ -3142,3 +3149,34 @@ echo 'deb http://deb.grml.org/ grml-stable main' > /etc/apt/grml-stable.list apt-get -o Dir::Etc::sourcelist=/etc/apt/grml-stable.list -o Dir::Etc::sourceparts=/doesnotexist update apt-get upgrade -- +Install Centos into a directory: + +% febootstrap centos-5 directory http://mirror.centos.org/centos-5/5.3/os/i386/ +-- +Install Fedora into a directory: + +% febootstrap fedora-11 target_directory +-- +Use Nessus / OpenVAS (remote network security auditor): + +Install software packages: +# apt-get update +# apt-get install openvas-client openvas-server openvas-plugins-base openvas-plugins-dfsg + +Add a user: +# openvas-adduser + +Start openvas server (takes a while): +# Start openvas-server + +Invoke client as user: +% OpenVAS-Client +-- +Find packages not available from any active apt repository: + +% apt-show-versions | awk '/No available version in archive/{print $1}' +-- +Simple mailserver with python: + +% python -m smtpd -n -c DebuggingServer localhost:1025 +--