Re: Support for JDownloader
Postby dislusive » Wed Oct 23, 2013 9:41 am
I hope I'm not bumping a dead thread here, but there seems to be several incomplete instances of how to get this to work; both JDownloader and the Debian Chroot env in general.
I'll start off with saying that I'm VERY new to the Synology NAS. I picked up an 1813+ to replace an external RAID5 connected to a home-brew Debian box functioning in the network role as a NAS, DNS server, and a few other things . However, I digress...
I'm still transferring my data to the Synology NAS, yeah, that new to it. But I'm a very experienced *nix admin/developer.
I was having a look around the forums and saw something about a chroot environment and package development, hmm, my interest is peaked!
These are the steps I took, after much Google searching on the topic, and just a general attempt at figuring out the environment.
1) Add the SynoCommunity package repo source (Instructions here
http://www.synocommunity.com/faq#addSource)
2) Install "Python" and "Debian Chroot" packages from the SynoCommunity repo.
3) SSH to the NAS box
- cd /volume1
- ln -s /volume1/@appstore/debian-chroot/var/chroottarget debian
- mount -o bind /proc /volume1/debian/proc
4) Type "chroot debian /bin/bash" (sans quotes)
You're in! That's all that is to setting up the Debian Chroot environment! (the bare essentials).
The "ln" command above, the SynoCommunity "Debian Chroot" package installs the chroot target in the path, I'm simply creating a symlink to it for easier access.
It's that easy and painless, you're Debian Chroot environment is now setup!
Now, we have some work to do.
1) Update the package repo with "apt-get update" (sans quotes)
2) upgrade to the newest version of Debian with "apt-get dist-upgrade" (sans quotes)
3) Install some commonly used tools; "apt-get install wget less vim make atop file" (sans quotes)
Install a desktop env:
- "apt-get install lxde-core" (sans quotes) (taken from
HOWTO: Install jDownloader on a Synology Diskstation · FlohEinstein's Footprint THANKS!)
Install a VNC Client:
- "apt-get install vnc4server" (sans quotes)
Install Java:
- "apt-get install openjdk-6-jre" (sans quotes)
Download and install JDownloader:
- mkdir /home/downloads
- cd /home/downloads
- wget
http://installer.jdownloader.org/jd_unix_0_9.sh
- chmod +x jd_unix_0_9.sh
- ./jd_unix_0_9.sh
Edit the VNC Server startup file: (taken from
HOWTO: Install jDownloader on a Synology Diskstation · FlohEinstein's Footprint )
- vim /root/.vnc/xstartup
Comment out all the lines that are currently in the file and append the following lines to the file:
xrdb $HOME/.Xresources
xsetroot -solid grey
startlxde &
lxsession
At this point everything should be installed, and we're ready to launch!
Launch the VNC server:
- /usr/bin/vncserver :1 -geometry 800x600 (1024x768)
Lets make sure our VNC Server is running from the above step:
- netstat -an | grep 5901 (assuming VNC is running on display 1)
Export the VNC server display:
- export DISPLAY=":1"
Connect to the VNC Server with your VNC Client at this point.
Launch JDownloader:
- cd /usr/local/jdownloader (default install directory)
- ./JDLauncher
There's still some things to do, such as adding the download directories. I'll edit this post and add that additional information later.
My next task is to get DJB-DNS working on this, so that it can start performing DNS duties for my network; I'll document that as well, if I get it all figured out and working.
Enjoy!
Segnalibri