Skip to content

Instantly share code, notes, and snippets.

@kusayuzayushko
Created September 3, 2017 19:55
Show Gist options
  • Save kusayuzayushko/4a4332ac9145936ffa39c1b41a00d6d2 to your computer and use it in GitHub Desktop.
Save kusayuzayushko/4a4332ac9145936ffa39c1b41a00d6d2 to your computer and use it in GitHub Desktop.
install-1730.sh
#!/bin/bash
echo "#####################################"
echo " updating the distro "
sudo apt update -y && sudo apt upgrade -y
wget --referer=http://support.amd.com https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.30-465504.tar.xz
tar -Jxvf amdgpu-pro-17.30-465504.tar.xz
cd amdgpu-pro-17.30-465504/ || "Echo cannot enter directory"; exit
echo "######################################"
echo " installing driver "
sudo ./amdgpu-pro-install -y
cd || exit
echo "######################################"
echo " cleaning up "
rm -f amdgpu-pro-17.30-465504.tar.xz
rm -rf amdgpu-pro-17.30-465504/
sudo apt clean
echo "looks good, now you can reboot your rig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment