Ubuntu 22.04 3D Workstation in AWS
Table of Contents
This is a guide to setting up a 3D workstation in the cloud with Ubuntu 22.04 Linux for running application like Blender, Maya, Nuke, etc…
I also have a dedicated guide for Rocky 9 here if Ubuntu is not your thing.
Prerequisites⌗
This guide assumes you already have an EC2 instance with an Nvidia GPU running Ubuntu 20.04 or higher.
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.
Install the AWS CLI. We will need it later for downloading software from S3.
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⌗
Nice DCV only supports GDM so regardless of your chosen desktop environment GDM needs to be used for login.
Currently Nvidia and Nice 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
Others
There are many other great desktop enviornments out there so don’t be affraid to experiment!
Here is a guide on installing the Pantheon desktop enviornment from Elementary OS. If you are looking for a more Apple Mac like experience on Linux give it a try.
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.
Nice DCV Installation⌗
First we need to download Nice DCV by going to the Nice DCV website and grabbing the download URL.
Then use wget
command to download Nice 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 Nice 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 Nice DCV.
Autostart DCV console session as current user.
Add the dcv user to the video group.
Start the Nice 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 Nice 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!