Dienstag, 22. Dezember 2009

rtorrent in ubuntu karmic

jus make a script out of:
http://libtorrent.rakshasa.no/wiki/Install

Samstag, 12. Dezember 2009

timelapse movie

-Install motion
http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
edit motion.conf

# Image width (pixels). Valid range: Camera dependent, default: 352
width 640

# Image height (pixels). Valid range: Camera dependent, default: 288
height 480

output_normal off




- set timelapse var (use 10min) get an idea aoubit settings from http://en.wikipedia.org/wiki/Time-lapse

# Use ffmpeg to encode a timelapse movie
# Default value 0 = off - else save frame every Nth second
ffmpeg_timelapse 600

# The file rollover mode of the timelapse video
# Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual
ffmpeg_timelapse_mode manual


- dowload sunwait http://ppa.launchpad.net/mdeslaur/ubuntu/pool/main/s/sunwait/

Dienstag, 9. Juni 2009

Save torrenting moblock peerguardian

just to be on the save side of life while torrenting
Using moblock according to
http://moblock-deb.sourceforge.net/
additional how to under: https://help.ubuntu.com/community/MoBlock

Very important: make sure you can still talk to your headless machine!! add doing

sudo nano /etc/blockcontrol/blockcontrol.conf

ssh allow all incoming traffic on port 22

WHITE_TCP_IN="22"

otherwise you will be blocked out!

Mittwoch, 4. Februar 2009

Check network connection

- create a file check_network.sh

#!/bin/bash
x=`ping -c1 google.com 2>&1 | grep unknown`
if [ ! "$x" = "" ]; then
echo "It's down!! Attempting to restart."
/etc/init.d/networking restart
echo "restarted gurke" | mail -s gurke_restart test@hotmail.com
fi



- chmod 777 check_network.sh
- add it to crontab so it checks it for every hour or so..