Rescuing Settings From Broken JDownloader Installation in Ubuntu

Somehow I broke my JDownloader installation, I think by meddling with the network settings. Nothing would download, and the auto-update was borked. I decided to delete it and reinstall it, but I had quite a lot of download packages queued, and wanted to rescue them. I managed to do this successfully, here’s how:

Locate the “backup” folder, in JDownloader’s root directory. For me, as I used this method to install JDownloader, the folder was in “/opt/JDownloader/”. Find the most recent “backup.zip” file. Note that there may be some numbers between “backup” and “.zip”. In Ubuntu’s default file manager, Nautilus, one can select “List View” and then click “Date Modified” to easily find the most recent file.

Copy this file and paste it to your desktop.

Create a new folder on your Desktop, call it “BACKUP”. Copy all files in JDownloader’s root directory into this folder.

Follow these instructions to install JDownloader. You can skip the “sudo mkdir /opt/JDownloader” step if you installed JDownloader with this method.

When JDownloader is installed, extract the “backup.zip” file you copied to your Desktop and modify then execute the following in a terminal:

sudo mv ~/Desktop/database.script /opt/JDownloader/config/database.script
sudo mv ~/Desktop/database.properties /opt/JDownloader/config/database.properties

Open JDownloader.

Your packages should have been restored. If you’re happy with the new installation, you can go ahead and delete the “BACKUP” folder.

Like this post? Move it on along with:

email Email | delicious delicious | digg Digg | Tweet this post Tweet | reddit Reddit | newsvine Newsvine | furl Furl | google Google | StumbleUpon Stumble | Hao Hao HaoHao


Trackback:

Comments: 0 | Comments Feed

Scroll to post title

No commentsTrackback

Installing JDownloader in Ubuntu

JDownloader is an excellent download manager. When I had a Mac I used Speed Downloader, but when the free trial period ran out I switched back to DownThemAll, a download manager plugin for Firefox.

The only thing I missed about Speed Downloader was its ability to store my Rapidshare Password: a feature not supported by DownThemAll – no more returning to the computer to find my downloads folder filled with useless .html files as I’d forgot to make sure the Rapidshare Cookie was set… JDownloader can not only store one’s Rapidshare details, it can store details for just about every other download service imaginable.

JDownloader also has an option to capture the clipboard – copy a link and it will automatically open a “Add download” window – surprisingly useful. Downloads can be organised into packages. JDownloader will attempt to unpack compressed files automatically (there is an option to turn this off).

It’s pretty great – I’m sure it’ll give whatever download manager you’re currently using a run for your money.

Installing it (properly) in Ubuntu:

If you’re using a flavour of (Ubuntu) linux, you may want to set JDownloader up so you don’t have to start it by right-clicking on “JDownloader.jar” and selecting “Open with Sun Java JRE”. I know I did.

How to ‘install’ JDownloader:

This tutorial assumes you have Java installed and working. If you don’t have Java installed: How to Install Java in Ubuntu.

Download JDownloader, extract it to your Desktop. Download a JDownloader icon, rename it to “JDownloader.png” and put it in the JDownloader folder.

Open a Terminal (Accessories -> Terminal).

Create a JDownloader install directory:

sudo mkdir /opt/JDownloader

Move the extracted files to their new home (replace “X” with version number):

sudo mv ~/Desktop/JDownloader\ X.X.XXX/* /opt/JDownloader/

Change their ownership:

sudo chown -R $USER:$USER /opt/JDownloader
 
sudo chmod -R +r /opt/JDownloader

Make the JDownloader.jar file executable:

sudo chmod +x /opt/JDownloader/JDownloader.jar

Make JDownloader runnable from Terminal:

sudo touch /usr/local/bin/JDownloader
sudo nano /usr/local/bin/JDownloader

This opens the file for editing within the Terminal. Paste the following:

#! /bin/sh
java -jar /opt/JDownloader/JDownloader.jar

To save and close the file, press CTRL + X, then Y, then ENTER.

Make a menu item for JDownloader:

sudo nano /usr/share/applications/JDownloader.desktop

Paste the following:

[Desktop Entry]
Encoding=UTF-8
Name=JDownloader
Comment=Download Manager
Exec=java -jar /opt/JDownloader/JDownloader.jar
Icon=/opt/JDownloader/JDownloader.png
Terminal=false
Type=Application
Categories=GNOME;Network;
StartupNotify=True

Enjoy!

Credit to Kmassada for his post about installing Eclipse 3.4

Like this post? Move it on along with:

email Email | delicious delicious | digg Digg | Tweet this post Tweet | reddit Reddit | newsvine Newsvine | furl Furl | google Google | StumbleUpon Stumble | Hao Hao HaoHao


Trackback:

Comments: 0 | Comments Feed

Scroll to post title

Comments (1)Trackback