Install Chrome RDP on Debian 10


What Is Chrome Remote Desktop/RDP


Chrome Remote Desktop is a remote desktop software tool developed by Google that allows a user to remotely control another computer through a proprietary protocol developed by Google unofficially called “Chromoting”. Remote Desktop Protocol ( RDP) is a proprietary protocol developed by Microsoft, which provides a user with a graphical interface to connect to another computer over a network connection. Remote desktop is a program or an operating system feature that allows a user to connect to a computer in another location, see that computer’s desktop and interact with it as if it were local. People use remote desktop access capabilities to do a variety of things, including the following: Access a workplace computer from home or when traveling. In this tutorial, we will learn how to set up a remote desktop for use with Googles platforms on a VPS or VDS.


Before you begin this guide, you’ll need the following:
  • A Virtual Server with at least 2GB RAM and 50GB Storage
  • Debian 10 OS
  • A Google Account (Make sure you are signed in)

Install Debian 10 And Log In As Root

You can select the Debian 10 OS option when purchasing a virtual server or reinstalling your OS. To log into your server, you will need to know your server’s public IP address. You will also need the password or, if you installed an SSH key for authentication, the private key for the root user’s account.
ssh [email protected]your_server_ip

Create The RDP Script And Make It Executable

Once you are logged in as root, we can go ahead and add the script to install Googles remote desktop. This script will also update and upgrade all packages as well as add a priviledged user so an initial server set up is not required.
  • Open a text editor with the new filename you wish to use. In this example, we will call it
[email protected]:~#nano
  • Insert the following script. Be sure to replace Port443-Client with the username you wish to use and to change the default password.
#! /bin/bash
printf "Installing Google RDP Script. Please Be Patient while this process completes. Your packages will be updated and upgraded during this time..... " >&2
useradd -m Port443-Client
adduser Port443-Client sudo
echo 'Port443-Client:haU76N!.UA.HA!' | sudo chpasswd
sed -i 's/\/bin\/sh/\/bin\/bash/g' /etc/passwd
apt-get update
dpkg --install chrome-remote-desktop_current_amd64.deb
apt install --assume-yes --fix-broken
DEBIAN_FRONTEND=noninteractive \
apt install --assume-yes xfce4 desktop-base
bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'
apt install --assume-yes xscreensaver
systemctl disable lightdm.service
dpkg --install google-chrome-stable_current_amd64.deb
apt install --assume-yes --fix-broken
apt install nautilus nano -y
adduser Port443-Client chrome-remote-desktop
} &> /dev/null &&
printf "\nSetup Complete " >&2 ||
printf "\nError Occured " >&2
printf '\nPlease visit  to authorize this rdp session. Copy the command for Debian Linux and then paste it below\n'
read -p "Paste Here: " CRP
su - Port443-Client -c """$CRP"""
printf 'Now, please visit \n\n'
if sudo apt-get upgrade &> /dev/null
printf "\n\nUpgrade Completed. Please proceed to your Google "access" dashboard to access your Remote Desktop " >&2
printf "\n\nNo Upgrade Available. Please proceed to your Google "access" dashboard to access your Remote Desktop " >&2
  • We now need to make the file executable and then run the script. This default script will create a user called Port443-Client, it is advised to change the user and the password.
    [email protected]:~#chmod +x
    [email protected]:~#./
The script will now begin preparing your remote desktop and may take some time depending on your network speed.

Connect To Your Google Account

The installation process will now request that you visit the google link to authorize your access. Be sure to copy the command for Debian Linux and paste it where requested. You are then requested to enter a PIN for your remote session. Enter this twice. Once done, the installation will complete and the access link will be provided. Following this link will now display your newly created remote desktop with the hostname of VPS. You can now use and customize your remote desktop as you wish.

Couldn’t start host: OAuth error

If you encounter this error, it means your Debian Linux code obtained from “headless” has expired.
To rectify,  connect your google account again closing all previous pages opened.

Translate »

Enjoy this blog? Please spread the word :)