Install and initial setup » History » Version 1
Christoffer Bergkvist, 2012-08-02 10:41
1 | 1 | Christoffer Bergkvist | h1. Install and initial setup |
---|---|---|---|
2 | |||
3 | Parts of this documentation is also available in the Tvheadend man page. |
||
4 | |||
5 | h2. Starting Tvheadend |
||
6 | |||
7 | If you already have Tvheadend up and running you can skip this part. |
||
8 | |||
9 | *Command line options:* |
||
10 | |||
11 | * *-f* |
||
12 | Fork and become a background process (daemon). Default no. |
||
13 | |||
14 | * *-u username* |
||
15 | Run as 'username'. Only applicable if demonizing. Default is to use the UID of 1 (daemon on most systems). |
||
16 | |||
17 | * *-g groupname* |
||
18 | Run as group 'groupname'. Only applicable if daemonizing. Default is to use the 'video' group. If the 'video' group does not exist, GID 1 (daemon) will be used. |
||
19 | |||
20 | h2. Default configuration |
||
21 | |||
22 | All configuration in Tvheadend is maintained via its embedded web server running on port 9981. Just point your browser to: |
||
23 | |||
24 | http://hostname:9981/ |
||
25 | |||
26 | By default +everyone (also from remote hosts)is allowed full access to all features / settings+ in the web user interface. If this is the first time you setup Tvheadend you are most encouraged to enter the web user interface, selected the 'Configuration' + 'Access Control' tab and make reasonable changes. Futher help / documentation can be obtained inside the web interface. |
||
27 | |||
28 | h2. Settings storage |
||
29 | |||
30 | Settings are loaded/stored in $HOME/.hts/tvheadend. |
||
31 | |||
32 | h2. Logging |
||
33 | |||
34 | All activity inside tvheadend is logged to syslog using log facility. Also, if logged in to the web interface you will receive the same log in the bottom tab (System log). |
||
35 | |||
36 | h2. Permission to access video adapters |
||
37 | |||
38 | In order for Tvheadend to control video adapters on the system it must be granted access to those devices. Most systems have a 'video' group with write access to the video adapter devices. When Tvheadend is started as a daemon (if Tvheadend is installed from a distribution package this is most likely the way it is) it will change its primary group to 'video' in order to access these groups. If your system is configured in a different way you can either change the group membership of the video adapters (/dev/dvb, etc) or reconfigure the Tvheadend start up parameters. |
||
39 | If Tvheadend is started without the '-f' argument it will not demonize nor change its primary UID/GID. Rather it will run with the permissions granted to the user executing the binary. If that's the case you must make sure the current user is granted with access to the video devices. |
||
40 | |||
41 | h2. Open ports |
||
42 | |||
43 | Tvheadend listens to the following TCP ports by default: |
||
44 | |||
45 | * 9981 - HTTP server (web interface) |
||
46 | |||
47 | * 9982 - HTSP server (Streaming protocol) |
||
48 | |||
49 | There is currently no way of disabling these TCP servers, nor bind the services to specific interfaces or other ports. To limit access, please read the section about 'Access Control' in the configuration chapter. |
||
50 | |||
51 | {{lastupdated_at}} by {{lastupdated_by}}. |