树莓派kodi自启动

sudo tee -a /lib/systemd/system/kodi.service <<_EOF_
[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
_EOF_

sudo systemctl enable kodi.service

Settings / Interface / Skin / Fonts 设置为 Arial based

Settings / Interface / Regional / Language

apt install kodi-peripheral-joystick kodi-pvr-iptvsimple kodi-inputstream-adaptive kodi-inputstream-rtmp

开启DLAN(手机投屏)

打开 设置 / 服务 / UPnP/DLNA 将其中的 允许通过UpnP远程控制 选项设置为 打开

 

hciconfig

systemctl start hciuart

systemctl status hciuart.service

SAP stands for SIM Access Profile, so you have to disable it:

  • Open /etc/systemd/system/bluetooth.target.wants/bluetooth.service
  • Change:

    ExecStart=/usr/lib/bluetooth/bluetoothd
    

    To

    ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
    
  • Reload the systemd:

    $ sudo systemctl daemon-reload
    
  • Restart the bluetooth:

    $ sudo service bluetooth restart
    
  • Get the bluetooth status:

    $ sudo service bluetooth status
    
    
    bluetooth.service - Bluetooth service
       Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
       Active: active (running) since Sat 2016-04-30 10:38:46 UTC; 6s ago
         Docs: man:bluetoothd(8)
     Main PID: 12775 (bluetoothd)
       Status: "Running"
       CGroup: /system.slice/bluetooth.service
               └─12775 /usr/lib/bluetooth/bluetoothd --noplugin=sap
/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -
  • From the Raspberry Pi desktop, open a new Terminal window.
  • Type sudo bluetoothctl then press enter and input the administrator password (the default password is raspberry).
  • Next, enter  agent on and press enter. Then type default-agent and press enter.
  • Type scan on and press enter one more time. The unique addresses of all the Bluetooth devices around the Raspberry Pi will appear and look something like an alphanumeric XX:XX:XX:XX:XX:XX. If you make the device you want to pair discoverable (or put it into pairing mode), the device nickname may appear to the right of the address. If not, you will have to do a little trial and error or waiting to find the correct device.
  • To pair the device, type pair [device Bluetooth address]. The command will look something like pair XX:XX:XX:XX:XX:XX.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值