X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml_tips;h=2b9e32460183403e2b8a51b28537b525b644edeb;hb=3a597d1336fe8e4c5af453aefe138dd3c41624c0;hp=47ba348db77d317aeb0f9de0780fd76d724a8932;hpb=7d8e8d8e7ed7b68c76bc85139583baeae4d2dff2;p=grml-tips.git diff --git a/grml_tips b/grml_tips index 47ba348..2b9e324 100644 --- a/grml_tips +++ b/grml_tips @@ -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: @@ -3165,3 +3172,11 @@ Start openvas server (takes a while): 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 +--