安装Kodi

sudo apt-get install kodi
addgroup --system input
sudo nano /etc/udev/rules.d/99-input.rules
SUBSYSTEM==input, GROUP=input, MODE=0660
KERNEL==tty[0-9]*, GROUP=tty, MODE=0660
#编辑hdmi
sudo nano /boot/config.txt
#设置gpu内存,不然会黑屏
gpu_mem=256 

设置自启动:

sudo nano /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 = /usr/bin/kodi
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target

# 设置启动
sudo systemctl enable kodi.service

你可能感兴趣的:(安装Kodi)