Project

General

Profile

Development » History » Version 3

Adam Sutton, 2013-12-28 23:48

1 1 Adam Sutton
h1. Development
2
3
If you are intending to do Tvheadend development or simply self-building / testing then this page gives a few useful hints and tips.
4
5
h2. Environment
6
7
If you intend to build and test tvheadend its recommended that you do this as your own user, it'll make things a lot easier and can help isolate a test build from your main live build.
8
9
You will need to give your user account the necessary permissions to access the DVB hardware:
10
11
<pre>
12
sudo usermod -a -G video $(id -nu)
13
</pre>
14
15
If you already have an existing configuration you might consider taking a copy of this to give you a realistic data set without tainting your main config:
16
17
<pre>
18
sudo cp -a ~hts/.hts/tvheadend/ ./test-conf
19
sudo chown -R $(id -nu):$(id -ng)  ./test-conf
20
</pre>
21
22
You should now be able to run tvheadend as yourself (remember to turn off the main tvheadend service):
23
24
<pre>
25 2 Adam Sutton
mkdir -p test-conf
26 1 Adam Sutton
./build.linux/tvheadend -c ./test-conf
27
</pre>
28
29 3 Adam Sutton
h2. [[Debugging]]
30 1 Adam Sutton
31 3 Adam Sutton
For more general information about debugging please read this [[Debugging|page]].