How to: Install HDHomeRun DVR on a Synology NAS

The following tutorial describes in simple steps the process to install the HDHomeRun DVR record engine on a Synology NAS.

NAS Requirements:
* x86 or ARM based CPU
* 256MB RAM minimum
* Must be running Linux
* SSH access

Step 1. Purchase a compatible HDHomeRun digital tuner. For terrestrial broadcast you need either a Connect/2 or Extend, and for satellite/cable you need the HDHomeRun Prime

Step 2. Purchase a HDHomeRun DVR subscription and activate it. You need to follow the instructions in the e-mail to activate your account.

NT. Account activation is only available to Kickstarter supporters and direct customers who have purchased the DVR software from SiliconDust.

Step 3. Download and install the latest HDHomeRun software

NT: You must be on 20150701atest1 or later.

Step 4. Login to the Synology DSM web manager and navigate to:

Control Panel > Terminal & SNMP > Check the ‘Enable SSH service’ option, click ‘Apply’

Step 5. Create a new shared folder to store recordings, navigate to:

Control Panel > Shared Folder > Click ‘Create’, name the folder ‘HDHomeRun’, provide a custom description if you wish, then click ‘Ok’

HDHR_DVR_Setup

Step 6. Run HDHomeRun Setup, go the the DVR tab, and click the NAS Install button. The setup will search for all available NAS devices on your network. Double click the one you wish to use as the DVR record engine. When prompted for SSH credentials use ‘root’ as the user, with your admin password. The NAS should now download and install the record engine and report success.

Now we need to configure the NAS to start the record engine automatically when the system boots.

Step 7. Download putty. Open Putty and type the IP address of your NAS, select the ‘SSH’ radio button. Click ‘Open’. When prompted enter your SSH credentials as before (Step 6.)

Step 8. At the command prompt paste the following commands (right click to paste, press return after each command):

cd /usr/local/etc/rc.d

vi S75HDHomeRunDVR.sh

Step 9. Press the ‘i’ key, and paste the following text:

#!/bin/sh
DIR=/volume1/HDHomeRun/
EXE=./hdhomerun_record
cd $DIR
$EXE $1

Step 10. Press the ‘ESC’ key and type:

:wq

Step 11. At the command prompt paste the following commands (right click to paste, press return after each command):

chmod +x S75HDHomeRunDVR.sh

./S75HDHomeRunDVR.sh status

You should now see the DVR status as running.

That’s it. You can now schedule recordings on your NAS and access recordings via the VIEW app.

All credit for the auto-start script goes to @jumpmanjay on the SiliconDust forums. He has also created an auto-update script to automate the DVR software updates on his Synology, i haven’t tried it yet myself but you can check it out here if you wish.

This tutorial was based on the generic NAS instructions written by @Nickk over on the SiliconDust forums, adapted for Synology.

Advertisements

5 thoughts on “How to: Install HDHomeRun DVR on a Synology NAS

  1. Thanks for the above info but keep getting: “E212: Can’t open file for writing” at step 10 – even though the syntax is correct in step 9…

    Any suggestions?

    This is a new DS216+II running DSm 6.1.1-15101 Update 2 (2017/05/05)

    Like

  2. When I get to step 6, I get a message SSH Failed Unable to Install
    I am entering “root” in the username box and the password for the Synology,

    I can login to DSM ok, but not the way described in Step 6

    Any suggestions

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s