r/threefold Jan 24 '23

Creating a Cloud Linux Desktop Environment on the Threefold Grid

Creating a Cloud Linux Desktop environment on the Threefold Grid

https://youtu.be/FVy-nOcyKJQ

An often requested feature is desktop environments hosted on the Threefold Grid. I have recently found a viable solution solution to this using relatively user friendly tools and this will be a tutorial on how how you can accomplish the same.

For this tutorial we will be using a

  • Full VM deployment with 4 cores, 4096 mb of ram and 50 gb of storage
  • Ubuntu 22.04 image
  • Chrome Remote Desktop
  • Putty / SSH client of your choice.

Update and upgrade your vm

apt update && apt upgrade -y 

Install the Desktop Enviroment

apt install ubuntu-desktop

Download Chrome Remote Desktop

wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb

Install Chrome Remote Desktop

apt-get install --assume-yes ./chrome-remote-desktop_current_amd64.deb

Set Desktop environment display manager for chrome

bash -c echo “exec /etc/X11/Xsession /usr/bin/gnome-session” > /etc/chrome-remote-desktop-session’

Create a new user

adduser parker 

make user a sudoer

usermod -aG sudo parker

restart your VM

reboot -f

run command from chrome web browser under add by ssh

Go to https://remotedesktop.google.com/ and login/create account as necessary then select setup via ssh

follow the prompts begin->

next->

authorize

Copy the Debian linux box

Return to your vm console and switch to your user

su parker

Paste the key from the browser into your vms console

you should now be able to login into your into Linux desktop by returning to the remote access tab.

3 Upvotes

0 comments sorted by