Project

General

Profile

Development » History » Version 4

Adam Sutton, 2013-12-28 23:50

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 4 Adam Sutton
Enable coredumps (this is best put in shell init script):
23
24
<pre>
25
ulimit -c unlimited
26
</pre>
27
28 1 Adam Sutton
You should now be able to run tvheadend as yourself (remember to turn off the main tvheadend service):
29
30
<pre>
31 2 Adam Sutton
mkdir -p test-conf
32 1 Adam Sutton
./build.linux/tvheadend -c ./test-conf
33
</pre>
34
35 3 Adam Sutton
h2. [[Debugging]]
36 1 Adam Sutton
37 3 Adam Sutton
For more general information about debugging please read this [[Debugging|page]].