apt-get update 

Compiler installieren

apt-get install build-essential cmake -y 

Unterstüzung für Kartenlesegeräte

apt-get install libssl-dev libpcsclite-dev libncurses-dev libusb-dev libusb-1.0-0-dev pcscd pcsc-tools -y

apt-get install mercurial cvs subversion -y

cd /tmp/ 

svn checkout https://svn.streamboard.tv/oscam/trunk oscam-svn

cd oscam-svn

//

cmake -DHAVE_LIBUSB=1 -DHAVE_PCSC=1 -DWEBIF=1

make 

cp oscam /usr/local/bin 

cd .. 

rm -rf oscam-svn

cd /usr/local/bin 

sudo chmod 755 oscam 

Anschließend fügen wir die Configs für Oscam in /usr/local/etc/ hinzu

cd /usr/local/etc/

Hier kommt die CFG

nano oscam.conf

[global]
logfile = /tmp/oscam.log
disableuserfile = 0
fallbacktimeout = 4900
clientmaxidle = 60
cachedelay = 120
bindwait = 20
netprio = 0
nice = -1
maxlogsize = 100
preferlocalcards = 1
saveinithistory = 1

[dvbapi]
enabled = 1
au = 1
pmt_mode = 4
listen_port = 9000
user = tvheadend
boxtype = pc

[webif]
httpport = 8888
httpuser = Username
httppwd = Password
httprefresh = 10
httpallowed = 127.0.0.1,192.168.1.1-192.168.255.255

nano oscam.user

[account]
user = tvheadend
pwd = tvheadend
monlevel = 4
group = 1
au = 1

nano oscam.server

Hier nach erstellen wir für eine Service-Datei zum autostart

nano /lib/systemd/system/oscam.service

[Unit]
Description=OScam
After=network.target
Requires=network.target

[Service]
Type=forking
PIDFile=/var/run/oscam.pid
ExecStart=/usr/local/bin/oscam -b -B /var/run/oscam.pid
ExecStop=/bin/rm /var/run/oscam.pid
TimeoutStopSec=1
Restart=always
RestartSec=5
StartLimitInterval=0

[Install]
WantedBy=multi-user.target

 

sudo chmod 644 /lib/systemd/system/oscam.service

systemctl enable oscam.service

systemctl daemon-reload

systemctl start oscam.service

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Ubuntu 20.04 LXC Containter: 

 

sudo apt-get update && sudo apt-get dist-upgrade -y

 

sudo apt-get -y install coreutils wget apt-transport-https lsb-release ca-certificates gnupg2 software-properties-common

Optional:

sudo apt install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev

 

sudo add-apt-repository 'deb https://apt.tvheadend.org/stable focal main'

 

sudo wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -

 

sudo apt-get update

 
sudo apt-get install tvheadend 
 

http://192.168.178.51:9981/ 

 

 

Es kommt vor das die TV-Adapter der Fritzbox nicht angezeigt werden, dafür müssen
wir einen zusätzlichen Eintrag in der /etc/init.d/tvheadend einfügen:

ARGS=“-f –satip_xml http://192.168.178.1:49000/satipdesc.xml“ <—–

BSP:

ARGS=“-f –satip_xml http://192.168.178.1:49000/satipdesc.xml“
[ -z „$TVH_USER“      ] || ARGS=“$ARGS -u $TVH_USER“
[ -z „$TVH_GROUP“     ] || ARGS=“$ARGS -g $TVH_GROUP“
[ -z „$TVH_CONF_DIR“  ] || ARGS=“$ARGS -c $TVH_CONF_DIR“
[ -z „$TVH_ADAPTERS“  ] || ARGS=“$ARGS -a $TVH_ADAPTERS“
[ „$TVH_IPV6“ = „1“   ] && ARGS=“$ARGS -6″
[ -z „$TVH_HTTP_PORT“ ] || ARGS=“$ARGS –http_port $TVH_HTTP_PORT“
[ -z „$TVH_HTTP_ROOT“ ] || ARGS=“$ARGS –http_root $TVH_HTTP_ROOT“
[ -z „$TVH_HTSP_PORT“ ] || ARGS=“$ARGS –htsp_port $TVH_HTSP_PORT“
[ -z „$TVH_ARGS“      ] || ARGS=“$ARGS $TVH_ARGS“
[ „$TVH_DEBUG“ = „1“  ] && ARGS=“$ARGS -s“

Anschließend werden die Adapter im TvHeadend angzeigt.
https://blag.nullteilerfrei.de/2017/08/07/using-a-fritzbox-6490-as-tuner-for-tvheadend/

 

 

 

 
 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert