I recently started to learn to create android apps and this is my first app for android. I am using Processing app which lets you create your application in various language including JAVA, Javascript, python and Android.

I am using Openmediavault as my base OS. Its a Debian derivatives OS so all debian apps and command work in it. As for couchpotato and sickbeard (tpb version), these two are the best rss reader out there for automatic download and process the tv shows and movies.

Image 1.1 – SickBeard

Image 1.2 – CouchPotato

– [ Start PreparatioN ] –

Before going any further, I would suggest you guys to install deluge or your preferred torrent client first and then you can go ahead and install these application.

Both of these application are dependent to python so check if you have python installed or not

[UPDATE:] Sickbeard tpb version is no longer supported by developer so I have updated with new sickbead fork. This should work but has some bugs 😦

– [ Configure SickBeard ] –

– [ Web Interface ] –

Lock Web Interface and change port number if you are planning to port forward it

Setting >> General >> Web Interface

Encrypt Passwords

Setting >> General >> Advanced Setting >> Encrypt Passwords

Now goto Search Option and enter torrent clients detail

Note: if you have followed my deluge tutorial and have label plugin, you can assign that in here. Sickbeard can apply label to download torrent and deluge can deal with label settings. First setup deluge label with all settings then just provide label name in sickbeard. Don’t need to put deluge directory or torrent ratio as you can put that in deluge label.

Setting >> Search Options >> Torrent Search

– [ Search Provider ] –

Setting >> Search Provider

You can select as many provider as you like and also drag and drop to priorities the provider in order.

– [ Post Processing ] –

With post processing, sickbeard can do lot of things like move downloaded files to approperied TV Series folders, rename it, Unpack RAR archive, as well as download metadata [Fanart, Season Thumbnail etc]

Settings >> Post Processing

– [ My Sickbeard Setup ] –

There are few things I have done in Sickbeard and might come handy to you guys too..

Finish the set wizard, just setup the login deal for now and scroll at the bottom and finish.

To start CouchPotato at boot; go to couchpotato folder

cd /root/couchpotato

mv /init/ubuntu /etc/init.d/couchpotato

Now create couchpotato default file

nano /etc/default/couchpotato

Mine looks like this

CP_HOME=/root/couchpotato
CP_DATA=/root/couchpotato
CP_USER=root

Add it to startup

update-rc.d couchpotato defaults

Start couchpotato

/etc/init.d/couchpotato start

/etc/init.d/sickbeard start

– [ Configure Couchpotato ] –

– [My Configuration] –

1. Select the desire Torrent Providers {see image 2.1}

2. Deluge option in CouchPotato didn’t work for me as it tries to run deluge demons but there is already one running so I am using black hole {drops snatch torrent in here, deluge with autoadd plugins will add / apply different attributes}

Image 2.1 – Searcher

Image 2.2 – Downloader

3. CouchPotato can automatic download any movies that in queue in various website {image 2.3}

All of these UI has a common icon for section which I think is not suitable to clearly distinguish the section. As shown in Image 1.1, TV shows, Documentary, Anime has a common icon. Similarly, movie and movie (Anime) has similar icon too. Plex should have given option to change these icon but as for now there is no option to change it.

Image 1.1 – Default Web Manager Interface

Image 1.2 – Custom Icon Web Manager Interface

But there is workaround for this problem[1]. As plex use single SQL DB to manage its database its not difficult to change the icon. We need to change few attributes to assign new icons to these section.

So before we assign icon to section we need to host it online. ( I have tried putting icon locally in HD but it didn’t work 😦 ). I used picasa to host my icon. After upload, you need to share icon.

Note: url should be direct link to image not just link. For example, http://thisismyimage won’t work, where as http://thisismyimage.png will work. I have not tested other type of image so its best you convert image to png or you can test it yourself. (If you have used iconfinder.com, the download highest resolution png from there and upload it to picasa)

Tightvnc server is very useful for remote management. This can be implemented in both with head/headless operating system (Debian / Openmediavault ). Please go here to find out how you can install LXDE / Tightvnc server in Openmedivault.

jDownload is a java base platform independent downloader. It can download normal files as well as can download from various other host like rapid share, youtube, and many other host. For more information please visit (http://jdownloader.org/news/index)

Image 1.1 – JDownloader

To install jDownloader you need java install in the system. I will be installing latest Oracle Java 7. First we will add Webup D8 repo for Oracle Java 7. Run these command in terminal

Openmediavault (OMV) has a Web UI to control and monitor the system but does not have a file explorer that you can use. So I thought there should be a web UI based application that I can install in OMV to access my files. I found Pydio which has very good UI (see image 1.1). It not only has Web UI but also have dedicated apps for iOS / Android OS.

Image 1.1 – Pydio (Formally AjaXplore) Web UI

Lets begin the installation. First we need to install openmediavault-website plugin from plugin section of OMV. Go to http://omv-plugins.org/ and select appropriate plugins. My current OMV version is 4 (Fedaykin) so I have downloaded the file >upload / install it from plugin section.

After installation you will have a section “OMV-Plugins.org” under System Folder. Now select all the option and press OK.

Note: Both repository are either unstable / experimental. So by installing plugins from these repository you are accepting the challenge for any problem that might occur. In my experience plugin in unstable are much safer than those are in experimental stage. So install it with caution.

Now install website plugins.

Login > Plugins > Openmediavault-website *version > Install

After installation, refresh the browser. You will see website section under Services

Image 1.2 – Website Plugin – OMV

In this section, you need to first create folder where you want to store AjaXplore files.

Document root > click on plus > Create a folder

We are going to use “Port Based” as Virtual host Type and 8181 as Virtual host port. Note: You can change port to any other number you like, make sure no other application are using it. [Maximum port = 65535]

And then select user in User section select a user which is in User group. You can create user from Access Right Management > User and put that user into User group in Groups.

There are other settings like enable recycle bin or not, its totally up to you. (see image 1.3)

Image 1.3 – AjaXplorer

There are many other useful feature in AjaXplorer like accessing samba share in other local network drive (eg. Mybook Live (you need smbclient for this apt-get install smbclient). Similarly, many other function like multi user acesse, imap, drobpox, etc. So have fun exploring.

If you want to access AjaXplorer outside your network open the given port in your router. For this example its 8181.

Side Note: This can also be done in Debian. You just need to add repo and install ajaxplore. I think its much easer in Debian than omv as OMV has its own web UI. This installation method will cause lot of problem in OMV. I don’t recommend installing ajaxplore this way in OMV.

Openmediavault (OMV) is a Debian based headless operating system (more info) while Mybook Live (review)is a network attached storage device. I have been using both for a while now and I did ran into few problems with Mybook Live but it was all because of me (experimenting lot of things in it). The interesting fact about Mybook Live is it runs a strip down version of Debian lenny and I thought I would play around with it and tried to upgrade it to Debian squeeze but I fall really badly so had to restore everything manually (had to open it physically – that voids manufacture warranty ).

Anyway long story short don’t play around with Mybook Live Debian cause its a customised Debian and things might not work as it suppose to. But if you have too, 😀 then you can go to mybookworld.wikidot.com. They have lot of tricks / hacks there.

Back to topic, When you first attach Mybook Live to network it will assign itself as the first IP address that you have in your Ip range.

For example,

My router runs in 192.168.1.1 and my IP range is 192.168.1.100 – 200, so Mybook Live will automatically assign itself to 192.168.1.100 no matter if that ip is assign to any other device. It might not be suitable in some case. Eg, if your printer use that IP then they will be constant war between printer & MyBook Live for that IP.

The work around for this is to assign Static IP for Mybook Live later in its settings. The good things about Mybook Live is it has its own web management system where you can change it easily.

Image 1.1 – MyBook Live

When you first type IP for Mybook Live, it will give you this web interface (see image 1.1). Its very simple and easy to use interface.

Settings >>Network>>Static >> Assign Ip

Image 1.2 – MyBook Live – Static IP Settings

Now next step that we need to do is create a user and share folder. By default Mybook has an admin as user and Public as a share folder with can be access by anyone in network (Mac/Windows/Linux).

We can add users and give a password in user section and create share folder in share section. For this demonstration I be using “admin” as user with an assign password and create a share folder call “mybook”

Image 1.3 – MyBook Live – New Share Folder

Next thing we need to do is setup this share folder to automatically mount in OMV.

First ssh into OMV and install cifs-utils, we will be using this to mount share folder.

apt-get install cifs-utils

Then create a mount point. In my case I will create a folder called mybooklive in /media folder

mkdir /media/mybooklive

Now before we mount share drive we will create a folder where we can safely keep password file.

mkdir /etc/smbpw

chmod 700 /etc/smbpw

Then create a file called cifspw and enter user name and password of share folder

nano /etc/smbpw/cifspw

username=admin
password=mypassword1

chmod 600 /etc/smbpw/cifspw

Now we need to add this share folder to /etc/fstab where system will automatically load drives and share folder when it reboots

nano /etc/fstab

Then add this line at the button, Don’t forget to change your Mybook Live IP

Openmediavault is a Debian based lightweight OS with web management control system. For more information go here. While deluge is just another torrent client but has the most beautiful web interface (see image 1.1) out there for torrent client (may be just be. :)).

For this installation I will be using root user to run deluge but you can use any other user.

Image 1.1 – Deluge 1.3.10 Web Interface

For Deluge 1.3.11, there is no direct way to install it in OS (e.g repo or deb). So we need to compile it from tar.bz package and install it.

# The init.d script will only run if this variable non-empty.
DELUGED_USER=root # !!!CHANGE THIS!!!!

# Should we run at startup?
RUN_AT_STARTUP=YES

and at line 4, change “” to root

To start daemon

invoke-rc.d deluge-daemon start

Goto your browser and enter

[your server id]:8112

It will ask for password. The default password is deluge

1. Click on connection manager
2. Click on connect

Image 1.1 – Deluge 1.3.6 Web Interface

Its best to change default password to something else. Go to Preference next to connect manager -> interface -> and change password

Image 1.2 – Deluge 1.3.6 Web Interface

End of Deluge 1.3.6 installation

Start of Optional Section for deluge

If you are like me who have Plex Media Server installed then you might want to configure your deluge for plex. Plex looks into different folder to collect your media file. And you might want deluge to move you download files to relevant folders. While the process that I am going to talk about is not fully automatic it will make life easy.

First thing is to auto add torrent files in deluge. For this you need to install deluge plugin “AutoAdd”. Autoadd can look into different folder for torrent and can apply setting according to those folder.

Ahh, the only problem with Autoadd plugin is that it has not yet got web ui to configure it. If you installing deluge in Debian then you can use GUI interface to configure, if you have not got GUI then (install lite weight desktop lxde + VNC :)), OR may be you can use terminal to configure Autoadd manually. * (Its possible to edit configure to setup Autoadd but I have never try this way – its purely experimental)

Next thing we need to make sure its enable in plugin section. Go to Preferences>>Plugins>>check AutoAdd >> Apply>> Close

There are other useful plugin like label and blocklist. While label is similar to autoadd its usually use to label the torrent that you are downloading and can have extra option similar to autoadd. Fortunately label has web UI to configure.

Go to plugin section to enable it and you might need to restart the daemon too.

Image 4.1 – Deluge 1.3.6 – Label

You can have lots of labels for different purpose 🙂 . For more information about deluge please check reference link at the button of this page.

Openmediavault (OMV) is a headless Debian based server. It has very functional and beautiful web interface for server management (see image 1.1). The web interface by default can only be accesses within local network but there is a work around to access this interface outside of local network too.

Image 1.1 – OpenMediaVault (OVM) Web Interface

As OVM default web interface runs in 80 port, the easiest way to access remotely is by opening TCP port 80 in your router. Only downside of this is you have to have static public ip. If you are in UK and have a virgin media as ISP then you are in luck as for some reason they have static ip. I found this true to BT too. I am not sure in other country. To find your public ip go to here. It says external ip in their website.

Now all you need to do is open TCP port 80 in your router. Please refer to your router manual as I can’t possible explain How To’s for every router out there. The basic principle is you need to portforward 80 to your local server IP.

Note: For security reason you can change OMV port 80 to something else like 8080 but before you change it check if that port is used by other service in your server or not.

Connect to your server by SSH client then run this command in terminal to check that

netstat -lnptu

After you have open the port in router, goto browser type (without square bracket, port number by default will be 80 but if you have change it then you have to put your port accordingly. like example, http://23.233.33.32:8080 if have not change the port then just type http://23.233.33.32

[http://Your Public ip]:[port number]

There are other option to access web interface too but its bit long. Like installing VPN service. If you want to go ahead with this service then follow these steps.

For VPN, try OpenVPN-as its really easy to setup. Only downside is, it allows only 2 users at a time for free license. For more user you need to buy license.