Linux

debian tvheadend 설치

따라쟁이1 2016. 7. 3. 22:06


debian tvheadend 설치



1.deb 를 이용한방법

참조:

http://cafe.naver.com/mk802/9109

https://blog.outsider.ne.kr/346  우분투 apt-get사용하기 

http://hynk.tistory.com/175

http://nuc.tail9.com/archives/95

https://nas.moe/archives/858   Tvheadend IPTV 재생 확인용 주소 공유

https://nas.moe/archives/category/tvheadend/tvheadend-iptv-course

http://cafe.naver.com/mk802/6242

https://archive.is/1m25g

LG U+ IPTV (U+ tv G 4K UHD) 서비스 (1): 실시간 방송 서비스  

http://www.netmanias.com/ko/post/blog/7505/iptv-lg-u-uhd/lg-u-iptv-u-tv-g-4k-uhd-services-1-live-tv

 

Minimal Debian Wheezy 이미지를 설치한 상태에서 tvheadend를 설치해 보았습니다.

/etc/apt/sources.list에 다음 리포지토리를 추가합니다.

deb http://apt.tvheadend.org/unstable wheezy main

소스 리스트를 업데이트합니다.

apt-get update

gpg 키 관련 오류가 발생하는데요. 오류 마지막에 표시된 <key_number>를 찾아 아래 명령을 실행해서 키를 등록하면 됩니다.

gpg --keyserver subkeys.pgp.net --recv-keys <key_number>
gpg -a --export <key_number> | apt-key add -

자세한 내용은 SecureApt - Debian Wiki 참조하세요.

이제 소스 리스트를 업데이트하고 tvheadend 설치합니다.

apt-get updateapt-get install tvheadend

설치를 마친 후 실행이 안 되는데요. syslog를 보면 아래와 같은 오류가 나타납니다.

cat /var/log/syslog | grep "tvheadend"...config: command '/bin/tar cjf /home/hts/.hts/tvheadend/backup/unknown.tar.bz2 --exclude backup --exclude epggrab/*.sock .' returned error code 2...

찾아보니 bzip2가 없는 것이 원인이네요. 설치하고 실행합니다.

apt-get install bzip2service tvheadend start

이제 잘 실행됩니다.

IPTV 등록하고 녹화해 봤는데 SD 메모리 속도 때문에 3개 채널 동시 녹화가 한계인 것 같네요. -.-a

 

tvheadend 설치


쉬울 줄 알았으나 아래 링크처럼 막상 tvheadend 에 있는 설치 가이드대로 하면 잘 되지 않는다. 

https://www.tvheadend.org/projects/tvheadend/wiki/AptRepository


대신 다음과 같이 하면 깔린다.


일단 key 등록

curlhttp://apt.tvheadend.org/repo.gpg.keysudoapt-keyadd-


에디터로 sources.list 업데이트 한다.


sudovi/etc/apt/sources.list


막줄에 다음 라인 추가

deb http://apt.tvheadend.org/stable wheezy main

<우분투 14.04 의 경우엔 다음과 같이 된다.)

deb http://apt.tvheadend.org/stable trusty main



저장소 리스트 업데이트


sudoapt-getupdate


설치 


sudoapt-getinstalltvheadend








2. 소스를직접 컴파일 하여 설치하는 방법


참조:

http://cafe.naver.com/mk802/14288


cd /tmp

git clone https://github.com/tvheadend/tvheadend

cd tvheadend

./configure --prefix=/usr --datadir=/usr/share

make

sudo make install

 


이과정중 ./configure 과정에서 

apt-get install textget 등 몇가지 필요한 라이브러리를 설치해야하며

때론 http://askubuntu.com/questions/726539/sudo-apt-get-install-libstdc 에서 나온 내용과 같이 해결을 해야합니다.


First run these commands
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install aptitude

and then try

sudo apt-get install libstdc++6 




설치후


접속

http://192.168.5.65:9981/

id:admin ,pass:admin



소스컴파일 방법2

http://cafe.naver.com/mk802/14848