是否需要先apt-get install xrdp以便用xp的远程桌面登录还有待进一步验证。
原文地址:http://www.libregeek.org/2014/04/29/getting-remote-access-work-ubuntu-14-04-vino/
I hope I was not the only one who was very frustrated to install Ubuntu and have trouble with using a vnc server. I tried my good ol’ trust tightvncserver, but would get only gray screens and other errors on connecting from my local LAN. I reviewed Ubuntu’s documentation time and time again. After forum hunting a bit, I figured why not use the built in vino VNC server. But, I ran into more problems…
The whole point of this was to administrate my Retro-Gaming rig (new project) visually so I can mess with configurations that are bothersome over SSH. Yes, I know most things are fine over SSH, but I wanted to get this to work out of perseverance. The problem with vino on Ubuntu 14.04 is the default authentication. This is a current bug in 14.04 as of this post writing.
1. Setting up Remote access under vino
2. Fixing vino under Ubuntu 14.04 (as of 20140428)
2.1 First, Kill and restart vino:
But, first, let’s setup the remote access options. Type “Desktop Sharing” into the dash and hit the configuration screen(注:即在ubuntu软件中心中搜索“Desktop Sharing” ):
What is nice about vino, is it share’s the desktop display that is already started on DISPLAY:0. It will share the screen as you see it on another monitor, mouse and all.
The suggested options are as follows:
Now click close. vino is setup for connections….or is it?
When you try to connect, you’ll like receive the following message:
No matching security types!
What a bummer! So what do you do?
1
2
3
|
pkill vino
export DISPLAY=:0.0
/usr/lib/vino/vino-server &
|
(注:以上三个命令最后一个命令显示完信息后回车回到命令行输入状态)
Now here’s the fun part that will make you leap for joy when it works. I am not sure how safe this is, but with proper security set in the vino config page, you should be fine. Please correct me if I am wrong.
Now, modify the security with gsettings:
1
|
gsettings set org.gnome.Vino require-encryption false
|
You should be able to connect, but this will not stay after a reboot unfortunately.
Now let’s make things permanent:
1
|
sudo apt-get install dconf-tools
|
(注:安装完成后,在ubuntu软件中心中搜索“dconf” )
Some have suggested unchecking this setting in dconf:
org > gnome > desktop > remote-access > enabled
However, that did not work for me after reboot since remote access was of course disable after reboot. I fell back to just making a script and loading it on startup:
From a terminal window:
1
|
nano ~/vino-fix.sh
|
Fill it with these contents:
1
2
3
|
#!/bin/bash
export DISPLAY=:0.0
gsettings set org.gnome.Vino require-encryption false
|
Make it executable:
1
|
chmod +x vino-fix.sh
|
Head into “Startup Applications”(注:即在ubuntu软件中心中搜索“Startup Applications” )
Click Add, and configure as follows:
Reboot your system.
That’s it!
Success!