Windows remote connection to Ubuntu 16.4 desktop

Remotely connect to Ubuntu 16.4 desktop

There are not many scenarios for this. After all, the natural advantage of Linux is CLI, but some software requires user interface software to operate, such as Android studio, which requires such things. Therefore, a remote desktop is needed, and the use of the GUI software becomes very important.

I have searched a lot of tutorials on the Internet, but there is no complete tutorial. Either the one used is not connected, or some tutorials are scattered. Therefore, I will give a pen to summarize how to configure through the command line.

step##

  1. Install xrdp
sudo apt-get install xrdp
  1. Install vnc4server
    For the release version of Ubuntu, vnc4server is already installed, so we don't need to install it manually. If it is another version, you need to install it manually.

  2. Install xfce4
    This software is relatively large, and the internet speed is only a few minutes.

sudo apt-get install xubuntu-desktop
  1. Configure xfce4
    Create a .xsession file and write the content.
    echo "xfce4-session" >~/.xsession
  2. Continue to configure xfce4
sudo vi /etc/xrdp/startwm.sh
in/etc/X11/Insert the previous line of Xsession
xfce4-session
  1. Restart xrdp
    sudo service xrdp restart
  2. After the configuration is successful, you can access the program mstsc.exe through the windows remote desktop. This program is searched in the start, and it can actually pop up, which is a monitor icon. Enter your Linux username and password to access.

$ cat /etc/xrdp/startwm.sh
#! /bin/sh

if[-r /etc/default/locale ]; then
 . /etc/default/locale
 export LANG LANGUAGE
fi

xfce4-session #Newly added
. /etc/X11/Xsession
  1. Configure auto-completion
~ $ diff ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml_bak 
118 c118
<< property name="&lt;Super&gt;Tab" type="empty"/>---><property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>

Recommended Posts

Windows remote connection to Ubuntu 16.4 desktop
Remote connection to Ubuntu 19.1
MySQL connected to remote Ubuntu server
Ubuntu adds desktop icons to scripts
windows use ubuntu to start linux service
How to enable Mysql remote access under Ubuntu 14.04
Ubuntu ssh-keygen remote login
How to upgrade to Ubuntu 20.04
21 essential Ubuntu desktop applications
Can Ubuntu replace Windows?
How to upgrade to Ubuntu 20.04
Windows 10 install Linux subsystem Ubuntu
Upgrade Ubuntu 18.04 on Azure to 18.10
Ubuntu Server Chapter 7 Remote Management
ubuntu 16.10 supports ssh remote access
Ubuntu Xfce desktop system settings
Use virtualbox to deploy ubuntu
How to upgrade to Ubuntu 16.04 LTS
ubuntu14.04 sets the desktop to display network speed, cpu information, etc.
How to realize file sharing between Ubuntu and Windows under VMware