Update vnc.md

This commit is contained in:
aiminick 2019-02-07 20:28:59 +08:00 committed by GitHub
parent 877a2f3aae
commit 910d8dddb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,9 @@ mv /root/.vnc/xstartup /root/.vnc/xstartup.bak
## 编辑文件
vim /root/.vnc/xstartup
## 键入下面的内容
```
```shell
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
@ -51,12 +54,16 @@ adduser pi bluetooth
## 编辑文件
vim /etc/dbus-1/system.d/bluetooth.conf
#### 在"<!-- allow users of bluetooth group to communicate -->" 行上加入以下内容
```
```shell
<policy group="pi">
<allow send_destination="org.bluez"/>
</policy>
## 下面一行不要添加,文件中应该存在
<!-- allow users of bluetooth group to communicate -->
```
### 设置pi用户VNC密码
@ -77,6 +84,10 @@ exit
```shell
## 编辑文件
vim /lib/systemd/system/vncserver@.service
## 键入下面的内容
```
```shell
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target