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

如何在ssh登录的情况下配置好vino

1.传输文件

2.ssh

sudo dpkg -i ~/swap/deb/tight*
sudo cp ~/swap/vino.desktop /etc/xdg/autostart/
vncserver :1

3.vnc

vino-preferences

4.ssh

sudo apt-get autoremove tightvncserver

5. use vino!

 

 

附:

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

 

转载于:https://www.cnblogs.com/turtlegood/p/5838623.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值