|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
How hard to port Sage Linux sever to windows
Just curious how hard would it be to port the Linux server to windows. I really don't care if the server can also act as a client from the same install. I would think it might be better to make the server and client install separate at this point. So if you wanted to run a client you could just install it on the server. This would make it much easier to create the 64 bit server on windows I would think since you would be removing any graphics display and such in the server install. The reason I ask is some of the capture devices I use won't run on Linux. I know I can run both in a virtual server then make them network encoders but I think a server only option would be cleaner and maybe encourage more user that are use to using windows.
|
#2
|
||||
|
||||
Quote:
The problem is that there some "native" parts of sagetv that need to be maintained... It's ported... just someone with a Windows developer mindset needs to take ownership of it and start producing builds. I think the linux version has taken off mainly because there are fair number of linux only developers on the forum (myself included), that has taken ownership of the linux linux builds, etc. I think there's been a call for someone, anyone, to take ownership of Windows... but other than the installer, there doesn't appear to be any developer interest in that... but, if someone did do it... and they were familiar with Windows C/C++ development and builds, then I suspect it wouldn't be hard to be a full native 64bit version of windows binraries.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
||||
|
||||
Quote:
Realize though, that over the course of the last 13 years or so of SageTV, nearly all the servers in actual use out there were on Windows. The mass group of users has only really transitioned to Linux in the last year or so.
__________________
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 |
#4
|
|||
|
|||
I'm not sure how much better Linux is for a headless server than Windows. You can RDP into Windows and do about everything you need. I don't currently have a keyboard/mouse/monitor on my SageTV server.
|
#5
|
||||
|
||||
RDP is technically only available in Pro or higher windows licenses, which is more expensive than many people's server hardware - but I was more specifically calling out the use of unRAID for a headless server, where just about everything can be managed from a web browser.
__________________
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 |
#6
|
|||
|
|||
As a semi technically savvy user, I will say that I find unraid much easier to use as a headless server. Not that it can't be done in windows. I had a headless windows 7 server for years. Well, not really headless, I kept an old low res monitor attached for the occasional times that my remote login failed.
However, using unraid with the docker install is dead simple. Network shares are easy to set up and always work. Much easier than on linux or windows. I do realize that for someone who only has 1 pc in their house having a windows install would be a good way to start using sagetv. However if you are going to have a dedicated server anyway I think that unraid is much simpler and probably more reliable. |
#7
|
||||
|
||||
I think that many people see "linux" and they get intimidated because it's "linux". I think the great thing about unRAID, is that for the most part, you have no idea what OS running, since they do a great job of putting a web UI on top, that 99% of users will interact with. Many NAS solutions today run linux, and in most cases, you never interact directly with the OS... You just use the web ui.
It surprises me, that in standard linux, there isn't something like the unRAID Docker web UI for managing docker containers (finding, installing, configuring, etc).
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#8
|
||||
|
||||
Quote:
Here's a brief overview of what the docker web pages look like since Cockpit's own web pages don't even have a screenshot of it. It's not as refined for the average end user as unRAID, but it definitely can save you some time.
__________________
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 Last edited by EnterNoEscape; 12-02-2016 at 07:10 AM. |
#9
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#10
|
||||
|
||||
Quote:
__________________
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 |
#11
|
|||
|
|||
I guess my thoughts are that the people who are going to try SageTV for the first time are going to use a windows machine they have sitting around and maybe some tuner cards from a windows media center or some other PVR program. These cards will run in windows but maybe not Linux. I know we are short windows programmers and I'm sorry I can't help here, but windows is still the dominate OS out there on PCs. I know there market share is shrinking and Linux is getting much easier to use but the average Joe I think is still more comfortable with windows and the easy of finding hardware to work on it. If we could come up with a flash drive boot of Linux like Jeff was trying years ago that may easy people into the Linux environment. To get more programmers we are going to need to expand the user base and I think running out of java resources because your running 32bit java will turn some people off. Other than the Java resources my windows system has been rock solid since version 2.
|
#12
|
||||
|
||||
If it's the introductory users you are concerned with, then the 32-bit java heap limit is not likely a problem. 2-3 extenders will work just fine in a 1GB JVM Heap, and 3-5 works fine without heavy graphics (fanart) usage. Also realize that many of these same users who were used to WMC before, likely have actual windows HTPC's, which would be running a full client that doesn't use almost any of that 1GB Heap, because it maintains it's own heap.
No one was running a 64-bit sagetv JVM until just about year ago, and there have been many very successful sagetv installations in use for over a decade. Basically, I wouldn't put much weight into the 32-bit only on windows concern for now.
__________________
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 |
#13
|
||||
|
||||
Quote:
well, I guess I technically know that unraid uses Linux... but still... stuckless's Docker template thingy has a "Just Works" factor that is almost up there with the HDx00 extenders... much easier to set up than any of my previous Win based servers... of course, tuners/capture devices could be a problem, if there are no linuxy drivers... but I just have a bunch HDHR's and they all just worked with no effort involved...
__________________
NOTE: As one wise professional something once stated, I am ignorant & childish, with a mindset comparable to 9/11 troofers and wackjob conspiracy theorists. so don't take anything I say as advice... |
#14
|
|||
|
|||
I don't see the average user buying a $59 unRAID Basic license just to manage a docker installation. I think just packaging the standard Linux way so that an apt-get works would be a great start.
|
#15
|
||||
|
||||
I used a Windows Server 2012 box as my sage server for years. Rock solid and I almost never had issues. I never used extenders until the android mini client came out. I had a dedicated HTPC in every room.
I can say that since moving to unraid and android clients the user experience is much better than it ever was. My server was always solid, but the clients had issues quite often.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60 Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup. |
#16
|
||||
|
||||
I don't think anyone is against setting up sage in an apt repository. I just don't think anyone has taken the time to figure out HOW to do that. I think part of the issues of this is that sage doesn't really deal with files the way it 'should'. A few legacy issues and such mean that there are permissions issues that I'm not sure totally work in a 'simple' installation method. These permission issues are also completely alleviated in a docker install. FWIW, you don't need unRAID to use the docker install. You can install docker on a general linux host. unRAID just gets the ease of management that, if you've ever used it, is worth $60. Considering the price people used to pay for the 'ease' of setting up an extender over a windows client, I think the $60 is well worth it.
__________________
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 |
#17
|
|||
|
|||
Quote:
I have lots of extenders in the house and we have learned to live with the shortcomings of a 32 bit install but a 64 bit would be awesome. I could even leave all of the SageTV extenders powered on all of the time which would also improve the "boot up" time of watching Sage. Could I install SageTV on Linux? Maybe - I do dabble in Linux a fair bit but it is mainly on Raspberry Pis and an AWS instance. But my Sage server also runs some other stuff to facilitate playback on other devices. I use AirVideo HD to playback to iOS devices and I also have Plex server running on the box. Can those run on Linux - maybe but it is generally more work to get them up and running on Linux.
__________________
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 |
#18
|
||||
|
||||
Quote:
__________________
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 |
#19
|
|||
|
|||
I'm really not seeing the need for complete isolation of a SageTV system that a Docker container would supply. For development, I totally get it.
This guy is using Docker in combination with Rake, git-buildpackage and fpm-cookery for package building. https://blog.codeship.com/using-dock...bian-packages/ It might be worth a look. My degree was in Computer Science but it's been 25 years since I've done any real coding. I went the Systems Administrator -> Systems/Network Engineer -> Security Engineer path rather than the software development path. So, I'm not a developer. From my perspective, I think that the reasons for using Docker would go away with a proper package build for users. I get why pushing out docker containers would be appealing if you don't have the .deb package methodology done and are using docker containers anyway. But that's like seeing every problem as a nail when your only tool is a hammer. If users start running into problems requiring an isolated environment that Docker would provide, it's still a nice option. Just strongly suggesting that the DEB packaging get worked out. Considering you're doing this all on your own time on behalf of the SageTV community though, it's hard to really criticize. It's just nice to see the program advance. |
#20
|
||||
|
||||
Quote:
Quote:
For SageTV, the docker container takes care of upgrading (which debs could do as well), and it downloads gentuner (which is used by command ir and usb-urit), and it installs comskip native binaries and does some small configuration changes in sagetv for it. It installs Lirc and does some small configurations around it. It updates the memory configuration for sagetv. It add the license file to the correct place. it sets the permissions on various files. it does a backup of the old Wiz.bin and a few other files during an upgrade, so that if something did go wrong, you could roll back. It's configured to use either Java 7 or Java 8 from Oracle (depending on your preferences). It configures sudo for sagetv so that if you run it as normal user, it can still do somethings as root (sagetv does require some things to be run as root). I've configured a sagetv many times, and on average it takes me a few hours (off and on) to fully configure everything from scratch... getting all those pieces in place. Now, I run a a single command to get 95% configured system in place. Code:
docker run -d --name sagetv-server \ -v /home/seans/unRAID/mnt/user/sagemedia:/var/media \ -v /home/seans/unRAID/mnt/user/mediaext:/var/mediaext \ -v /home/seans/unRAID/mnt/user/apps/sagetv:/opt/sagetv \ -v /home/seans/unRAID:/unraid \ --net host \ --env OPT_GENTUNER=Y \ --env OPT_COMMANDIR=Y \ --env OPT_COMSKIP=Y \ --env PUID=1000 \ --env PGID=1000 \ --env VIDEO_GUID=44 \ --env LICENCE_DATA=AAABBB \ --env JAVA_MEM_MB=512 \ --privileged \ -t -i "stuckless/sagetv-server-java8" I can test Java 7 and Java 8 (and eventually Java 9) and when Java 9 is fully ready, I can just point to a different image and things are fully configured. Even Ubuntu is planning on changing it's package manager from deb to something that better composits applications. Too many times you can't upgrade to a new version of an application, because it depends on a library that hasn't been upgraded and maybe can't for some time. Their new package manager solves this, in much the same way that docker solves it, by ensuring complete isolation for the application and it's dependencies. Having used Linux for 20+ years, it's safe to say that I really like it. And I think that the package managers that Linux has is one of it's greatest strengths. But, in many cases, installing packages does not end up with an installed solution. You still have lots of grunt work to do get things fully setup, especially for complex solutions, like SageTV.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rebuild Sage.jar (Windows and Linux and probably Mac) | stuckless | SageTV Github Development | 77 | 05-10-2021 03:28 PM |
Web Sever Unable to export XML in SageTV v9 | nyplayer | SageTV v7 Customizations | 16 | 03-05-2016 04:37 PM |
Transition from Windows to Linux Sage Server | tsheal | SageTV Linux | 21 | 11-09-2010 06:57 AM |
running a windows sever and a mac client | Dreameriz | SageTV Software | 2 | 12-27-2009 01:51 PM |
How hard is it to set up a Linux box with Sage? | sincityharley | SageTV Linux | 4 | 07-28-2007 05:53 PM |