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