This article: https://aws.amazon.com/blogs/compute/de ... instances/
says to follow the below package installs. Would these work for our Debian Bullseye?
Code: Select all
Add 32-bit library support in apt-get by entering the following command:
sudo dpkg --add-architecture i386
Update and Install the MATE Desktop and Kernel modules extra:
sudo apt update && sudo apt upgrade -y && sudo apt install python3-pip -y
sudo pip3 install awscli
If the kernel is upgraded, then sudo reboot and continue with the install.
Download and install the AMD Radeon Driver and extract the installer.
aws s3 cp --recursive s3://ec2-amd-linux-drivers/latest/ .
At the time of writing, the current supported driver is amdgpu-pro-20.20-1184451-ubuntu-18.04.tar.xz . The full stack includes the base kernel, accelerated graphics, Mesa, AMD Pro OpenGL, AMD Pro Vulkan and AMD Pro OpenCL can be installed with the following commands:
tar -xvf amdgpu-pro-20.20-1171946-ubuntu-18.04.tar.xz && \
cd amdgpu-pro-20.20-1171946-ubuntu-18.04 && \
cat RPM-GPG-KEY-amdgpu | sudo apt-key add - && \
./amdgpu-pro-install -y --opencl=pal,legacy
Install the MATE Desktop:
sudo apt install xorg-dev ubuntu-mate-desktop linux-modules-extra-$(uname -r) autoconf -y && \
sudo apt purge ifupdown -y
Create an /etc/X11/xorg.conf file with the following contents:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
ModulePath "/opt/amdgpu/lib64/xorg/modules/drivers"
ModulePath "/opt/amdgpu/lib/xorg/modules"
ModulePath "/opt/amdgpu-pro/lib/xorg/modules/extensions"
ModulePath "/opt/amdgpu-pro/lib64/xorg/modules/extensions"
ModulePath "/usr/lib64/xorg/modules"
ModulePath "/usr/lib/xorg/modules"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
EndSection
Section "Device"
Identifier "Device0"
Driver "amdgpu"
VendorName "AMD"
BoardName "Radeon MxGPU V520"
BusID "PCI:0:30:0"
EndSection
Section "Extensions"
Option "DPMS" "Disable"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
SubSection "Display"
Virtual 3840 2160
Depth 32
EndSubSection
EndSection
Next install NICE DCV Server 2020:
wget https://d1uj6qtbmh3dt5.cloudfront.net/2020.2/Servers/nice-dcv-2020.2-9662-ubuntu1804-x86_64.tgz
tar -xvf nice-dcv* && \
cd nice-dcv-2020.2-9662-ubuntu1804-x86_64 && \
sudo apt install ./nice-dcv* -y && sudo apt install -f
Ensure that your security groups allow TCP/UDP:8443. Optionally, configure the NICE DCV server accordingly, with an automatic console session startup owned by the “ubuntu” user. Do this by editing the /etc/dcv/dcv.conf file. The following parameters can be used.
create-session = true
owner = "ubuntu"
target-fps = 0
enable-quic-frontend = true
Reboot the instance. On the NICE DCV client, connect to your instance.