1: Generally, an ssh client is installed on a windows system to connect to a Linux server remotely, and it is easy to transfer files. (Note: the file path cannot have parentheses, spaces, etc., or erro will appear). But if you want to use a graphical interface on a Linux server, ssh cannot do it. At this time, you can directly connect to the Linux server by using Windows Remote Desktop by installing xrdp.
method: (1) Install a new desktop xubuntu-desktop: Since the unity desktop that comes with the ubuntu system does not support remote desktop connections, the first step is to install another desktop environment such as xubuntu-desktop, and enter it in the SSH terminal command window : Sudo apt-get install xubuntu-desktop
(4) Remove the Unity desktop: sudo apt-get remove unity
(5) Restart the system, set desktop sharing via vino-preferences, then write the .xsession file, and finally restart the xrdp service:
sudo reboot
vino-preferences
echo xfce4-session> ~ / .xsession
sudo service xrdp restart
Note: 1) After the above steps, you can usually directly connect to the Linux server using Windows Remote Desktop. But you may find that other users will crash or "snowflake" the desktop when they connect. This is because the .xsession file is missing from the user directory. At this point, you only need to copy the .xsession (note: the file name is not missing ".") When copying to its account: sudo cp .xsession / home / (user name folder ).
2: How does the xrdp remote login interface display the port option so that after logging out of the server, you can enter the previous login interface next time?
Need to modify the xrdp.ini file to show the port options
The code snippet in the xrdp.ini file:
[xrdp1]
name = sesman-Xvnc
lib = libvnc.so
username = ask
password = ask
ip = 127.0.0.1
port = -1
change into:
[xrdp1]
name = sesman-Xvnc
lib = libvnc.so
username = ask
password = ask
ip = 127.0.0.1
port = ask-1
3, solve the password failed
(1) Enter / etc / xrdp and modify the sesman.ini file:
1) cd / etc / xrdp
2) ls
(ls view all files in this folder
3) sudo vim sesman.ini
Put sesman.ini the following
Change to
4) ESC enters command mode: wq saves the file and exits vim
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.