-
Notifications
You must be signed in to change notification settings - Fork 7
Install Linux
NextPVR on Linux supports IPTV, HDHomeRun, digital tuners (DVB-T, DVB-C, DVB-S, ATSC and QAM), and SAT>IP tuner (DVB-S, DVB-C, DVB-T).
NOTE: Ensure that tuner hardware is recognized and loads drivers (and firmware if required): check dmesg
- Besides linux-firmware also see: https://github.com/OpenELEC/dvb-firmware/tree/master/firmware
- Resource for device info: https://www.linuxtv.org/wiki/index.php/Main_Page
The easiest way to install NextPVR is using the .deb file (thanks Martin for creating it!).
> curl https://nextpvr.com/nextpvr-helper.deb -O
> sudo apt install ./nextpvr-helper.deb --install-recommends
Wait for it to start, then open http://127.0.0.1:8866 in a web browser to setup NextPVR.
Find more information about installing from the .deb file and for updating to a new release here.
Check status: service nextpvr-server status
(sudo not required)
Stop server: sudo service nextpvr-server stop
Start server: sudo service nextpvr-server start
If running a platform that does not support .deb files, or to manually install, the application can be installed using the following steps.
The latest version can be downloaded from: http://nextpvr.com/beta/linux/NPVR.zip Then extract to e.g. ~/NPVR/
NextPVR v5 needs a current .NET Core 3.1 runtime installation: https://dotnet.microsoft.com/download/dotnet-core/3.1
NextPVR v6 needs a current .NET Core 6.0 runtime installation: https://dotnet.microsoft.com/download/dotnet-core/6.0
The ASP.NET Core Runtime and .NET Core Runtime are both required. See the overview for listed distributions or use the manual install.
E.g. unless running from an alias:
> export DOTNET_ROOT=$HOME/.dotnet
> export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools
Other required packages may include:
- dtv-scan-tables (Arch Linux AUR: dtv-scan-tables-git)
- libc6 / libc6-dev / glibc
- libgdiplus
- ffmpeg
These may also help for general device and media testing:
- mediainfo
- dvb-tools / v4l-utils
- libdvbv5-0
Manual Install
Extract NPVR.zip to a directory like /home/user/NPVR where user is the desired local account.
Go into the install directory and fix ownership of NPVR's DeviceHostLinux files:
> cd NPVR; find . -name DeviceHostLinux -exec chmod 755 {} \;
Start the NextPVR server (this assumes the dotnet exports were done)
> cd ~/NPVR; dotnet ./NextPVRServer.dll
Run NPVR from an alias (in this example, the dotnet export is only done per session)
With NPVR and dotnet installed under the user account, use this alias (e.g. in ~/.bashrc):
> alias NPVR='cd ~/NPVR;DOTNET_ROOT=~/.dotnet ~/.dotnet/dotnet ./NextPVRServer.dll;cd `echo $OLDPWD`'
- To use an older legacy HDHomeRun on Linux, hdhomerun-config is also needed. E.g.
sudo apt install hdhomerun-config
- dtv-scan-tables is needed for scanning; also ensure NextPVRServer is being invoked from inside the NPVR directory
- ATSC OTA EPG is not currently working in Linux, see here
- Distributions with a mismatched icu package might error with "Couldn't find a valid ICU package installed on the system." Use this (e.g. for icu version 71.1-1 in Arch) to workaround the issue*:
> CLR_ICU_VERSION_OVERRIDE="71.1" dotnet ~/NextPVR/NextPVRServer.dll
*Ref: Github dotnet issue [also see: NPVR forum post]