#!/bin/bash -xe # # Usage: # $ chmod +x set-up-nicedcv-centos.sh # $ sudo ./set-up-nicedcv-centos.sh # # after executing this script, you need to set password for user # e.g. # sudo passwd centos # yum -y upgrade --skip-broken --exclude=kernel* || true yum -y groupinstall "GNOME Desktop" --skip-broken --exclude=kernel* yum -y install glx-utils rpm --import https://s3-eu-west-1.amazonaws.com/nice-dcv-publish/NICE-GPG-KEY wget https://d1uj6qtbmh3dt5.cloudfront.net/2020.1/Servers/nice-dcv-2020.1-9012-el7-x86_64.tgz tar -xvzf nice-dcv-2020.1-9012-el7-x86_64.tgz cd nice-dcv-2020.1-9012-el7-x86_64 yum -y install nice-dcv-server-2020.1.9012-1.el7.x86_64.rpm yum -y install nice-xdcv-2020.1.338-1.el7.x86_64.rpm systemctl enable dcvserver systemctl start dcvserver systemctl stop firewalld.service systemctl disable firewalld.service dcv create-session --owner centos --user centos my-session