Ubuntu 24.04 3D Workstation in AWS
Table of Contents
An updated version of my old Ubuntu workstation on AWS guide, focusing on Ubuntu 24.04 running on a g6 EC2 instance.
Prerequisites⌗
This guide assumes you already have an EC2 instance with an Nvidia GPU running Ubuntu 24.04.
Getting started⌗
Update the system.
Note: It’s a good idea to give the system a reboot after the update so it can load any kernel updates.
Desktop Environment Installation⌗
Next step is installing a desktop environment. This is the hardest part of the set up, not because it’s difficult but you have to choose which desktop environment you want to use.
Installing GDM⌗
Amazon DCV only supports GDM so regardless of your chosen desktop environment GDM needs to be used for login.
Currently Nvidia and Amazon DCV don’t fully support Wayland so we need to disable it in GDM.
Installing a Desktop Environment⌗
Gnome
MATE
Make sure to select gdm3 as the default display manager.
KDE
Nvidia drivers⌗
Disable the Nouveau open source driver so it can’t conflict with the proprietary Nvidia driver.
Install dependencies⌗
Install DKMS so the driver doesn’t break every time the kernel is updated.
Some 3D graphics software requires libglvnd to work, so lets install it so it can be enabled in the driver.
Install build tools + headers to compile the driver kennel module
Download Nvidia driver⌗
There are a few options for getting the Nvidia driver. You can download directly from Nvidia’s website, however this might not always work depending on the instance type you are using. The best option is to get the driver direct from AWS, that way you know it will work correctly with EC2.
Here is a guide to downloading the driver direct from AWS
Install Nvidia driver⌗
Enable multiple-monitor support.
Amazon DCV Installation⌗
Note: Amaozon DCV was formally known as Nice DCV and may still have the old name in places
First we need to download Amazon DCV by going to the https://www.amazondcv.com/ and grabbing the download URL.
Then use wget
command to download Amazon DCV from the URL we got from the website like below.
Extract the tar file.
Change into the extracted directory using cd
.
Install all the components for the Amazon DCV server.
Install USB drivers.
When asked if you want to install the USB kernel module choose yes by pressing y then enter.
Do you want to install the kernel module and enable USB remotization? [y|n]
Make sure to use DKMS pressing y then enter.
Do you want to use DKMS to install the kernel module? [y|n]
Install pulseaudio-utils for audio support.
If the firewall is enabled add the following rules to allow Amazon DCV.
Autostart DCV console session as current user.
Add the dcv user to the video group.
Start the Amazon DCV Server service.
Set the system to boot into graphical mode.
Login⌗
Don’t forget to set a password so you can log in.
Give the system one final reboot. Once started back up you can remote in using Amazon DCV and use the system.
Optional extras⌗
App store stuff
I find Ubuntu’s snaps to be slow and there are less options for apps. So I like to add flatpaks for more apps!