树莓派 VNC 远程桌面 同一个桌面

Posted fzyzcjy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了树莓派 VNC 远程桌面 同一个桌面相关的知识,希望对你有一定的参考价值。

https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=38922#p321344

 

Ok, using vino, step by step. Checked with 2013-02-09-wheezy-raspbian with the updates up-to-date.
1. Enable "desktop on boot" if not done earlier

CODE: SELECT ALL
sudo raspi-config
chose: boot_behaviour     Start desktop on boot?

2. Reboot or go to runlevel 5 (init 5)
3. Install the vino server.

CODE: SELECT ALL
sudo apt-get install vino

4. After the desktop appears, open a terminal window and execute the vine preferences script

CODE: SELECT ALL
vino-preferences

it will open a window similar to the one included in my initial post. Set the permissions and access mode as per your intentions. You only need to do it once (unless you want later to alter the settings). The preferences will be set for the user currently owning the desktop so for the default setting it will be for the pi user. 

5. Create an autostart file (below using a terminal window and my favorite editor).

CODE: SELECT ALL
sudo nano /etc/xdg/autostart/vino.desktop

The content of mine:

CODE: SELECT ALL
[Desktop Entry]
Type=Application
Exec=/usr/lib/vino/vino-server
Hidden=false
NoDisplay=true
Name=vino
Comment=shared access desktop server

6. Log-out and log back in for the desktop session
7. Check whether what you want is there (it takes some time for vine-server to kick-off so please wait a bit)

CODE: SELECT ALL
sudo netstat -nlp | grep vino
tcp        0      0 0.0.0.0:5800            0.0.0.0:*               LISTEN      2757/vino-server
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      2757/vino-server

 

以上是关于树莓派 VNC 远程桌面 同一个桌面的主要内容,如果未能解决你的问题,请参考以下文章

树莓派 VNC 远程桌面 同一个桌面

树莓派初入门:SSH远程登录与VNC远程桌面

树莓派4B远程桌面vnc连接

树莓派VNC无法显示桌面

怎么用VNC远程控制树莓派

树莓派使用VNC进行远程控制