Project

General

Profile

Newbie problems.... packaging/autostarting (I've got everything else)

Added by Wim K almost 9 years ago

I'm new to Linux, used nextpvr and mediaportal with oscam on windows before.

I have a PI2, installed Raspbian. To get tvheadend going (purposely not saying "installed" because maybe that's not the correct word for what I did?) I did this:

1. Building Prerequisites:
sudo aptitude install build-essential git pkg-config libssl-dev bzip2 wget
sudo apt-get install git build-essential \
libavcodec-dev libavformat-dev libssl-dev \
libavutil-dev libavahi-client-dev libcurl3 \
w-scan
2. Get Source: $ git clone https://github.com/tvheadend/tvheadend.git
3. Configuring script in tvheadend: $ ./configure
4. Compiling: $ make
5. Installed drivers for hdhomerun (2-tuner)
6. Installing: "It's recommend that you run from the build directory for development/testing
(see Development)": $ ./build.linux/tvheadend

That didn't work so I did:
cd /home/pi/tvheadend
./build.linux/tvheadend --noacl
Now tvheadend starts and I can connect from windows
With the wizard I made accounts. I configured everything including oscam, everything works perfectly.
Also in Kodi (front-end androidbox).

Now for my PROBLEM:

Obviously, when I exit putty, tvheadend stops. When I do "./build.linux/tvheadend" again, tvheadend starts with same configuration.
But now I want to autostart tvheadend. I read so many threads, I'm lost here.

Do I have to make a package first? I tried that (./autobuild.sh), got an error: "unmet build depencencies: libcurl14-gnutls-dev liburiparser-dev" and "warning: build dependencies/conflicts unsatisfied; aborting".
Read somewhere that I should do "sudo apt-get install" and than try to build again. I did, same result.

That packaging, what does it do? Does it make 1 file out of the whole program? What happens when I make a change in the configuration? Do I have to make a new package? (not a big deal, just need to know then).

And how do I autostart tvheadend? I read several scripts, but don't know which one to use (since I'm new in linux).

Any help greatly appreciated,

Wim


Replies (28)

RE: Newbie problems.... packaging/autostarting (I've got everything else) - Added by Wim K almost 9 years ago

Hi Mark,

I have been a bit busy, but now have had time to investigate the problem a bit further.
The problem was not the winscp not autorefreshing directories, it was indeed the permissions issue.
But not in /home/pi/ but in /home/pi/tvheadend/build.linux/src
I could make that up from this fragment of the output in one of my posts above when the package failed:

make3: Leaving directory '/home/pi/tvheadend'
CC src/uuid.o
Makefile:574: recipe for target '/home/pi/tvheadend/build.linux/src/uuid.o' failed

Indeed, I am not able (as pi) to put a file in that directory.
The file uuid.o has rw-r--r--, owner root and the directory src has rwxr-xr-x, owner root.
What are yours?

Wim

RE: Newbie problems.... packaging/autostarting (I've got everything else) - Added by Wim K over 8 years ago

Hi Mark,

Here I am, again....

Today I build a new version of TVH and it worked and in the webif I could see the new version number.
However, after a reboot the old version is running again.

While I was trying to install TVH, I seemed to have installed it in /home/pi/tvheadend instead of /home/pi/build. In home/pi/tvheadend I have nested a couple of other installation directories.
So, I would like to do a bit of cleaning up.

I backed up the config files (saw your reply in this thread: https://tvheadend.org/boards/5/topics/19766?r=19770#message-19770).

I've also got multiple "tvheadend" files:
./root/.hts/tvheadend
./usr/lib/debug/usr/bin/tvheadend
./usr/local/share/tvheadend
./usr/local/bin/tvheadend
./usr/share/tvheadend
./usr/share/doc/tvheadend
./usr/bin/tvheadend
./etc/init.d/tvheadend
./etc/default/tvheadend
./home/hts/.hts/tvheadend
./home/pi/.hts/tvheadend
./home/pi/tvheadend
./home/pi/tvheadend/debian/tvheadend-dbg/usr/lib/debug/usr/bin/tvheadend
./home/pi/tvheadend/debian/tvheadend
./home/pi/tvheadend/debian/tvheadend/usr/share/tvheadend
./home/pi/tvheadend/debian/tvheadend/usr/share/doc/tvheadend
./home/pi/tvheadend/debian/tvheadend/usr/bin/tvheadend
./home/pi/tvheadend/debian/tvheadend/etc/init.d/tvheadend
./home/pi/tvheadend/debian/tvheadend/etc/default/tvheadend
./home/pi/tvheadend/build.linux/build/tvheadend
./home/pi/tvheadend/build.linux/tvheadend

Is it okay to just delete these below and begin from scratch following your guide:
./home/pi/tvheadend
./usr/lib/debug/usr/bin (whole directory including file tvheadend)
./usr/local/share/tvheadend
./usr/local/bin/tvheadend
./usr/share/tvheadend
./usr/share/doc/tvheadend
./usr/bin/tvheadend (file)
./etc/init.d/tvheadend (file)
./etc/default/tvheadend (file)

Maybe I have to make a new build too. What about these problems:

checking for cc -mmmx ... fail
checking for cc -msse2 ... fail
checking for cc libiconv ... fail

I don't know what packages they are in. Could you tell me please?

Greetings,

Wim

(26-28/28)