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>&1or 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
Keine Kommentare:
Kommentar veröffentlichen