Win10-> Ubuntu Remote Desktop (2021 version)

Overview

Leave the following two ways to access the Ubuntu 18.04 desktop from Win10. Especially in Windows, I can't explain to the company in the worst case due to a virus, so I don't use a third-party VNC Viewer. Therefore, xRDP is an option.

  1. xRDP + Windows remote desktop function advantage: Can be connected with standard functions of Windows 10 Pro safety

  2. Chrome Remote Desktop advantage: It can be realized only by extending the function of Chrome regardless of OS Remote connection is possible anywhere if you connect to the Internet!

--Implementation time: January 2021

1. xRDP + Windows remote desktop function

There are some Japanese sites about xRDP installation, but none of them are good Even if I connect remotely, the screen remains green (https://askubuntu.com/questions/1166568/remote-desktop-blue-screen-after-login), or the mouse / keyboard is not recognized ... I found the following god site by looking at my painful eyes

xRDP – Easy install xRDP on Ubuntu 16.04,18.04,20.04,20.10

The reason I'm god is that I constantly update the script with user feedback. Japanese sites, including my blog, are almost left as they are written, so I have to be sensitive at least when they were written.

Work on the Ubuntu side

If you're already browsing various sites and it doesn't work and pollutes your Ubuntu environment, it's a good idea to start by reinstalling Ubuntu. It's a god script, but it may not work if Ubuntu is dirty. Also, start ssh just in case.

sudo apt install openssh-server
sudo systemctl  start ssh

First, read the above God site carefully and do it at your own risk.

Then download the script below to Downloads Of course, the version numbers are not necessarily the following, so read them individually. xrdp-installer-1.2.2.zip

Unzip and run. The installation applies to all logged-in users registered on Ubuntu.

cd Downloads
unzip xrdp-installer-1.2.2.zip
chmod +x  ~/Downloads/xrdp-installer-1.2.2.sh
./xrdp-installer-1.2.2.sh

The shell offers the following options:

--'-h': Help --'-s': Transfer sound remotely --'-l': Login screen customization --'-r': Uninstall (remove the package installed using this script) --'-c': Compile and install the original source on GitHub

If there is no option, the installation will be completed in 10 to 20 seconds. What's great is that the scripts automatically correspond to the major Ubuntu versions. The completeness of the script is very high.

Work on the Windows 10 Pro side

Win10 Home has no remote desktop function, so it must be Pro. Before connecting to the remote desktop, the user must not be logged in on the Ubuntu PC. You can log in as another user Launch Remote Desktop and enter the Ubuntu IP address. Then, Ubuntu will ask you to enter login authentication, so enter the user name and password.

image.png

To disconnect the remote connection, log off the user from the power icon in the upper right corner of Ubuntu.

that's all

  1. Chrome Remote Desktop There are also some Japanese sites, but at least the ones written in the 2018s are not the current ones. It seems that there is no problem now even if you do not edit/opt/google/chrome-remote-desktop/chrome-remote-desktop that was necessary at that time.

Below, it is assumed that the latest version of Chrome is installed on both Ubuntu and Win10, and you are logged in with your Google account. In addition, when connecting to the Internet from wherever you are, you need to be careful about communication charges.

Work on the Ubuntu side

Access the following and press "Install". https://remotedesktop.google.com/access image.png Press "Install". image.png Another window opens. image.png Press the down arrow to save the following in Downloads. chrome-remote-desktop_current_amd64.deb Press "Agree and install". image.png Press "Yes". image.png It is finally installed by pressing "Install" for the fourth time. image.png When the installation is completed and the screen returns to the original screen, nothing progresses in the state shown below. image.png

This window is closed once.

If you access the following again, the following figure will appear and you will not be able to go to the computer name and PIN setting screen. https://remotedesktop.google.com/access image.png Investigate and find a solution below https://gist.github.com/organizm/ae09f72bd5badc64d4727a0d38fc590b Need the following command to add the path

mkdir ~/.config/chrome-remote-desktop

After entering the above magic command, if you access https: //.../ access again, you will be able to set the name and PIN of your computer, and you will be able to access it remotely from Chrome on another computer.

Note: Google has left this bug for over a year, but there is a possibility that it will be addressed, so there is no guarantee that this magic command will work in the future.

Work on the Windows 10 side

This is a browser-based remote connection, so the Edition can be Home or Pro. Just launch Chrome and install Chrome Remote Desktop for your extensions. After installation, of course, set the name and PIN of the PC for remote access to this Win10 PC. Details omitted

that's all

Recommended Posts

Win10-> Ubuntu Remote Desktop (2021 version)
Japanese input on Ubuntu20.04 Desktop
Install Ubuntu Desktop 20.10 on RaspberryPi4
ROS installation Ubuntu compatible version
Ubuntu Desktop upgrade from 18.0.4 (?) To 20.04.1 (focal)
Google chrome is not maximized correctly on Ubuntu 16.04 (remote desktop is also not displayed correctly)