Connect to GNU / Linux with Remote Desktop

Introduction

GNU / Linux was basically used with CUI without a desktop environment.

However, recently, I often find it convenient to be able to connect to a GUI GNU / Linux environment by remote desktop, so I made a note of how to do it.

Environmental setting

Use xrdp.

Package installation

sudo apt install xrdp lxde

Edit configuration file

Edit /etc/xrdp/xrdp.ini.

[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20

Comment out sections other than Xorg.

Specify session

Specified in ~ / .xsession.

cinnamon-session

Disable encryption

Measures for this.

gsettings set org.gnome.Vino require-encryption false

Service start

sudo service xrdp restart

Open port

Change iptables to open port 3389.

Done

If successful, it will look like this.

1.png

Since I often remote desktop to another Windows environment, it is convenient to be able to connect to GNU / Linux with the same glue.

It is assumed to be used in a LAN.

Recommended Posts

Connect to GNU / Linux with Remote Desktop
Connect to BigQuery with Python
Connect to Wikipedia with Python
Connect to Postgresql with GO
[Linux Mint 20] Remote desktop connection / connection
Connect to multiple databases with SQLAlchemy
Connect to Bitcoin Testnet with Pycoin
Connect to Elastic MQ with boto
Use Chrome Remote Desktop on Linux
Connect to MySQL with Python within Docker
How to power off Linux with Ultra96-V2
Connect to s3 with AWS Lambda Python
Connect to pepper with PEPPER Mac's python interpreter
How to use SQLAlchemy / Connect with aiomysql
How to get started with laravel (Linux)
Gusto cannot connect to Wifi on Linux
Log in to the remote server with SSH
[Linux] Introduction to Linux
Connect to mysql
Easily connect Xillybus to user logic with cReComp
I tried to operate Linux with Discord Bot
Back up from QNAP to Linux with rsync
How to make Linux compatible with Japanese keyboard
Connect to MySQL with Python on Raspberry Pi
Yum command to access MySQL with Python 3 on Linux
Introducing a desktop environment to Arch Linux (LightDM + Xfce4)
What I did to get started with Linux commands
Ssh to virtual environment with remote development of vscode
ODBC access to SQL Server from Linux with Python
Convert 202003 to 2020-03 with pandas
Linux (Lubuntu) with OneMix3S
Linux commands to remember
linux with termux app
Connect python to mysql
[CentOS 7.7] From desktop environment installation to remote desktop connection possible (from minimum installation)
Problems with Chrome after suspending on Linux desktop KDE + Nvidia
screen and split screen with python and ssh login to remote server
[Linux] Copy data from Linux to Windows with a shell script
[Linux] How to deal with garbled characters when viewing files
Connect to centos6 on virtualbox with ssh connection from Mac
Connect the Jupyter Notebook kernel to Spyder with Jupytext enabled
Connect to KUINS-III (Kyoto University VPN) from Linux using PPTP
Connect to KUINS-III (Kyoto University VPN) from Linux using IKEv2
Connect Raspberry Pi to Alibaba Cloud IoT Platform with Python