Skip to content

Instantly share code, notes, and snippets.

@d3netxer
Last active March 26, 2019 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3netxer/635134e1cc6c54f7937909b613e035a2 to your computer and use it in GitHub Desktop.
Save d3netxer/635134e1cc6c54f7937909b613e035a2 to your computer and use it in GitHub Desktop.

Deploying a 4x4K, GPU-backed Linux desktop instance on AWS

Follow this blog:

(AWS Compute Blog) Deploying a 4x4K, GPU-backed Linux desktop instance on AWS https://aws.amazon.com/blogs/compute/deploying-4k-gpu-backed-linux-desktop-instance-on-aws/

note: check for newer versions of the NVIDIA Grid drivers than what is in the blog.

Tips: Don't worry, installing CentOS 7 minimal will not have an additional cost in AWS (https://aws.amazon.com/marketplace/pp/B00O7WM7QW?qid=1528131387105&sr=0-1&ref_=srh_res_product_title#pdp-pricing)

Installing NICE DCV

As part of the installation instructions in the blog above, it mentions installing NICE DCV platform, which AWS provides for free. DCV is an accelerated remote desktop framework that provides in-web browser desktop connections. DCV is supported in both Windows and Linux (RHEL/CentOS).

Using NICE DCV involves installing it on the server (see the NICE DCV Desktop Admin Guide: https://docs.aws.amazon.com/dcv/latest/adminguide/dcv-ag.pdf), as well as connecting to it as the client (see the NICE DCV Desktop User Guide: https://docs.aws.amazon.com/dcv/latest/userguide/dcv-ug.pdf).

-For the NICE DCV Server software, install the Linux NICE DCV 2017.3 Server (EL7) software

-For the NICE DCV Client software, I recommend installing the NICE DCV 2017.3 Client software. After you install and launch the software, you will log in using the IP address of the AWS instance and the password. Then you will log into the OS by using the centos username and password.

Install QGIS on Centos 7

Unfortunately the QGIS version is only 2.14

  1. Install a GUI Desktop
yum groupinstall "GNOME Desktop"
  1. Install QGIS+Python Support and supporting packages
yum install qgis qgis-python python-devel PyQt4-webkit proj-devel geos-devel sqlite-devel gcc
  1. Python Requirement: Python 2.7 comes standard in CentOS 7
  2. Install pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
  1. Install pyspatialite (including /usr/include libraries)
CFLAGS=-I/usr/include pip install pyspatialite

source: https://gis.stackexchange.com/questions/121290/installing-qgis-on-centos-7

Install Latest version of QGIS

Followed these directions to build GDAL: https://trac.osgeo.org/gdal/wiki/BuildingOnUnix

configured with opencl

./configure --with-opencl=YES

after I set the LD_LIBRARY_PATH, the gdalinfo command showed GDAL as the latest version. However, using the 'watch nvidia-smi' command and a gdal command, OpenCL does not appear to be utilized.

sudo gdalwarp -t_srs EPSG:3395 -r lanczos -wo SOURCE_EXTRA=1000 -wo USE_OPENCL=TRUE nouakchott_test_R1C1.tif output/nouakchott_test_R1C1_3395_2.tif

Install Aspera Connect

user guide: http://download.asperasoft.com/download/docs/connect/2.3/aspera-connect-linux.html#installation

Benchmark GPU

downloaded and installed Unigine Heaven: https://benchmark.unigine.com/heaven?lang=en

Userful Commands Once Server is Deployed

list sessions:

sudo dcv list-sessions

example of creating a new sessions:

sudo dcv create-session --type=console --owner centos session1

example of closing a session:

 sudo dcv close-session session1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment