SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2017, 05:40 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Linux pre-build questions

I am thinking about building a Linux server, at least on old hardware as a test platform to try it out. A few questions - my starting point is that I have dabbled in *nix for about 20 years from Sun Solaris to Ubuntu to RPis, but I am most familiar with Ubuntu and Raspbian Jessie/Wheezy, however I am by no means an expert.

What flavour of Linux should I use?
If Ubuntu what version? 14.04 LTS? 16.04 LTS?
Any reason not to use 64 bit?
I see a thread about USB-UIRT using LIRC so I guess I can use this for channel changing?
Is firewire channel changing an option?
What is the status of HD-PVRs under Linux?
Does the Jetty webserver run properly on Linux?
Is there anything that wouldn't work on Linux that I am used to on my Windows 7 installs?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 01-06-2017, 06:43 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
I am thinking about building a Linux server, at least on old hardware as a test platform to try it out. A few questions - my starting point is that I have dabbled in *nix for about 20 years from Sun Solaris to Ubuntu to RPis, but I am most familiar with Ubuntu and Raspbian Jessie/Wheezy, however I am by no means an expert.

What flavour of Linux should I use?
If Ubuntu what version? 14.04 LTS? 16.04 LTS?
Any reason not to use 64 bit?
I see a thread about USB-UIRT using LIRC so I guess I can use this for channel changing?
Is firewire channel changing an option?
What is the status of HD-PVRs under Linux?
Does the Jetty webserver run properly on Linux?
Is there anything that wouldn't work on Linux that I am used to on my Windows 7 installs?
By far the easiest setup for SageTV in Linux is to use unRAID + Docker (there's a thread).... plus you get a first class NAS and the ability to quickly and easily deploy/re-deploy things like Plex, Emby, etc. unRAID/Docker has support to easily allow changing amount of MEM, it has comskip installed, it installs gentuner (used for turning using command scripts), it supports LIRC (I think some are using usb-uirt)

I've used LInux for sagetv from day 1. I have 2 HDPVRs and I use CommandIR for tuning (no longer supported). For the HDPVRs you'll need to research the models you have... Mine work out of the box... the newer ones do not work (from what I an tell).

Most things, unless they are dependent on native libraries will just work. So Jetty, BMT, Phoenix, etc... will all work the same.

Since I don't know what you have in your Win7 installs, I can't say what won't work Likely if you have PCI tuner cards that require specific drivers in windows, they may not work (some will, but, you'd have to research the hardware).

For Linux, I only produce 64bit installs of SageTV... I recommend that you use 64 bit install of linux as well (unRAID is 64bit).

If you decide to do your own install... I'd use latest ubuntu. There are packages for sagetv, which is the easy part... the hard part is really configuring all the other stuff, like lirc, comskip, etc.
Reply With Quote
  #3  
Old 01-06-2017, 09:16 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Thanks for the info. My HD-PVRs are the V1 using component input - I think they are model 1212s which are likely the same as you. My other tuners are a Hauppauge 1850 PCI card that does OTA + analog input (it doesn't matter if I can't use this one) and a network connected HDHR for OTA.

I read their web page but I still not totally understand what unRAID is. Do I have it right that it is a Linux OS that is optimized for file storage and (with Docker) allows you to store applications, like SageTV, in virtual environments so that they don't conflict with each other? Is that right?

What are the pros/cons of unRAID vs Ubuntu?

Would I then buy unRAID basic?

Outside of SageTV can I use unRAID like any other Linux OS and run other applications? And maybe install Apache2 and use it as a web server?

Can unRAID replace my WHS box by doing nightly backups that would facilitate bare metal restores?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #4  
Old 01-06-2017, 10:11 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
unRAID is fundamentally NAS software, that happens to run on Linux (as many NAS solutions do).

unRAID added Docker and VM support so that if you have beefy hardware, you an also use it to run Docker containers and Linux/Windows VMs if needed.

The primary advantages of unRAID over Ubuntu, in my mind is this...
- unRAID updates happen periodically, and they are easy to apply (just use the web ui and update it). With Ubuntu... unless you are on a LTS release, you are always updating... and I had many cases where I failed to update the release in a timely manner and then I was left no way to actually do the update, except to re-install (or use an update cd, etc). So, I think keeping it updated is a win for unRAID.
- unRAID has a "Community Applications" plugins where you can easily search/pick/install Docker containers. Things like Plex, SageTV, Emby, and many other types of softwware can be easily installed and setup using the web ui. unRAID has a concept of "templates", so when you can configure something like plex or sagetv, and you have to re-install for some reason, it takes a matter of minutes, and you are back up and running.

Fundamentally unRAID is linux with a nice Docker web ui manager. The same Docker image for SageTV can be run on normal ubuntu as well, and I use it that way myself, for development... ie, when I need a new sagetv server, I just fire up a new docker instance. I wouldn't consider unRAID to be a distro, but it is linux, and they make it quite easy to maintain the server.

I've known about unRAID for years, but I've chose to run my own linux servers with LVM and RAID, etc, I've spent way more time trying to maintain those than I ever did with unRAID.

And since unRAID is a NAS solution, you can grow shrink your storage quite easily.. you an do things like add a SSD cache drive so that things can run faster from SSD... for example you could put sagetv on a SSD cache drive (I don't).

And as I noted before, the SageTV docker container takes care of keeping it up to date, installing linux comskip, etc. There's also an OpenDCT container (I think)... I haven't used it because I have nothing to use it with
Reply With Quote
  #5  
Old 01-06-2017, 10:17 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Thanks stuckless!

Can I create my own template to facilitate reinstalls? From the core install you may be able to get up and running in minutes but installing all of the updates and configuring them correctly, with Gemstone custom menus, etc, takes a long time.

Quote:
Originally Posted by stuckless View Post
There's also an OpenDCT container (I think)... I haven't used it because I have nothing to use it with
Being in Canada I am in the same position, although I think you can use OpenDCT for the OTA HD HomeRun. But I am not sure what that gives you vs the "native" method of using the HDHR.

In reading up on GenTuner it looks like it did work with firewire. Any idea if that still works as in the Windows world drivers for firewire were always an issue and 64 bit firewire drivers for Win do not exist.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #6  
Old 01-06-2017, 10:47 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
Thanks stuckless!

Can I create my own template to facilitate reinstalls? From the core install you may be able to get up and running in minutes but installing all of the updates and configuring them correctly, with Gemstone custom menus, etc, takes a long time.

Being in Canada I am in the same position, although I think you can use OpenDCT for the OTA HD HomeRun. But I am not sure what that gives you vs the "native" method of using the HDHR.

In reading up on GenTuner it looks like it did work with firewire. Any idea if that still works as in the Windows world drivers for firewire were always an issue and 64 bit firewire drivers for Win do not exist.
A Template is just the configuration settings that you used when setting up a docker instance (ie, path mappings, port mappings, and other container specific settings).

A Docker container's configuration is not stored in the container itself, it's store somewhere on an unRAID share. So for sagetv you can completely remove SageTV docker image and then later install it, and it will be fully configured (provided you use the "my-xxx" template, or if you simply configured the new image to use the same appdata location.

I recommend installing unRAID and then playing with docker, shares, etc, before you dive straight into the "final" configuration... ie, play with docker, plugins, cache drives, shares... even install sagetv docker and test it out, etc.
Reply With Quote
  #7  
Old 01-06-2017, 04:46 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
I installed unRAID on an old server and liked it so much I bought a license and built out the server some. I'm not using SageTV on it yet, but I have a VM and some dockers on it. I'd definately recommend trying it out some. I may not end up using it for SageTV, (still hoping for a 64bit Windows build), but it has found a place in my rack.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #8  
Old 01-06-2017, 04:56 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by KarylFStein View Post
I installed unRAID on an old server and liked it so much I bought a license and built out the server some. I'm not using SageTV on it yet, but I have a VM and some dockers on it. I'd definately recommend trying it out some. I may not end up using it for SageTV, (still hoping for a 64bit Windows build), but it has found a place in my rack.
Any particular reason you're holding out for a 64-bit Windows version? You can have it in 64-bit now in Linux or unRAID. It works quite well. I moved from Windows to unRAID. Took some time to convert the recording disks to unRAID format but haven't had any issues at all since.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #9  
Old 01-06-2017, 05:27 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I am in the same boat but I am considering jumping to Linux because I don't think anyone is actually working on a 64 bit version for Windows so there is a very good chance that it will never happen.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #10  
Old 01-06-2017, 06:28 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by wayner View Post
I am in the same boat but I am considering jumping to Linux because I don't think anyone is actually working on a 64 bit version for Windows so there is a very good chance that it will never happen.
To my knowledge it's not currently being worked on but I believe it's on someone's todo list.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #11  
Old 01-06-2017, 06:29 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by Taddeusz View Post
Any particular reason you're holding out for a 64-bit Windows version? You can have it in 64-bit now in Linux or unRAID. It works quite well. I moved from Windows to unRAID. Took some time to convert the recording disks to unRAID format but haven't had any issues at all since.
Mainly because it would be a major overhaul to my network. The Windows server does a lot more than SageTV. Plus I'm not sure how well the PCIe cards would work, (and if I'd lose tools like Ceton Diagnostics, which I need sometimes to diagnose issues). Also I'm a little concerned about performance as the unRAID people say it's not meant to be a high-performance solution, (which doesn't mean it wouldn't work for what I do, but would need testing). Basically it would take a bit of planning and tinkering to move things around and not have too much downtime. I enjoy doing that, but these days I just don't have the time.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #12  
Old 01-06-2017, 07:05 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by KarylFStein View Post
Mainly because it would be a major overhaul to my network. The Windows server does a lot more than SageTV. Plus I'm not sure how well the PCIe cards would work, (and if I'd lose tools like Ceton Diagnostics, which I need sometimes to diagnose issues). Also I'm a little concerned about performance as the unRAID people say it's not meant to be a high-performance solution, (which doesn't mean it wouldn't work for what I do, but would need testing). Basically it would take a bit of planning and tinkering to move things around and not have too much downtime. I enjoy doing that, but these days I just don't have the time.
I hear ya there. My main reason for moving from Windows was consolidation. I'd put together a dual quad core system intending to virtualize SageTV but was unable to due to the hardware I picked. UnRAID gave the the ideal opportunity to complete the consolidation. I actually ended up picking a different motherboard recently because of performance issues unrelated to unRAID I was having. I'm completely satisfied with what I have now with unRAID.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #13  
Old 01-06-2017, 07:27 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by stuckless View Post
I recommend installing unRAID and then playing with docker, shares, etc, before you dive straight into the "final" configuration... ie, play with docker, plugins, cache drives, shares... even install sagetv docker and test it out, etc.
Ok, I am doing that.

I have an old Dell that I saved from the scrap pile at work a little while ago. I have installed four old hard drives in it and installed unRAID. It just finished formatting the drives so know I will start setting up Shares and playing around.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #14  
Old 01-06-2017, 08:01 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by KarylFStein View Post
Mainly because it would be a major overhaul to my network. The Windows server does a lot more than SageTV. Plus I'm not sure how well the PCIe cards would work, (and if I'd lose tools like Ceton Diagnostics, which I need sometimes to diagnose issues). Also I'm a little concerned about performance as the unRAID people say it's not meant to be a high-performance solution, (which doesn't mean it wouldn't work for what I do, but would need testing). Basically it would take a bit of planning and tinkering to move things around and not have too much downtime. I enjoy doing that, but these days I just don't have the time.
What you could do if you want 64 bit on unRAID with a non-supported tuner is setup a VM on unRAID with the tuner passed through to a Windows instance and 32 bit Windows SageTV installed as a network encoder to the 64 bit Linux Docker version of unRAID. Not ideal but if the tuner isn't supported it is one way to get around the problem. I may go that route myself in Feb/Mar for one of my SageTV servers currently on a VM on a unRAID box.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #15  
Old 01-06-2017, 08:12 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
To test out content on may unRAID server how can I access Windows drives from the unRAID server to use as some of my Sage media drives? I know this isn't ideal for long term operations but it will be useful for testing.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #16  
Old 01-06-2017, 08:48 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by wayner View Post
To test out content on may unRAID server how can I access Windows drives from the unRAID server to use as some of my Sage media drives? I know this isn't ideal for long term operations but it will be useful for testing.
If you install this http://lime-technology.com/forum/ind...?topic=45807.0 plugin you will be able to mount a NTFS formatted drive to copy files from it to the array. With the plugin you should be able to WRITE to the drive in unRAID as well but it would be better if you formatted the drive as XFS if you are going to use it mounted in unRAID as that is the default format for unRAID.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #17  
Old 01-07-2017, 12:57 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by BobPhoenix View Post
If you install this http://lime-technology.com/forum/ind...?topic=45807.0 plugin you will be able to mount a NTFS formatted drive to copy files from it to the array. With the plugin you should be able to WRITE to the drive in unRAID as well but it would be better if you formatted the drive as XFS if you are going to use it mounted in unRAID as that is the default format for unRAID.
Unless things have improved a lot, do not use NTFS in Linux for your recordings drive. There are problems with live TV playback. https://forums.sagetv.com/forums/sho...6&postcount=33
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #18  
Old 01-07-2017, 10:40 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by EnterNoEscape View Post
Unless things have improved a lot, do not use NTFS in Linux for your recordings drive. There are problems with live TV playback. https://forums.sagetv.com/forums/sho...6&postcount=33
Didn't know about that. I wouldn't use NTFS as recording drives in unRAID anyway but I won't even suggest it's possibility to someone else now.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #19  
Old 02-08-2017, 11:28 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Agreeing with EnterNoescape about NTFS. Go with ext4.

Regarding hardware, the old Hauppauge HVR-1600 works well on Linux and is available cheap on Ebay. For analog the old (ancient) PVR-150/250 are bulletproof. For PCIe, the HVR-1250 and cetain variants of the 2250 are supposed to work (and others only with Windows). I don't know of recent hardware cards that are supported, but I'd like too!

I've had trouble getting SageTV9 running on non-Ubuntu but can easily watch TV with the HVR-1600 by using azap to tune and mplayer to watch, so Sage shouldn't have any problem.
Reply With Quote
  #20  
Old 02-08-2017, 11:57 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
If we're talking unRAID, there's really no compelling reason NOT to use the array. The only reason to mount the drives using the unassigned devices plugin is to copy data off of them at higher than network speeds.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Linux V9 Build and Walkthrough - V2 SageWizdom SageTV Downloads & Instructions 19 10-01-2017 10:17 AM
Build SageTV (Linux Specific) + GitHub primer stuckless SageTV Github Development 81 09-04-2016 12:27 PM
Linux Ubuntu 16.04 build error mwnswiss SageTV Github Development 1 05-21-2016 02:14 PM
Basic Linux V9 Build and Walkthrough - First Draft SageWizdom SageTV Downloads & Instructions 32 02-20-2016 09:29 PM
Pre Build Questions deliverer Hardware Support 23 12-05-2005 08:05 AM


All times are GMT -6. The time now is 05:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.