Windows Remote Connection linux-install the Xfce interface, UBUNTN add new users

Source: Internet
Author: User
Tags windows remote desktop mstsc

Reference:"Using XRDP to implement Windows Remote Desktop Connection Linux" http://blog.csdn.net/qq_33530388/article/details/64502902; Http://www.linuxidc.com/Linux/2017-04/142690.htm

I have been using MSTSC to connect to the Windows host, and today I would like to use this to connect to the Linux host, I find the connection is not ~!! ~

You don't have a server, but you want to connect your laptop's Linux system remotely with Windows desktops, Notebook computer is the ubuntn16.04 system, the first to add a new user on the system, if not added, the use of administrator identity is also possible, but when the remote connection is found and cannot connect, the screen is black.

Add a new user under Ubuntn

In some cases, Ubuntu uses the useradd new user name, and the newly created user folder is not visible under the home folder, for example:

[Email protected]:/home/kuku# useradd Spark

[Email protected]:/home/kuku# passwd Spark

Enter New UNIX Password:

Retype new UNIX Password:

Passwd:password updated successfully

[Email protected]:/home/kuku# CD.

[Email protected]:/home# ls Kuku

[Email protected]:/home#

Discover that the Spark folder is not found, so it will be re-established in the following way

First remove the Spark user

[Email protected]:/home# Userdel Spark

[Email protected]:/home# useradd-r-m-s/bin/bash Spark

[Email protected]:/home# passwd Spark

Enter New UNIX Password:

Retype new UNIX Password:

Passwd:password updated successfully

[email protected]:/home# ls Kuku spark

[Email protected]:/home#

You can see that a new folder has now been created

If you want to add root permissions to a new user,

[Email Protected]:/home#chmod +w/etc/sudoers
[Email protected]:/home# vim/etc/sudoers

Then save!

If you want to delete a user,
[Email protected]:/home# userdel-r Spark

XRDP Installation Configuration method

Open Terminal: Install in sequence

sudo apt-get install xrdpsudo apt-get install vnc4server tightvncserver
Set XRDP

echo "Gnome-session--session=gnome-classic" > ~/.xsession

The role of this command is due to the installation of the GNOME desktop, there is also unity in ubuntu12.04, Gnome multiple desktop manager, need to start the time to specify one, or even if the remote login verification succeeds, is only the background.

XRDP configuration documents are Xrdp.ini and sesman.in in the/ETC/XRDP directory and are generally selected by default.

Restart xrdp
sudo /etc/init.d/xrdp restart
mstsc that runs Windows



That is, Windows Remote Desktop, open the input remote IP, connect, enter the user password can be remote Linux.

Problems encountered

XRDP can't support 16.04 gnome, the solution is to install a XFCE interface,
sudo apt-get install xubuntu-desktop
And then:
echo xfce4-session >~/.xsession

Set up the configuration file again
sudo gedit /etc/xrdp/startwm.sh
Insert in front of the./etc/x11/xsession Line
xfce4-session
Restart XRDP
sudo service xrdp restart

Windows Remote Connection linux-install the Xfce interface, UBUNTN add new users

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.