Home - Raspberry Pi 4 - KODis

systemctl enable ssh
systemctl start ssh
apt update
apt upgrade

Instalace základních balíků:

apt install mc htop tvheadend samba ffmpeg

systemctl enable smbd
systemctl start smbd

Nastavení prostředí:

dpkg-reconfigure tzdata
dpkg-reconfigure locales

Vypnutí ipv6

/etc/sysctl.com
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Upravit: mcedit /boot/config.txt

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

[all]
gpu_mem=384
hdmi_enable_4kp60=1

Samba:

mkdir /samba 
chmod 777 -R  /samba 
mcedit /etc/samba/smb.conf
[private]
   path = /samba
   available = yes
   browsable = yes
   public = yes
   writable = yes
   guest ok = yes

Kodi:

apt install kodi kodi-inputstream-adaptive kodi-inputstream-rtmp kodi-peripheral-joystick kodi-pvr-hts kodi-pvr-vuplus
sudo usermod -a -G audio,video,input,dialout,plugdev,netdev,users,cdrom,tty "pi"

Systemd: mcedit /lib/systemd/system/kodi.service

[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
User = pi
Group = pi
Type = simple
[ExecStart](/view/ExecStart) = /opt/scripty/kodi.start.sh
Restart = on-abort
[RestartSec](/view/RestartSec) = 5

[Install]
[WantedBy](/view/WantedBy) = multi-user.target
systemctl enable kodi.service

Script: mcedit /opt/scripty/kodi.start.sh

#!/bin/bash

while :
do
   /usr/bin/kodi-standalone
   sleep 10
done

Tvheadend: mcedit /etc/default/tvheadend

# TVH_ARGS
#   add any other arguments
TVH_ARGS="--satip_xml \"http://192.168.1.4:8080/desc.xml\""
#TVH_ARGS=""
cd /tmp
wget https://raw.githubusercontent.com/tvheadend/dtv-scan-tables/tvheadend/dvb-t/cz-All
cp /tmp/cz-All /usr/share/tvheadend/data/dvb-scan/dvb-t/