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.
sudo apt-get install xrdp
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.
Install xfce4
This software is relatively large, and the internet speed is only a few minutes.
sudo apt-get install xubuntu-desktop
echo "xfce4-session" >~/.xsession
sudo vi /etc/xrdp/startwm.sh
in/etc/X11/Insert the previous line of Xsession
xfce4-session
sudo service xrdp restart
$ 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
~ $ 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="<Super>Tab" type="empty"/>---><property name="<Super>Tab" type="string" value="switch_window_key"/>
Recommended Posts