[Linux Mint 20] Remote desktop connection / connection

I set up two PCs, Windows 10 Pro and Linux Mint, to connect to each other by remote desktop.

Mint "from" remote desktop

First, when connecting to a remote desktop from Mint to Windows.

Installation

"Remmina" was already installed on Ubuntu 18.04 LTS, but it was not included on Linux Mint 20, so I installed it myself.

For CUI, execute the following command. Select "Remmina" if you want to enter from the GUI "Software Management", or "Remmina (Flathub)" if the latest version is good.

$ sudo apt install remmina
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
The following additional packages will be installed:
  libavahi-ui-gtk3-0 libfreerdp-client2-2 libfreerdp2-2 libvncclient1
  libwinpr2-2 remmina-common remmina-plugin-rdp remmina-plugin-secret
  remmina-plugin-vnc
Suggested package:
  freerdp2-x11 remmina-plugin-exec remmina-plugin-kwallet remmina-plugin-nx
  remmina-plugin-spice remmina-plugin-www remmina-plugin-xdmcp
The following packages will be newly installed:
  libavahi-ui-gtk3-0 libfreerdp-client2-2 libfreerdp2-2 libvncclient1
  libwinpr2-2 remmina remmina-common remmina-plugin-rdp remmina-plugin-secret
  remmina-plugin-vnc
upgrade:0 pieces, new installation:10 deleted:0 pieces, pending:0 pieces.
4,Need to get 522 kB of archives.
Additional 19 after this operation.It consumes 5 MB of disk space.
:
$

In addition to Remmina related libraries, RDP and VNC plugins have also been added automatically.

Connection

Start "m mark at the bottom right"-> "Internet"-> "Remmina" on the desktop screen.

qiita_20201115_1.png

When connecting to Windows, select "RDP", enter the IP address, and if the login screen is displayed, the connection is OK. qiita_20201115_4.png

After that, enter the Windows user password and press "OK" to complete the login to Windows. qiita_20201115_3.png

Mint "to" remote desktop

On the contrary, xrdp is required when getting into Mint from Windows etc. with remote desktop.

Installation

For CUI, select the following command, and for GUI "Software Management", select "xrdp".

$ sudo apt install xrdp
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
The following additional packages will be installed:
  xorgxrdp
Suggested package:
  guacamole xrdp-pulseaudio-installer
The following packages will be newly installed:
  xorgxrdp xrdp
upgrade:0 pieces, new installation:2 deleted:0 pieces, pending:0 pieces.
Need to get 0 B of archives out of 488 kB.
Additional 3 after this operation,It consumes 212 kB of disk space.
Do you want to continue? [Y/n]
:

"Xorg xrdp" was installed in addition to "xrdp". "Xorg xrdp" was additionally installed in the GUI, but if it doesn't, add it.

setting change

After installation, change and save the following 2 files. It seems that there are other parts to play with, but first set it so that it does not interfere with the remote connection.

$ sudo nano /etc/xrdp/xrdp.ini

---
:
new_cursors=false ← ★ Change "true" to "false"
:
---
$ sudo nano /etc/xrdp/startwm.sh 
---
:
unset DBUS_SESSION_BUS_ADDRESS ← ★ added
exec cinnamon-session ← ★ Added

test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

---

After saving, restart "xrdp". OK if it is "Active (running)".

$sudo systemctl restart xrdp ← ★ restart
$sudo systemctl status xrdp ← ★ Confirmation
● xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-11-13 13:30:25 JST; 3s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
:

Connection

Enter the IP address on the Mint side in "Remote Desktop Connection" of Windows to connect, and if the following xrdp login screen is displayed, the connection is OK.

qiita_20201115_2.jpg

After that, enter the user password on the Mint side and press OK to complete the login to Mint.

qiita_20201115_5.png

If you can't connect

I doubt the following.

Mint "from"

-Is the package enough? (Remmina plugin, etc.) --Is the IP address or host name of the connection destination correct? --Is the firewall on the Windows side open? (I got a little fit) -Is the user password wrong? (Are you messing up?) ――Isn't it actually Windows 10 Home Edition? (Home standard does not have RDP host function)

Mint "to"

--Is Mint's IP address or host name correct? --Is the xrdp service running? (Check with systemctl status xrdp) --If the firewall on the Mint side is set, is the port open? (Default is 3389) -Is the user password wrong? (Are you messing up?)

Miscellaneous feelings

――You won't be remote desktop at home, but it will be useful in case something goes wrong. After all, Mint's PC has a lot of liquid crystal, so it's okay if it disappears at any time ... --Since remote connection is confirmed at the trial level, there may be other parameters that should be set. --The following command to check the package dependencies. It seems that "recommended" as well as "dependency" will be additionally installed.

$ apt-cache depends remmina
remmina
Dependence: libappindicator3-1
Dependence: libavahi-client3
Dependence: libavahi-common3
Dependence: libavahi-ui-gtk3-0
Dependence: libc6
Dependence: libcairo2
Dependence: libgcrypt20
Dependence: libglib2.0-0
Dependence: libgtk-3-0
Dependence: libjson-glib-1.0-0
Dependence: libpango-1.0-0
Dependence: libsodium23
Dependence: libsoup2.4-1
Dependence: libssh-4
Dependence: libssl1.1
Dependence: libvte-2.91-0
Dependence: remmina-common
 |Dependence: <default-dbus-session-bus>
    dbus-user-session:i386
    dbus-user-session
Dependence: <dbus-session-bus>
    dbus-user-session:i386
    dbus-user-session
    dbus-x11:i386
    dbus-x11
Recommendation: remmina-plugin-rdp
Recommendation: remmina-plugin-vnc
Recommendation: remmina-plugin-secret
Suggestion: remmina-plugin-exec
Suggestion: remmina-plugin-kwallet
Suggestion: remmina-plugin-nx
Suggestion: remmina-plugin-spice
Suggestion: remmina-plugin-www
Suggestion: remmina-plugin-xdmcp
$

reference

I tried setting xrdp on Linux Mint 20.x for remote desktop from Windows http://blog.livedoor.jp/shoeberry/archives/52341423.html

Recommended Posts

[Linux Mint 20] Remote desktop connection / connection
Use Chrome Remote Desktop on Linux
Connect to GNU / Linux with Remote Desktop
Linux mint installation procedure
[CentOS 7.7] From desktop environment installation to remote desktop connection possible (from minimum installation)
Use Github Desktop on Linux
Elixir = Comfortable on Linux Mint
Introducing Elixir on Linux Mint
Install CUDA on Linux Mint Mate 20
[Linux Mint 20] Various WiFi confirmation commands
Remote debugging in Visual Studio (Linux)