Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have a server running Ubuntu Server 16.04, started from stock installation with SSH server. Currently, I have full access to the machine with public key SSH access. Since the machine is running non-critical resources, but I don't have easy physical access to it, I would like a non-SSH method of remote access that doesn't rely on functional upstream port-forwarding or the safety of my local machine(s) with private keys that can access the server. This would enable me to continue to manage the system and verify that it is still operational. The most evident end-to-end solution would be to use Chrome Remote Desktop. However, this seems like it would be a bit of a challenge to get setup.

I have ssh and root access to the server. With the fewest temporarily-needed packages, how can I accomplish:

  1. Installing a minimal desktop environment for Ubuntu that is compatible with Chrome Remote Desktop and provides easy shell access (I'm fairly unconcerned about which one, but it should be appropriate for a system with ancient integrated graphics)?
  2. Installing Google Chrome and its Chrome Remote Desktop app, then configuring them to act as a host (machine to be controlled) for remote access?

Then, will the Chrome Remote Desktop auto-start correctly within the desktop environment upon system reboot?

Is this plan impossible due to some incompatibility or need for physical access?

Note that my desired access requirements preclude the use of VNC or other, more typical remote access programs. The fact that Chrome Remote Desktop 'calls home' to start connections, mediated by Google, is the feature I'm most after. I may consider alternative services in the comments, but please keep answers to the Chrome Remote Desktop method.

4

4 Answers

  1. Install Chrome Remote Desktop.
  2. Get an auth code by going to (note the client ID is from chromium) and once allowed (on the blank page), the authorization will be the code= parameter of the URL.
  3. On the headless machine run:

    $ /opt/google/chrome-remote-desktop/start-host --code="MY_AUTH_CODE" \ --redirect-url= \ --name="MY_REMOTE_NAME"
  4. Pick a PIN and use it to connect later.
6

Go to and follow the instructions. This walks you through the steps you previously had to do manually from Wernight's answer.

2

Chrome Remote Desktop (CRD) requires an X Server even if the machine is headless. This is not a problem. You can use XVRB and XPRA... or other virtualized solutions, but there is not config file options or command line flags to configure CRD.

I think the most straight forward solution would be to first set up remote VNC via the usual suspects a then install/configure CRD.

If VNC really will not work for you, then you could try to script CRD with headless browser tools such as nightmare or webdriver

Google has a good guide for GCE that works for Debian based linux or gives hints what's the steps for the other linux distros.

1- wget 2- sudo dpkg --install chrome-remote-desktop_current_amd64.deb

3- For Xfce desktop:

sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'

4- sudo usermod -a -G chrome-remote-desktop $USER logout

5- Following instructions at

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy