Before you continue, make sure you have the following:
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 https://download.silicondust.com/hdhomerun/hdhomerun_record_linux chmod +x hdhomerun_record_linux ./hdhomerun_record_linux start mv /tmp/hdhomerun_record_* hdhomerun_record chmod 755 hdhomerun_record chown root:root hdhomerun_record rm hdhomerun_record_linux
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
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.
Stop the process before setting up the start script.
/apps/hdhomerun_record/bin/hdhomerun_record stop
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
Now enable and start the DVR software:
systemctl enable hdhomerun systemctl start hdhomerun
Once you finish setting up a DVR storage device, see our guide link below for instructions on using the DVR features in the HDHomeRun app.