NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR v5 Support Linux v
« Previous 1 2 3 4 5 … 14 Next »
CoreElec and LibreElec as native host for NextPVR

 
  • 0 Vote(s) - 0 Average
CoreElec and LibreElec as native host for NextPVR
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,333
Threads: 744
Joined: May 2006
#1
2021-01-13, 12:38 AM (This post was last modified: 2021-01-13, 12:46 AM by mvallevand.)
Over the last week I have using my ODroid N2 with Kodi Matrix and I have found it to be tremendous client.  It's nice being able to power off a box with the remote.

I decided to see how hard it was to set up NextPVR server without Docker and as it turns out  it is really quite easy.   I still have issues with transcoding with ffmpeg, it doesn't make the box faster but it does remove the overhead of running Docker.

I was able to get an HDHR and even a locast tuner going so it is hard to imagine a better combination for light PVR requirements.

To install NextPVR server here is what I did. 

First I installed the supplied Netcore binaries from CoreElec Addons ->Programs  Then I started a new ssh session and did the following

1. Run dotnet with no parameters to make sure it is installed

2. Installed NextPVR

Code:
mkdir /storage/.kodi/addons/nextpvr-server
cd /storage/.kodi/addons/nextpvr-server
curl http://nextpvr.com/stable/linux/NPVR.zip
unzip NPVR.zip
chmod +x DeviceHost/arm32/DeviceHostLinux

3. In that folder created a service startup script /storage/.kodi/addons/nextpvr-server/nextpvr-server.start

Code:
. /etc/profile
export NEXTPVR_DATADIR_USERDATA=/storage/.kodi/addons/nextpvr-server/config/
exec dotnet  /storage/.kodi/addons/nextpvr-server/NextPVRServer.dll > /dev/null

And used chmod +x on it

4. Create the folder for the config and database

mkdir /storage/.kodi/addons/nextpvr-server/config/

5. I then created a systemd file to run NextPVR as a service  /storage/.config/system.d/nextpvr-server.service

Code:
[Unit]
Description=NextPVR
Wants=multi-user.target
After=multi-user.target

[Service]
ExecStart=/bin/sh /storage/.kodi/addons/nextpvr-server/nextpvr-server.start > /dev/null
Restart=never

[Install]
WantedBy=multi-user.target

chmod 640 nextpvr-server.service

6. Setup the server.

Code:
systemctl daemon-reload
systemctl enable nextpvr-server.service
systemctl start nextpvr-server.service

All done.
baj1
Offline

Senior Member

Maple Grove, MN, USA
Posts: 530
Threads: 88
Joined: Jan 2006
#2
2021-02-12, 10:16 PM
Impressive! I'm going to have to put some thought into making a portable PVR system when I do extended travel for work. :-)
Server: Ryzen 5 3600 3.6GHz: 16GB RAM: ASRock Phantom D/RX570: SDD: 512GB HDDs: 5TB, 8TB, 8TB
Linux Mint v19.3, NPVR v5.1.0.201216 +12/31 DLLs
Tuners: Hauppauge WinTV PVR-2250-MC Dual Tuner, HDHR Duo ATSC Tuner
Clients: Knewc on CE-ODroid N2 x2, N2+, LE-RPi4, Kodi-Samsung Tab2, Kodi-PCs x2
thecubasekid
Offline

Member

UK
Posts: 57
Threads: 8
Joined: Apr 2020
#3
2021-02-18, 11:02 AM (This post was last modified: 2021-02-18, 11:03 AM by thecubasekid.)
Hi Martin,

can you confirm if this is using the newer CE-ng builds, should it work also for the older kernel non ng builds? - if yes it looks like a good use for one of my S912 boxes that will not get Matrix support on CE, as can feed my two kids pvr set up centrally addressing my epg issue when the kids boxes are off....


Thanks!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,333
Threads: 744
Joined: May 2006
#4
2021-02-18, 02:35 PM
This was a v19 nightly but I suspect it will work on 9.2. If you don't need a Kodi client or tuners why not just use the HK ubuntu or Armbian and get more memory.

Martin
thecubasekid
Offline

Member

UK
Posts: 57
Threads: 8
Joined: Apr 2020
#5
2021-02-18, 03:26 PM
Thanks Martin,

i wouldn't need Kodi or tuners, so will checkout HK ubuntu and Armbian...
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,333
Threads: 744
Joined: May 2006
#6
2021-02-18, 03:28 PM
Armbian is probably your best bet is you have a generic S912.

Martin
thecubasekid
Offline

Member

UK
Posts: 57
Threads: 8
Joined: Apr 2020
#7
2021-02-23, 11:23 PM
thanks Martin,

i looked at Armbian, but in the end decided to keep kodi, and set it to update library on start up, and set a cron job to reboot daily in the small hours so i can keep artwok beef filling my media folders ready for when i scan in on matrix...

i tried following the steps but have not been able to get it going.

everything went without obvious error but at the end there is nothing in my config folder and web page times out so suspect it never started.

one thing i noted while installing, on the below step when i hit return my putty window just closes - i have to open a new session and log in again before i go to next step - is this expected?

exec dotnet /storage/.kodi/addons/nextpvr-server/NextPVRServer.dll > /dev/null
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,333
Threads: 744
Joined: May 2006
#8
2021-02-23, 11:35 PM (This post was last modified: 2021-02-23, 11:36 PM by mvallevand.)
If you run any command via a bash shall it will end when the shell ends unless you add other commands. The systemd server works differently.

If you upload nextpvr-server.start and /nextpvr-server.service I can have a look.

Martin
thecubasekid
Offline

Member

UK
Posts: 57
Threads: 8
Joined: Apr 2020
#9
2021-02-24, 10:31 AM (This post was last modified: 2021-02-24, 11:24 AM by thecubasekid.)
Thanks,

i uploaded the two files - not sure if it will help, but see below output when i query the status of the service

nextpvr-server.service - NextPVR
  Loaded: loaded (/storage/.config/system.d/nextpvr-server.service; enabled; vendor preset: disabled)
  Active: failed (Result: exit-code) since Wed 2021-02-24 10:16:29 GMT; 5min ago
  Process: 3522 ExecStart=/bin/sh /storage/.kodi/addons/nextpvr-server/nextpvr-server.start > /dev/null (code=e
Main PID: 3522 (code=exited, status=2)

Feb 24 10:16:29 CoreELEC_Beelink_GT1 systemd[1]: Started NextPVR.
Feb 24 10:16:29 CoreELEC_Beelink_GT1 sh[3522]: [123B blob data]
Feb 24 10:16:29 CoreELEC_Beelink_GT1 systemd[1]: nextpvr-server.service: Main process exited, code=exited, stat
Feb 24 10:16:29 CoreELEC_Beelink_GT1 systemd[1]: nextpvr-server.service: Failed with result 'exit-code'.


also not sure if there was any impact but the curl command to download the zip failed with below message about the file being moved, so i manually grabbed the linux zip from this url https://forums.nextpvr.com/showthread.php?tid=59390, and dropped in to correct location over smb before moving to the unziping step using ssh..


CoreELEC_Beelink_GT1:~ # cd /storage/.kodi/addons/nextpvr-server
CoreELEC_Beelink_GT1:~/.kodi/addons/nextpvr-server # curl http://nextpvr.com/stable/linux/NPVR.zip
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://nextpvr.com/stable/linux/NPVR.zip">here</a>.</p>
</body></html>


Attached Files
.zip   nextpvr-server.zip (Size: 265 bytes / Downloads: 2)
.zip   nextpvr-server service.zip (Size: 301 bytes / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,333
Threads: 744
Joined: May 2006
#10
2021-02-24, 01:49 PM
Did you try creating the scripts with a Linux editor, ie no carriage returns?

As for curl I copied the URL from the NextPVR instruction which is technically wrong since the link should be to https not http. Add a -L to have curl follow the redirect.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux (Debian 9.13 on armv7) Cannot start NextPVR Service Ziginox 10 128 2021-04-07, 02:28 PM
Last Post: Ziginox
  Sat-ip Nextpvr only finds 12 channels Sim0n 58 1,209 2021-03-16, 09:05 PM
Last Post: Qvex23
  Raspberry PI 4 - NextPVR ver 5.1.0.201216 crashes LilyWhites1882 2 197 2021-03-05, 04:20 PM
Last Post: LilyWhites1882
  getting kodi to use nextpvr Bstephens 17 429 2021-02-20, 11:24 PM
Last Post: mvallevand
  With what Linux distros are users having NextPVR success? baj1 7 432 2020-12-23, 12:50 AM
Last Post: mvallevand
  NextPVR repository VCR58 3 332 2020-12-03, 04:23 PM
Last Post: mvallevand
  NextPVR + HDHomerun no channel Mux setting ozra 8 466 2020-11-03, 03:57 AM
Last Post: ozra
  ubuntu raspberry kodi nextpvr help wanted Jack 1 240 2020-10-27, 08:20 PM
Last Post: mvallevand
  NextPVR creates empty TS files motocrossmann 11 815 2020-06-04, 03:32 PM
Last Post: motocrossmann
  Continuing to have lost recordings and other odd behavior NextPVR/Kodi bluesight 7 582 2020-05-22, 02:38 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode