Blog Roll

The official mumblings of a senile monkey sent from outer space.

Enable SlickVPN via PPTP on OpenELEC

Saturday, 25 April 2015 16:54 Comments 0

This tutorial will guide you through configuring a Point to Point Tunnelling Protocol VPN connection on your OpenELEC system via SlickVPN.

A lot of help/advice was received from this forum topic:

To get OpenVPN running on OpenELEC via a PPTP VPN connection perform the following:

Create a file called "SlickVPN-PPTP.config" in the network share:


Add the contents below to the file:
Don't forget to replace the placeholder names: SERVERNAME, SERVER, USERNAME, PPTP_IPSEC_PASSWORD

You can find your PPTP/IPSec password within your SlickVPN account under "My Account -> Manage Account"

	Type = pptp
	Host = SERVER
	Domain = vpn
	advanced = 1
	PPPD.RequirMPPE128 = 0
	PPPD.RefuseCHAP = 1
	PPPD.RequirMPPE = 1
	PPPD.RefusePAP = 1
	PPPD.RefuseEAP = 1
	PPPD.RequirMPPEStateful = 0

Within your firewall you will now need to ensure that port 443 is forwarded to your OpenELEC IP Address.

Reboot OpenELEC and navigate to "System - OpenELEC - Connections" and you will see your "SlickVPN-PPTP" VPN listed. Click the connection and then click "Connect".

OpenELEC PPTP VPN Connection
Fig 1: OpenELEC PPTP VPN Connection.

Installing DDclient for

Monday, 06 April 2015 09:28 Comments 0

This tutorial will describe how to install DDclient and configure it to work with

Install the DDclient application from the ReadyNAS application interface found at your nas web address:

This may navigate you to your router but alter the IP Address to that of your ReadyNAS.

Once installed a shared directory "ddclient" will appear in your ReadyNAS network shares:

Within this shared directory create the followig file: "ddclient.conf" and to configure the file to work with add the following contents to the file:

Replace the obvious placeholder names (USERNAME, PASSWORD, NOIP_REMOTE_ADDRESS) with the credentials for your account with


Your "ddclient" shared directory should now look like the following:

DDclient config file network share illustration
Fig 1: The "ddclient.config" file displayed on the ReadyNAS network share folder "ddclient".

Before starting the application from the ReadyNAS web interface, SSH into your ReadyNAS and check the ReadyNAS can communicate correctly with This will ensures your "ddclient.conf" file has been configured correctly.

You can debug whether it's working by issuing following command:

	root@beast-nas:~# cd /etc/init.d/
	root@beast-nas:/etc/init.d# ddclient -daemon=0 -debug -verbose -noquiet

Wait for the service to finish reporting (can take up to 2 minutes).
If no errors are reported then your DDclient is working. To stop the service hit "Ctrl" and "c" (without the quotation marks) and start the service from the ReadyNAS Apps web interface.

DDclient Application display on the ReadyNAS
Fig 2: The DDclient application displayed on the ReadyNAS application interface.

If you do receive an error it may be worth looking at the error logs for the DDclient application.
Please note all logs for DDclient are written to the following location:

	root@beast-nas:~# ls -la /var/cache/ddclient/

Thanks to the following ReadyNAS forum topic for guidance with getting DDclient working.

If you are using a different DNS provider such as DynDNS then please bisit the forum topic (above) to see how to configure the "ddclient.conf" file to use .


Useful ReadyNAS/Linux Commands

Sunday, 05 April 2015 18:34 Comments 0

Below are some useful ReadyName/Linux commands that I keep a reference to aid with the configuration of my ReadyNAS server.

System Architecture: uname -a
System Information:
View running services (taskmgr): top
View running processes: ps -Al
View specific processes: ps -Al | grep httpd
View init.d service status: service --status-all
Copy Directory Recursive: cp -avr /source/ /destination/
Copy File: cp /source/ /destination/
Delete Directory Recursive: rm -rf /directory/
Delete file: rm /etc/init.d/couchpotato2
Rename file/directory: mv /home/user/oldname /home/user/newname
Take ownership: chown admin:admin -R /apps/couchpotatosrc/
File Permissions (Read-Only): chmod 0444 /file/
Directory Permissions (Read-Only): chmod 0544 /dir/
View all startup sym links: ls -la /etc/rc?.d/*couchpotatosrc
Add sservice to startup defaults: sudo update-rc.d couchpotato defaults
Remove service from startup defaults: update-rc.d -f couchpotatosrc remove
Search for apps to install: apt-cache search unrar
Remove symbolic link: unlink /dir/
To add a network share to Linux: mount -t cifs //***.***.***.***/SHARE_NAME /mnt -o username=username,password=password
All logs can be found in: /var/log
To view recent system errors: tail /var/log/messages
Ready Nas Specific Commands:
Display ReadyNas Details: rn_nml -g systeminfo
Shares: rn_nml -g shares
Shares Details: rn_nml -g shares-detail
Volumes: rn_nml -g volumes
Volume Details: rn_nml -g volumes-detail

Installing VIM

Friday, 03 April 2015 11:04 Comments 0

The ReadyNAS comes with a built in text editor called vi.
I don't really find this application user friendly and prefer to use an alternative application called vim.
To install vim simply run the following commands:

	root@beast-nas:~# apt-get install vim vim-doc vim-scripts

You will be prompted the install will take additional disk space. Just hit "y" (without the quotation marks) and hit the "Enter" key.

This will install "vim" and all the necessary packages.
Once everything is installed, we have to do one more small modification.
Navigate to your home folder by issuing a "cd" command and hitting "Enter":

	root@beast-nas:~# cd

Now issue the following command to see if a file called ".vimrc" exists.

	root@beast-nas:~# ls -la

If the file doesn't exist (it usually doesn't) create one by running the following command:

	root@beast-nas:~# touch .vimrc

We need this file to contain the "syntax on" text therefore run this command:

	root@beast-nas:~# echo "syntax on" >> .vimrc

This command appends the text "syntax on" to the end of the file ".vimrc"


Bash Shell Colouring

Thursday, 02 April 2015 15:44 Comments 0

Before you begin this tutorial please ensure you have installed the vim application.

Apply Changes

First you'll need to navigate to your home directory by issuing the following command:

	root@beast-nas:~# cd ~

Then list the files within this directory:

	root@beast-nas:~# ls -la

Here you will see a file called .bashrc
We need to edit this file to allow colouring of our files and directories for the SSH console. In order to do this issue the following command:

	root@beast-nas:~# vim .bashrc

This will open the file .bashrc within the vim text editor. From here we can edit the file.

To edit files within vim you first have to press the "insert" key on your keyboard. This command instructs vim that you wish to edit the file.

Once pressed "-- INSERT --" will display in the bottom-left corner of the screen.

Some notes to consider when using vim:

  • If you tap "insert" a 2nd time, it'll read "-- REPLCE --" instead which mean "Replace" so be careful!
  • For numbers input DO NOT USE THE NUMPAD as the result may be unexpected ("Num Lock" anyone?). Use the keys above the keyboard instead.

If you get stuck editing the file within vim just hit the "Esc" key then hold down the "shift" key and hit ":" and type "q!" and hit "Enter" - this exists the file without saving it

Anyways, once vim is opened you need to un-commend some lines. You do this by removing the hash # from the beginning of the line(s).
Here is the file as it should look when you're done editing:

	# ~/.bashrc: executed by bash(1) for non-login shells.

	# Note: PS1 and umask are already set in /etc/profile. You should not
	# need this unless you want different defaults for root.
	# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
	# umask 022

	# You may uncomment the following lines if you want 'ls' to be colorized:
	export LS_OPTIONS='--color=auto'
	eval "`dircolors`"
	alias ls='ls $LS_OPTIONS'
	alias ll='ls $LS_OPTIONS -l'
	alias l='ls $LS_OPTIONS -lA'
	# Some more alias to avoid making mistakes:
	alias rm='rm -i'
	alias cp='cp -i'
	alias mv='mv -i'

To exit "edit" mode, just press the "Esc" key on your keyboard. "-- INSERT --" at the bottom-left corner of the screen will disappear.

To save the file hold down the "shift" key and hit the colon key ":"
":" will appear in the bottom left corner of the screen.
Type: "wq!" (without the quotation marks) and hit "Enter".


vim will save the file and return you to the shell.

Verifying the Changes

To verify your changes run the following command:

	root@beast-nas:~# vim .bashrc

This will display the file and it's contents should look similar to the image below:

Vim .bashrc display within SSH shell
Fig 1: The ".bashrc" file displayed on the ReadyNAS within an SSH console.

To exit the file without saving hold down the "shift" key and hit the colon key ":"
: will appear in the bottom left corner of the screen.
Type: "q!" (without the quotation marks) and hit "Enter"

Exiting vim without savign changes
Fig 2: Exiting vim without saving changes.
Showing 1 to 5 of 6