|
SageTV Downloads & Instructions This forum is for discussions containing Downloads and Instructions related to the Open Source version of SageTV. Please do not post questions in this forum. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||||
|
||||||
Linux - Script to automatically install SageTV and Network Tuners
(This is a repost of a different post, to give it its own thread. Original post here [http://forums.sagetv.com/forums/show...5&postcount=5])
Note: I will continue to update the first post with the newest script as I update it. At some point in time, I will get this into a repository and you will be able to download it with a single command line. Automated SageTV & OpenDCT Installer for Ubuntu Linux -- Only tested with Ubuntu 14.04.3 LTS - 64bit Server Edition -- May not work with 15.10 (testing needed) -- Attempts to do some validation / testing, but no promises (aka don't use this on a production machine yet) This will attempt to probe for, then download and install the latest SageTV .deb file. This will attempt to prove for, then download and install the latest opendct .deb file. (planned, allow you to chose between opendct and primenetencoder and install your selection) This will attempt to set up your firewall (but will not turn it on). In theory, at the conclusion of this run you should be able to open a Sage client, connect and view video remotely *NOTE: This does not install the local sage client, this assumes a headless server. How to use this 1) Install Ubuntu Linux - the 64 bit SERVER version of 14.04.3 LTS as per http://forums.sagetv.com/forums/showthread.php?p=580992&postcount=2 2) Copy this file to your ubuntu box. The easiest way is probably to use SFTP. Ubuntu as installed above should already have SFTP installed on it. If you are a windows user, you can use PSFTP as an application on windows to send the file. The SFTP exchange will likely look like: Quote:
Quote:
3) Log into your remote Linux box. The easiest way should be SSH. If you are using windows, PuTTY is a good SSH tool. Quote:
Quote:
Quote:
Quote:
Known Issues: #1 When installing, for some reason, after sage installs, it does not return, even though it should. To handle this: - Type Ctrl-Z to have the current application Sleep - Type the command "sudo service sagetv stop" - When this is done type the command "fg" to return the sleeping processes to the foreground. #2 the running of console only does not work for some reason right now in the script. you have to stop the opendct service, run this once and then start the service... I'll have to look tomorrow again at it. I've attempted to have it auto install as much as is reasonable. Please holler with errors, additional software requests, etc. How To Cleanup / Remove This If you decide you want to remove this install.. A) backup up anything you care about (key file, Sage.properties, Wiz.bin) B) sudo apt-get remove opendct sagetv This will properly remove all the files / etc (thanks EnterNoEscape) Last edited by SageWizdom; 07-10-2016 at 08:52 PM. Reason: fixed some links - uploaded new version |
#2
|
|||
|
|||
placeholder
|
#3
|
|||
|
|||
Updated script to incorporate command to ensure auto run at boot
|
#4
|
|||
|
|||
Success!
I am no linux master by any means but I have a running sage server thanks to this script. I installed Ubuntu server 14.04.03 64bit on my modded Asus chromebox. I happened to have this as an extra device right now and thought that it would make a good test machine. It does have a 128gb ssd instead of the stock 16gb. I set the name of the server as sageserver.
I installed the latest version of putty on my windows pc. It found the server on my network by name, no ip address required I was able to use the wget command by changing to the current download link to "http://forums.sagetv.com/forums/attachment.php?attachmentid=15319&d=1457407246" in step 2. I jumped to step 5 and did the chmod. I ran step 6. I had the script hang part way through, I think that it was between installing the sageserver and sagedct but the ctrl-z etc steps got it going again. Once the script completely finished I did a sudo reboot and the syatem came back up. I was able to find the server and connect from my HD300 and ran a channel scan for my HDhomerun ota stations. So far everything seems to work. Great work on the script! I didn't notice but does the script install a GUI? |
#5
|
||||
|
||||
A clarification for install
So, I've been trying to troubleshoot some very weird OpenDCT issues and that inspired me to take a machine that I had laying around and to build it out on Unbuntu 14.04 and run this script (after various mixed attempts to do it manually) and for the most part it worked great.
One thing that tripped me up is that I thought I had everything installed correctly but OpenDCT still wasn't working. What I realized is that I needed the SiliconDust driver package. I found this in another thread and once I installed them, everything started to work. sudo apt-get install hdhomerun-config hdhomerun-config-gui Thanks for your work on this, it made getting everything built and installed very easy!
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
Quote:
It does not, but if there is interest, I can throw one together. When you say gui are you taking about a general os GUI (desktop, browser etc) or are you talking about everything up through a working Sage Client? Part of the reason I had not is that I had not gotten the client to run consistently, and stopped trying once I moved to only external clients. I could certainly point you at the/a walk through which could help get you close.
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#8
|
|||
|
|||
I was just sort of curious if there was a gui. I don't really think that it's needed. I was able to do all the channels scans etc from the HD300.
I think that anyone who has enough interest to build a dedicated linux sagetv server would be able to look up whatever commands they need to interact with the server. The hard stuff like adding hdd's etc pretty much has to be done from the command line anyway. |
#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
|
|||
|
|||
Probably shouldn't have brought up the gui. The only reason I could see for wanting a GUI would be for remote access. I use a chromebook when I'm on the road during the day. I can access my home pc's using chrome remote desktop. This works for my desktop running windows 8.1 as well as my current home server which has Lubuntu installed. This is just the simplest setup that I have found for remote access.
I'm trying to imagine how a new user (since hopefully this project will start bringing new folks to SageTV) would set this up. It looks like running the script to install the linux server on their pc hardware and doing the configuration from the android miniclient would be ideal for most relatively savvy computer people. |
#11
|
|||
|
|||
Your concern is very reasonable, how to make the system easy for folks who are not linux savvy. I would like to think of this as a step on he way to a appliance build. Something that goes from zero to working with no interaction. Even better would be this merged with the OS install (as someone previously noted).
I think the only way to really get there involves a couple of specific expectations. Some basic hardware expectations (available ram, available processor threads, available storage) with some combination of a network encoder (ex. HD HomeRun). In this way, a non linux user wouldn't have to deal with Kernal or other issues, it would just work. Before this could really work, the issue needs to be resolved as to how to handle OS upgrades and application upgrades. When you couple this with the work stuckless is doing for an available client device most of the pieces are there and ready. I think the last big major piece might be, helping a new user get all the guide data they need, as easily as possible.
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#12
|
|||
|
|||
Will this work with Hauppauge USB and PCI tuners as well, or just network tuners like HDHomerun?
I plan to use Ubuntu 14.04.4 LTS - Are these drivers (HDHomerun, Hauppauge) included? I know this is meant to run headless, but if someone wanted to setup a dedicated HTPC on Ubuntu Desktop, could they install the client locally as well? After completing the script and rebooting, if I run 'sudo service sagetv start', and it says it is Already Running. If I launch a client and enter the name or IP, it can't connect however. Any ideas? Last edited by DigiDAD; 05-26-2016 at 11:03 PM. |
#13
|
||||
|
||||
64 bit java issues on virtual machine.
Firstly virtual machines is new to me and I am trying to setup sagetv on one. I have windows 32 bit home premium installed. I am running Oracle Virtual Box 5.0.20. I can install Ubuntu 14.04.4 fine. Everything installs properly, BUT java 64 bit won't install stating I have a 32 bit processor (WRONG!). It is a Amd dual core 6 ghz 64 bit processor, BUT my motherboard doesn't support virtualization and I'm pretty sure the processor doesn't either. I don't know if lack of virtualization in hardware is stopping java or is it some virtual machine setting I need to find out about? I would appreciate any help on this from this forums pros on this type of setup.
__________________
Sage Tv Server-Amd 4200FX quad core, Asus Nvidia EN610 Hdmi out , 8 Gig Ram ,(3) HVR-1800, 3.5 terrabyte storage, Windows 8 Pro on sage 9.09 system . Media Server- 6 Terabytes on 5 drives, Amd x2 6000 8 useable gig ram on win 7 32 bit media server. |
#14
|
|||
|
|||
Quote:
Since virtualization has been supported on AMD processors since the single core Athlon 64 I have a hard time believing that your hardware doesn't support it. For your configuration to work it must have hardware virtualization enabled. Your system's BIOS would be the first place to look. What motherboard do you have in this system?
__________________
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 |
#15
|
||||
|
||||
My mainboard doesn't support virtualization. I did install ubuntu 64 bit and it worked fine, but I figured my hardware may not be up to it. MB is MSI MS-7250. I checked bios and there is nothing about virtualization.
edit: I just downloaded securable. Software that checks system and my system does support hardware virtualization. Now all I have to do is figure out why ubuntu install and runs fine in 64 bit but java doesn't install.
__________________
Sage Tv Server-Amd 4200FX quad core, Asus Nvidia EN610 Hdmi out , 8 Gig Ram ,(3) HVR-1800, 3.5 terrabyte storage, Windows 8 Pro on sage 9.09 system . Media Server- 6 Terabytes on 5 drives, Amd x2 6000 8 useable gig ram on win 7 32 bit media server. Last edited by rnadeau; 05-27-2016 at 11:44 AM. |
#16
|
|||
|
|||
Quote:
__________________
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 |
#17
|
||||
|
||||
Yes, Its setup as linux 64 bit vm. I checked and it is set to use virtualization in vm settings and pae
__________________
Sage Tv Server-Amd 4200FX quad core, Asus Nvidia EN610 Hdmi out , 8 Gig Ram ,(3) HVR-1800, 3.5 terrabyte storage, Windows 8 Pro on sage 9.09 system . Media Server- 6 Terabytes on 5 drives, Amd x2 6000 8 useable gig ram on win 7 32 bit media server. |
#18
|
|||
|
|||
I am new to Linux ... so please be patient. I have it running on Hyper V using ubuntu-16.04-desktop-amd64... I can connect to the Sage Server using a windows client no problem. But it cannot write the fie to the VM. How do I get the Sage Linux server to record to my Publc folders in my WDMYCLOUD Nas.
12:49:23.978 [SageTVRequestHandler-157CT-HDHomeRun Prime Tuner 13147C7B-0] ERROR FFmpegTransSageTVConsumerImpl - Unable to open '/var/media/tv/10334_2_0601_1249-0.ts' for writing => java.nio.file.NoSuchFileException: \var\media\tv\10334_2_0601_1249-0.ts at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Unknown Source) at java.nio.channels.FileChannel.open(Unknown Source) at java.nio.channels.FileChannel.open(Unknown Source) at opendct.consumer.FFmpegTransSageTVConsumerImpl$FFmpegDirectWriter.<init>(FFmpegTransSageTVConsumerImpl.java:716) at opendct.consumer.FFmpegTransSageTVConsumerImpl.consumeToFilename(FFmpegTransSageTVConsumerImpl.java:311) at opendct.capture.HDHRNativeCaptureDevice.startEncodingSync(HDHRNativeCaptureDevice.java:979) at opendct.capture.HDHRNativeCaptureDevice.startEncoding(HDHRNativeCaptureDevice.java:489) at opendct.sagetv.SageTVRequestHandler.run(SageTVRequestHandler.java:223) at java.lang.Thread.run(Unknown Source)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#19
|
||||
|
||||
Does the path /var/media/tv actually exist. Are you able to navigate to it?
That error message suggests that maybe a part of the path doesn't exist or is inaccessible (permissions). If it's permissions, the quickest way to fix that is to give everyone rwx permissions: Code:
sudo chmod 777 /var/media/tv
__________________
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; 06-01-2016 at 02:38 PM. |
#20
|
|||
|
|||
Quote:
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV 7 - Arch Linux 2013.10.01 Install HOWTO | bcjenkins | SageTV Linux | 3 | 09-14-2014 04:57 PM |
Linux suspend / resume script? | drewg | SageTV Linux | 2 | 04-14-2013 06:26 PM |
ComChecker for Linux/Mac Script Version | bcjenkins | SageTV Customizations | 10 | 04-30-2010 03:01 PM |
Utility: Linux/OS X batch beta firmware upgrade script | bcjenkins | SageTV Customizations | 3 | 08-13-2008 07:08 AM |
Perl script to automatically grab movie thumbs | sundansx | SageTV Customizations | 0 | 01-10-2007 11:41 PM |