Montag, 12. April 2010

JDOWNLOADER - Rapidshare on the headless machine

Since torrents are getting scarce on the net, rapidshare seems to be an option

Install
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk sun-java6-plugin fluxbox tightvncserver
Setting up vnc server 
vncpasswd
vncserver


Connect with VncClient, like tightvnc (according to the port and pwd selected above)


in the vnc Window (X server needed) install jdwonloader


with
$wget -c http://212.117.163.148/jd.sh
After download let's make it executable and run it :
$chmod +x jd.sh
$./jd.sh


Since my headless machine has only 128MB RAM , Jdownloader crashes after 5hours or so. Therefore I kill the java PID and restart it using cron (Assuming there is a vnc session on display1 and I configured JDownloader to automatically restart the app on startup)

7 0,6,12,18 * * * killall java >/dev/null 2>&1; export DISPLAY=:1 ;/usr/bin/java -Xmx512m -jar .jd/JDownloader.jar >/dev/null 2>&1
or even better: start the beast lke this in a vncserver bash

  while true; do killall java; java -Xmx1024m -jar /home/daevu/.jd/JDownloader.jar; sleep 21000; done

Reference:

http://service.jdownloader.net/old/wiki.jdownloader.org/indexd69d.html?title=Running_On_A_Headless_Linux_Server
and
http://www.skullbox.net/vncserver.php
and
http://www.ubuntu-inside.me/2009/02/jdownloader-ultimate-freepremium.html

Samstag, 6. Februar 2010

Transmission-daemon disk space in web gui

follow this intructions: http://forum.transmissionbt.com/viewtopic.php?f=8&t=8610
go for the lats AJAX solution

Samstag, 30. Januar 2010

torrent client, the 2010 edition

Forget rtorrent, newest releases often report "bencoded" error, therefore swicth to

tranmission

sudo apt-get install transmission transmission-deamon

then edit the /etc/transmission-daemon/settings.json to be compliant with tor privoxy, local port settings, watch dir. Bes sure to sto the deamon before editing the file


{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "\/home\/daevu\/finished",
"encryption": 1,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 62078,
"peer-port-random-high": 64000,
"peer-port-random-low": 62000,
"peer-port-random-on-start": true,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "127.0.0.1",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": true,
"proxy-port": 8118,
"proxy-type": 2,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{9da631e4ce6a9d2e6408c781a2c18c41e5f03250qeZzHteA",
"rpc-port": 9091,
"rpc-username": "",
"rpc-whitelist": "192.168.*.*",
"rpc-whitelist-enabled": true,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 5,
"speed-limit-up-enabled": true,
"umask": 18,
"upload-slots-per-torrent": 14,
"watch-dir": "\/home\/daevu\/torrents\/",
"watch-dir-enabled": true
}



check on client:
install daemon
add torrent
$ transmission-remote -a one.torrent two.torrent
transmission-remote -tall --start


To move finished torretns to a predefined directory

- sudo apt-get install php5-cli
- add stop-and-move-finished.php script, modify it to your needs and
- make a cronjob
0,10,20,30,40,50 * * * * /usr/bin/php /home/daevu/top-and-move-finished.php >/dev/null 2>&1

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..