|
Under normal circumstances we use ssh remote login Linux client systems, as Linux remote login tool graphical interface, we usually think of vnc, but its security is not enough, here I will describe the installation and configuration method XRDP. We can easily through Windows Remote Desktop Ubuntu Linux.
xrdp installation configuration
Open a terminal: click Install
sudo apt-get install xrdp
sudo apt-get install vnc4server tightvncserver
Setting xrdp
echo "gnome-session --session = gnome-classic"> ~ / .xsession
The role of the command is due to install gnome desktop, ubuntu12.04 coexist in unity, GNOME multiple desktop manager needs to specify a start time, or
Even after a successful remote login authentication, only the background.
xrdp configuration files in xrdp.ini and sesman.in / etc / xrdp directory, usually selected by default.
Restart xrdp
sudo /etc/init.d/xrdp restart
Running Windows mstsc
That windows remote desktop, open the input remote Ip, connection, enter the user password to the remote linux.
Error encountered
1, xrdp access ubuntu only see the background, see the solution not the menu bar
Method: Install the gnome-panel
sudo apt-get install gnome-panel
2, Failed to load session "gnome"
Desktop try with ubuntu-2d
Type the command: echo "gnome-session -session = ubuntu-2d"> ~ / .xsession, and then restart xrdp.
3, an error occurs:
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to sesman
login successful for display 14
started connecting
connecting to 127.0.0.1 5914
error - problem connecting
xrdp-sesman.log the error is:
[INFO] starting Xvnc session ...
[ERROR] X server for display 10 startup timeout [INFO] starting xrdp-sessvc - xpid = 2924 - wmpid = 2923
[ERROR] X server for display 10 startup timeout
[ERROR] another Xserver is already active on display 10
[DEBUG] aborting connection ...
If you have a similar log X server for display 10 startup timeout and another Xserver is already active on display 10
Root of the problem is that tightvnc, problems with version X font conflict, resulting connection Xserver error.
Solution:
apt-get purge tightvnc xrdp
apt-get install tightvncserver xrdp
At last:
Start xrdp service, sudo /etc/init.d/xrdp restart, this time will enable the appropriate port configuration default.
Command: netstat -tnl
See 335,033,895,910 three ports in LISTEN, generally no problem.
dpkg -L + package name, you can know what files this package contains.
4, ubuntu 13.10 and later No background:
Thanks for program review of children's shoes asked:
xrdp not support 13.10 gnome, the solution is to install a xfce interface,
sudo apt-get install xubuntu-desktop
then:
echo xfce4-session> ~ / .xsession
And then set up a profile
sudo gedit /etc/xrdp/startwm.sh
In. / Etc / X11 / Xsession front row insert
xfce4-session
Restart xrdp
sudo service xrdp restart |
|
|
|