Syntax
Jump to navigation
Jump to search
- start something in X windows via ssh - (command issued remotely, runs AND displays at server side - not tunneled / forwarded)
#export DISPLAY=0:0 #runmycommand &
Contents
commands
lame - downsamplig
Lame - downsampling mp3's for upload on a space challanged player
user@zubuntu:~/downsample$ cat lame_me.sh #!/bin/bash FILES=incoming/*mp3; for f in $FILES; do echo "doing $f"; lame --mp3input -b 32 "$f" "$f.ds.mp3" echo "done $f"; cp "$f.ds.mp3" outgoing/ done
iptables
iptables -F # flushing iptables -N SSH # creating named chain iptables -A SSH -s 122.133.144.0/24 -j ACCEPT # iptables -A INPUT -p tcp --dport 22 -j SSH # iptables -A SSH -j DROP # iptables -L # listing iptables-save > a #
route
The following command forces the system to reread /etc/fstab and mount all the file systems:
/usr/sbin/mount -a
____________
linux temperature software - search for 'lm_sensors'
_____________
to convert avi for upload on http://video.google.com
mencoder beer.avi -o test.avi -ovc lavc -oac mp3lame -lavcopts acodec=mp3 -ffourcc DX50
to enable / disable gateway on win2003 using netsh scripts
online.bat
netsh interface ip set address lanko source=static 192.168.100.14 255.255.255.0 192.168.100.1 1
offline.bat
netsh interface ip delete address "lanko" gateway=all