This is an old revision of the document!


Setting up DVR storage on a Netgear ReadyNAS

  1. Use the ReadyNAS UI to create an SMB/SAMBA file share called “HDHomeRun”, accessible to “everyone”. Disable snapshots for that volume.
  2. Enable SSH (Settings → Services → SSH) and logging in as root.
  3. Log into your ReadyNAS via SSH and issue the following commands. This will create an apps directory for the hdhomerun_record software and download it to that location.

    mkdir -p /apps/hdhomerun_record/bin
    cd /apps/hdhomerun_record/bin
    wget http://download.silicondust.com/hdhomerun/hdhomerun_record_linux
    chmod +x hdhomerun_record_linux
    ./hdhomerun_record_linux
    mv /tmp/hdhomerun_record_arm hdhomerun_record
    chmod 755 hdhomerun_record
    chown root:root hdhomerun_record
    rm hdhomerun_record_linux
  4. Create the HDHomeRun DVR configuration file. Update the RecordPath to the record path you configured in your NAS.

    cd /apps/hdhomerun_record
    cat <<EOF >hdhomerun.conf
    RecordPath=/data/HDHomeRun
    EOF
  5. Start the HDHomeRun DVR software to see if it's working

    /apps/hdhomerun_record/bin/hdhomerun_record start --conf /apps/hdhomerun_record/hdhomerun.conf

    If it's working properly you should find a log file in /data/HDHomeRun, and a process in the process list.

  6. Stop the process before setting up the start script.

    /apps/hdhomerun_record/bin/hdhomerun_record stop
  7. Copy and paste the following to create the service file to automatically start the DVR software:

    cat <<EOF > /lib/systemd/system/hdhomerun.service
    [Unit]
    Description=HDHomeRun DVR Service
    After=network-up.service
    
    [Service]
    Type=oneshot
    ExecStart=/apps/hdhomerun_record/bin/hdhomerun_record start --conf /apps/hdhomerun_record/hdhomerun.conf
    ExecStop=/apps/hdhomerun_record/bin/hdhomerun_record stop --conf /apps/hdhomerun_record/hdhomerun.conf
    RemainAfterExit=true
    Nice=-1
    
    [Install]
    WantedBy=multi-user.target
    EOF
  8. Now enable and start the DVR software:

    systemctl enable hdhomerun
    systemctl start hdhomerun
  9. Restart the NAS and verify that the DVR remains available by checking http://my.hdhomerun.com or your HDHomeRun app.

Now that everything is set up, see our page using_the_app for instructions on the DVR features.

  • Last modified: 2019/06/14 09:14