Unofficial HDHomeRun DVR repository for RPM based systems

Downloads & Instructions
gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Unofficial HDHomeRun DVR repository for RPM based systems

Post by gtb »

Availability of Unofficial HDHomeRun DVR repository for Fedora and Enterprise Linux (and workalikes) and openSUSE.

Based on the response for the (now expired?) docker topic at https://www.silicondust.com/forum/viewt ... er#p144537, it seems that SD is willing to tolerate unofficial repositories at least until such time as they make their own available, so I am making available a Fedora/CentOS(EL)/openSUSE repo based on my packaging at github at https://github.com/garybuhrmaster/packaging/.

Installation
  1. Install the repo based on your distribution
    • Fedora

      Code: Select all

      su -c 'dnf config-manager --add-repo https://unofficial-hdhomerun-dvr-repo.s3.us-east-1.amazonaws.com/rpm/fedora/unofficial-hdhomerun-dvr.repo
      '
      
    • Enterprise Linux (or work-alike) 6 or later

      Code: Select all

      su -c 'yum-config-manager --add-repo https://unofficial-hdhomerun-dvr-repo.s3.us-east-1.amazonaws.com/rpm/el/unofficial-hdhomerun-dvr.repo'
      
    • openSUSE Tumbleweed

      Code: Select all

      su -c 'zypper addrepo -f https://unofficial-hdhomerun-dvr-repo.s3.us-east-1.amazonaws.com/rpm/tumbleweed/unofficial-hdhomerun-dvr.repo'
      
    • openSUSE Leap

      Code: Select all

      su -c 'zypper addrepo -f https://unofficial-hdhomerun-dvr-repo.s3.us-east-1.amazonaws.com/rpm/leap/unofficial-hdhomerun-dvr.repo'
      
  2. Install the hdhomerun-record rpm
    • Fedora

      Code: Select all

      su -c 'dnf install hdhomerun-record'
    • Enterprise Linux (or work-alike)

      Code: Select all

      su -c 'yum install hdhomerun-record'
    • openSUSE (both Tumbleweed and Leap)

      Code: Select all

      su -c 'zypper install hdhomerun-record'
  3. Read the docs at /usr/share/doc/hdhomerun_record/README and the related man pages (hdhomerun_record and hdhomerun.conf)
  4. Configure the RecordPath in /etc/hdhomerun.conf
  5. Insure permissions on the directory specified by the RecordPath allow writing by the record engine userid (hdhomerun)
  6. Configure your firewall (if needed)
  7. Enable/start the service based on your distribution/version
    • Modern init systems (everything other than EL6)

      Code: Select all

      su -c 'systemctl enable hdhomerun_record.service'
      su -c 'systemctl start hdhomerun_record.service'
      
    • Legacy init systems (EL6)

      Code: Select all

      su -c 'chkconfig hdhomerun_record on'
      su -c 'service hdhomerun_record start'
      

Disclaimers/Caveats/Requests
  • This is an unofficial repo, and SD is not in any way responsible for support for the repo or the rpms. Please do not bug SD for support regarding installing/using this repo. If you have questions, comments, or requests (or better yet, patches), please post in this topic area.
  • These rpms have been tested on only a limited set of systems (Fedora 23 x86_64, Fedora 23 arm, and EL 6 and 7). It works for me on the systems I personally run it on (Fedora 23 x86_64, Fedora 23 arm).
  • If SD asks for the repo to be removed, it shall be.
  • The repo may disappear at any point.
  • I intend to try to update the repo quickly after a new recorder release, but delays will likely happen.
  • Updating the recorder restarts the service. Chose your system update times wisely (or disable the repo by default and enable/update manually)
  • I have no idea what the official SD repo will require/support, but when it appears you should expect to have to delete these rpms and reinstall with the official solution, and likely manually adjust permissions/setups.
  • I would expect that once SD makes available their own official repo that I will remove this unofficial one in a reasonably short time period (I have no special desire to maintain a repo).

[Edited on 2016/01/03 to note that the referenced URL has expired]
[Edited on 2018/06/28 to document openSUSE support]
Last edited by gtb on Thu May 23, 2019 3:08 pm, edited 4 times in total.

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based system

Post by gtb »

[reserved for future updates]

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based system

Post by gtb »

[reserved for future updates]

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based system

Post by gtb »

FWIW, the git packaging spec file has been updated to support building of aarch64 rpms (64 bit arm), and the build script now includes support to build 64 bit arm rpms for fedora, and 32 and 64 bit arm rpms for EL, all of which are now downloadable via the repository.

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by gtb »

This is a posting artifact to prevent forum auto-deletion. Nothing to see here. Please move along.

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based system

Post by gtb »

FWIW, A number of miscellaneous changes to the RPM spec file and build process have been committed to the repo. The most user visible change is that a firewalld service configuration is now provided, and the systemd service file will now (attempt) to add those ports to the running firewall if one is using firewalld. In addition for new installs a StorageID line is (attempted to be) automatically added to /etc/hdhomerun.conf so that the recorder will be seen at http://my.hdhomerun/com by default (the engine itself tries to do that, but if it runs as a normal user, and the config file is in /etc, it does not succeed). The most visible change for packagers allows a cross platform building of the repository (this makes life much (much, much) easier for myself, and perhaps SD if they choose to utilize my repo/spec file as a prototype for their eventual packages). The git log has all the specifics.

henny156
Posts: 20
Joined: Fri Sep 22, 2017 7:50 am

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by henny156 »

su -c 'yum install hdhomerun-record'

Failed to synchronize cache for repo 'unofficial-hdhomerun-dvr', disabling.
Last metadata expiration check: 0:03:18 ago on Sat 30 Sep 2017 10:56:25 AM CDT.
No package hdhomerun-record available.
Error: Unable to find a match

FYI

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by gtb »

henny156 wrote: Sat Sep 30, 2017 9:04 am su -c 'yum install hdhomerun-record'

Failed to synchronize cache for repo 'unofficial-hdhomerun-dvr', disabling.
Last metadata expiration check: 0:03:18 ago on Sat 30 Sep 2017 10:56:25 AM CDT.
No package hdhomerun-record available.
Error: Unable to find a match

FYI
Thanks for the report. What OS, version, and architecture are you running? I was unable to reproduce your failure in a quick test on either a fedora 26 or el7 system. The message suggests a failure communicating with Amazon AWS S3, but sometimes the message is actually about a different issue (such as mismatched release/version/arch). If simply retrying does not work (if the failure was temporary), the output from `uname -a`, and `cat /etc/fedora-release` or `cat /etc/redhat-release` might help identify the issues. Thanks.

henny156
Posts: 20
Joined: Fri Sep 22, 2017 7:50 am

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by henny156 »

Fedora 26 Server x86 64

FYI the first two RPM's loaded fine.

Also, thank you for taking the time to create this.

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by gtb »

henny156 wrote: Sat Sep 30, 2017 10:20 am Fedora 26 Server x86 64
Interesting. That is what I am running (and have tested with).
FYI the first two RPM's loaded fine.
The first two RPM's loaded fine? Did you install the EL repo definition in addition to the Fedora one? You were intended to install one or the other (not both). If you installed both, remove the one for EL and try again.

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by gtb »

henny156 wrote: Sat Sep 30, 2017 9:04 am Failed to synchronize cache for repo 'unofficial-hdhomerun-dvr', disabling.
Can you run a

Code: Select all

wget  -O /tmp/repomd.xml https://s3.amazonaws.com/unofficial-hdhomerun-dvr-repo/rpm/fedora/26/x86_64/repodata/repomd.xml
and verify that the output looks reasonable? (Perhaps use (your favorite) pastebin and post the pastebin url from the response from the wget, and output of the repomd.xml file?)

Also the first 20 (or so) lines from the output of a "yum-debug-dump" (I am looking for the calculated version, arch, etc.)

Thanks.

henny156
Posts: 20
Joined: Fri Sep 22, 2017 7:50 am

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by henny156 »

Here is the respond.xml

<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
<revision>1502898609</revision>
<data type="filelists">
<checksum type="sha256">1dd3ffdcc3925aedbc5068174464612a9ecb2ea381f552853d7406925669f811</checksum>
<open-checksum type="sha256">8ac14aaf2ab7b25c70b0b308e39149f581dff002c5432f4077e26aea314a7295</open-checksum>
<location href="repodata/1dd3ffdcc3925aedbc5068174464612a9ecb2ea381f552853d7406925669f811-filelists.xml.gz"/>
<timestamp>1502898609</timestamp>
<size>680</size>
<open-size>4654</open-size>
</data>
<data type="primary">
<checksum type="sha256">e2ed421643d1c412a0af9cd3feeaabf6a68ba0f4b07f720f5ef473064976ef35</checksum>
<open-checksum type="sha256">0b0cff078b49227717f6d9a6df6028de154e7753874f83a7c6f6f63f5087b25f</open-checksum>
<location href="repodata/e2ed421643d1c412a0af9cd3feeaabf6a68ba0f4b07f720f5ef473064976ef35-primary.xml.gz"/>
<timestamp>1502898609</timestamp>
<size>1411</size>
<open-size>12569</open-size>
</data>
<data type="primary_db">
<checksum type="sha256">49e7d4fe7ab25cbe36c8a786bf47ec7b0f251eb0a26458c319c1db18f20ab3e6</checksum>
<open-checksum type="sha256">8250cf1abe2691f58ed00677795b10b70bd70037571267f6247fa8aa7a5356cb</open-checksum>
<location href="repodata/49e7d4fe7ab25cbe36c8a786bf47ec7b0f251eb0a26458c319c1db18f20ab3e6-primary.sqlite.bz2"/>
<timestamp>1502898609</timestamp>
<database_version>10</database_version>
<size>4293</size>
<open-size>106496</open-size>
</data>
<data type="other_db">
<checksum type="sha256">007dab4f04fc5fba0cffab6bcf4a43b99ef65fadfb3beebe3a4c73b8c05c0b57</checksum>
<open-checksum type="sha256">011af933bd81bbaaf2107200010ef9bcda6ee1411917c96938bfa37b6fd020c0</open-checksum>
<location href="repodata/007dab4f04fc5fba0cffab6bcf4a43b99ef65fadfb3beebe3a4c73b8c05c0b57-other.sqlite.bz2"/>
<timestamp>1502898609</timestamp>
<database_version>10</database_version>
<size>2073</size>
<open-size>24576</open-size>
</data>
<data type="other">
<checksum type="sha256">2058efb90850c2a382e600c30d04644ac2933db5b8505e596e9db4ee74c3495d</checksum>
<open-checksum type="sha256">7ab8df6c48712558ba792515f8aa7c457628ca3a7cc8cb4f504e2c72b60ba8cf</open-checksum>
<location href="repodata/2058efb90850c2a382e600c30d04644ac2933db5b8505e596e9db4ee74c3495d-other.xml.gz"/>
<timestamp>1502898609</timestamp>
<size>875</size>
<open-size>7058</open-size>
</data>
<data type="filelists_db">
<checksum type="sha256">80087a24ac70969c9670e9e969d71cf0fc5afd2f017cfe872922132b90527bd0</checksum>
<open-checksum type="sha256">7b4d51f8a2f3df1bb0ff11ee89ab4ddd28286aeacd8ce6f4d259406c7948548c</open-checksum>
<location href="repodata/80087a24ac70969c9670e9e969d71cf0fc5afd2f017cfe872922132b90527bd0-filelists.sqlite.bz2"/>
<timestamp>1502898609</timestamp>
<database_version>10</database_version>
<size>2478</size>
<open-size>28672</open-size>
</data>
</repomd>

Where is the yum-debug-dump located?

gtb
Expert
Posts: 4224
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 16

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by gtb »

henny156 wrote: Sat Sep 30, 2017 5:15 pm Here is the respond.xml...
That looks as I would expect it to (well, before the 20170930 engine got released).
Where is the yum-debug-dump located?
You would have to run the command (it may or may not be installed), and then gunzip the file that it tells you it created in /tmp to get the contents.

But first, can you post the output of:

Code: Select all

cat /etc/yum.repos.d/unofficial-hdhomerun-dvr.repo

henny156
Posts: 20
Joined: Fri Sep 22, 2017 7:50 am

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by henny156 »

OK, here is where I ended up. I did the advanced manual install of the engine as outlined here -> viewtopic.php?t=20526

Still no joy even after verifying it was running.

Last, I turned off the firewall in fedora. It works now!!!!

brianmsu80
Posts: 14
Joined: Wed Sep 27, 2017 1:53 pm

Re: Unofficial HDHomeRun DVR repository for RPM based systems

Post by brianmsu80 »

Here is how I was able to get this to work while still using firewall in Red Hat / Fedora / CentOS.

Code: Select all

sudo firewall-cmd --permanent --zone=home --add-service=hdhomerun_record
sudo firewall-cmd --add-rich-rule 'rule family="ipv4" source mac="xx:xx:xx:xx:xx:xx" accept' --zone=home --permanent
Where "--zone=home" is the zone of your LAN connection.
Where "xx:xx:xx:xx:xx:xx" is the MAC address of your HDHomeRun PRIME.

Post Reply