Ubuntu package: start tvheadend with root permissions
Added by Rüdiger Gubler almost 9 years ago
Hi,
how can I start tvheadend with root permissions to open port 554 for SAT>ip ?
-- Tolotos
Replies (9)
RE: Ubuntu package: start tvheadend with root permissions - Added by Gerd H almost 9 years ago
Hi !
I'm looking for the same setup, i tried with setting required values in /etc/default/tvheadend but then i can't even login the http gui
kind regards gerd
RE: Ubuntu package: start tvheadend with root permissions - Added by Gerd H almost 9 years ago
Hi !
OK i found it...
instead of "" for user ("" let it starts as user daemon not as root) you have to take root...
========= /etc/default/tvheadend ====
TVH_USER="root"
TVH_GROUP=""
TVH_CONF_DIR="/home/hts/.hts/tvheadend"
=====================================
Thats it.....
Ciao Gerd
RE: Ubuntu package: start tvheadend with root permissions - Added by Rüdiger Gubler almost 9 years ago
Hi Gerd,
thanks, now DVBviewerDemo can connect. But I can't scan the channels.
I'm using DVB-C.
The tvheadend log contains
Jan 25 21:21:06 tv-server tvheadend[4855]: subscription: 0077: "SAT>IP" subscribing to mux "114MHz", weight: 100, adapter: "STV0367 DVB-C DVB-T : DVB-C #0", network: "Kabel-BW", service: "Raw PID Subscription", hostname="192.168.178.42" Jan 25 21:21:13 tv-server tvheadend[4855]: subscription: 0077: "SAT>IP" subscribing to service "114MHz in Kabel-BW", weight: 100, adapter: "STV0367 DVB-C DVB-T : DVB-C #0", network: "Kabel-BW", mux: "114MHz", hostname="192.168.178.42" Jan 25 21:21:20 tv-server tvheadend[4855]: subscription: 0077: "SAT>IP" subscribing to service "114MHz in Kabel-BW", weight: 100, adapter: "CXD2837 DVB-C DVB-T/T2 : DVB-C #0", network: "Kabel-BW", mux: "114MHz", hostname="192.168.178.42" Jan 25 21:21:21 tv-server tvheadend[5030]: satips: SAT>IP Server initialized (HTTP 192.168.178.35:9981, RTSP 192.168.178.35:554, descramble 10, muxcnf 0) Jan 25 21:21:21 tv-server tvheadend[5030]: satips: SAT>IP Server tuners: DVB-T/T2 0/0, DVB-S/S2 0/0, DVB-C/C2 4/4, ATSC 0, DVB-Cable/AnnexB 0
and DVBviewer log contains entries like
25.01.16 21:21:26.453 TRTSPNetworkStream SetTuner TType: 0, Freq: 818000, Symrate: 6900, LOF: 0, Tone: 0, Pol: 3, DiseqC: 255, FEC: 0, APID: 0, VPID: 0, PMT: 0, SID: 0, TID: 0, NID: 0, SatMod: 0, DiseqCVal: 0, Flags: 0 25.01.16 21:21:26.454 TRTSPNetworkStream RTSP: PLAY RTSP/1.0 400 Bad Request CSeq: 42 Session: A39B812D
Any idea?
-- Tolotos
RE: Ubuntu package: start tvheadend with root permissions - Added by Gerd H almost 9 years ago
Hi !
Have you tried with a predefined channellist ?
btw: dvbviewer should also work on port 9983 (at least worked for me)
BTW: it looks that SAT>IP implementation is al little bit crappy.... but with 4.0.8 it works fine (sometimes it takes longer for switching)
ciao gerd
RE: Ubuntu package: start tvheadend with root permissions - Added by Rüdiger Gubler almost 9 years ago
Hi Gerd,
The existing channellist will not loaded from my DVBviewer Demo.
I want to test the SAT>IP function as we are planning to put a TV set at a place were Ethernet is available but no antenna cable.
The TV we want to buy support SAT>IP so to rise the WAF it would be nice if the HTPC (XBMC) must not switched on to watch TV.
If we have the TV I'll try again with it and if it is not working I can wait for a more stable version of tvheadends SAT>IP implementation.
Thank you
Tolotos
RE: Ubuntu package: start tvheadend with root permissions - Added by Gerd H almost 9 years ago
Hi !
First of all you should do with dvbviewer a channelscan...
Ciao Gerd
RE: Ubuntu package: start tvheadend with root permissions - Added by Rüdiger Gubler almost 9 years ago
Thats the problem dvbviewer connects to tvheadend (visible in the tvheadend status screen) and after connecting the "RTSP/1.0 400 Bad Request" messages fills up the dvbviewer log.
I assume my configurations for the DVB-C scan is wrong. I attached my settings which are mostly the defaults of dvbviewer.
I think you can read the German interface in the screenshow Gerd - sorry for the others. Conversation will be stay in English language.
EDIT: I attached the dvbviewer.log
Scan-Settings.png (34 KB) Scan-Settings.png | |||
DVBViewer.log (1.59 MB) DVBViewer.log |
RE: Ubuntu package: start tvheadend with root permissions - Added by Gerd H almost 9 years ago
First off all it doesn't matter you run sat>ip server on port 554 or 9983 when you test it with dvbviewer
Second see settings for sat>ip in common [[http://tvheadend.org/boards/5/topics/19712]]
RE: Ubuntu package: start tvheadend with root permissions - Added by Rüdiger Gubler almost 9 years ago
DVBviewer hasn't connect to a other port.
Now it connects but tvheadend crashes during the channel scan.
I opened a bug report for this issue.