Skip to content

Instantly share code, notes, and snippets.

@ahmedmos
Created June 29, 2017 11:19
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 ahmedmos/264073bcccbcaba081fe328e6c0b95c2 to your computer and use it in GitHub Desktop.
Save ahmedmos/264073bcccbcaba081fe328e6c0b95c2 to your computer and use it in GitHub Desktop.
yum install -y kernel kernel-devel kernel-debug kernel-headers
yum clean all
wget ftp://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/d/dkms-2.3-4.20170313git974d838.fc27.noarch.rpm
yum localinstall -y dkms-2.3-4.20170313git974d838.fc27.noarch.rpm --nogpgcheck
yum update -y dkms
yum install -y gcc make binutils gcc-c++ kernel-devel kernel-headers
grub2-mkconfig -o /boot/grub2/grub.cfg
cd /etc/default && sed -i.bak -e '6d' grub
cd /etc/default && sed -i '6iGRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 rootdelay=300 net.ifnames=0 rdblacklist=nouveau nouveau.modeset=0"' grub
yum install -y xorg-x11-drv*
yum erase -y xorg-x11-drv-nouveau
echo 'blacklist nouveau' | tee -a /etc/modprobe.d/blacklist.conf
echo 'options nouveau modeset=0' | tee -a /etc/modprobe.d/blacklist-nouveau.conf
echo 'alias nouveau off' | tee -a /etc/modprobe.d/blacklist-nouveau.conf
echo options nouveau modeset=0 | tee -a /etc/modprobe.d/nouveau-kms.conf
rmmod nouveau
dracut --force
wget https://tdcm16sg112leo8193ls102.blob.core.windows.net/tdcm16sg112leo8193ls102/azurenvidia42/NVIDIA-Linux-x86_64-367.106-grid.run
chmod +x NVIDIA-Linux-x86_64-367.106-grid.run
./NVIDIA-Linux-x86_64-367.106-grid.run --silent --dkms --install-libglvnd
dracut --force
yum groupinstall -y 'KDE' 'X Window System' 'Fonts'
yum install -y vnc-ltsp-config kde-workspace gdm
wget ftp://195.220.108.108/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/v/vnc-ltsp-config-4.0-16.fc26.noarch.rpm
yum localinstall -y vnc-ltsp-config-4.0-16.fc26.noarch.rpm --nogpgcheck
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
systemctl isolate graphical.target
yum clean all
yum install -y tigervnc-server
echo ‘IgnoreSP=TRUE’ | sudo tee -a /etc/nvidia/gridd.conf
wget -O /etc/yum.repos.d/pcoip.repo https://downloads.teradici.com/rhel/pcoip-beta.repo
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -i epel-release-latest-7.noarch.rpm
yum update -y
yum install -y pcoip-agent-graphics
systemctl status pcoip
systemctl enable pcoip
pcoip-register-host --registration-code=ECAUYB969PWS@DE86-369B-88A7-4940
#check the gridd service
# switch back to ahmedmos
sudo systemctl status nvidia-gridd
sudo systemctl start nvidia-gridd
#don't forget to create a password for your user,
#and modify /etc/ssh/sshd_config to enable password auth
#and to restart sshd: systemctl restart sshd
wget http://download.opendtect.org/relman/OpendTect_Installer_lux64.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment