Install ubuntu desktop on AWS instance with Chrome Remote Desktop

  1. Logon to AWS console and launch an instance using the ubuntu server AMI.
$ sudo apt update
$ sudo apt-get install --assume-yes wget
$ wget
$ sudo dpkg --install chrome-remote-desktop_current_amd64.deb
$ sudo apt install --assume-yes --fix-broken
$ sudo DEBIAN_FRONTEND=noninteractive apt install --assume-yes xfce4 desktop-base
$ sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'
$ sudo apt install --assume-yes xscreensaver
$ sudo systemctl disable lightdm.service
$ sudo usermod -a -G chrome-remote-desktop $USER
$ logout
DISPLAY= /opt/google/chrome-remote-desktop/start-host \
--code="4/xxxxxxxxxxxxxxxxxxxxxxxx" \
--redirect-url="" \



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Victor Leung

Victor Leung


I’m a keen traveler to see every country in the world, passionate about cutting edge technologies.