安装Kodi

作者: CrazyMonk | 来源:发表于2018-07-01 02:59 被阅读0次
    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

        本文链接:https://www.haomeiwen.com/subject/tfpxuftx.html