Last active
June 15, 2018 02:02
-
-
Save tudorelu/fdd155051480f78c906b38799b5aa199 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 AMD Miner setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #On a clean install of Ubuntu 16.04, how to get the best hashrate out of your cards (prior to OCing and BIOS flashing) | |
| sudo apt update | |
| sudo apt dist-upgrade | |
| #Install version 17.40 of the AMDGPU-PRO Linux Drivers: | |
| cd /opt | |
| sudo wget --referer=http://support.amd.com https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz | |
| sudo tar -Jxvf amdgpu-pro* | |
| cd amd* | |
| ./amdgpu-pro-install -y | |
| #Revert to an older version of the kernel which has higher hashrate (I used 4.9.50) | |
| #(due to a security fix in the new kernel version - over 4.10, hashrates dropped by more than 30%) | |
| cd /tmp/ | |
| wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.50/linux-headers-4.9.50-040950_4.9.50-040950.201709131832_all.deb | |
| wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.50/linux-headers-4.9.50-040950-generic_4.9.50-040950.201709131832_amd64.deb | |
| wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.50/linux-image-4.9.50-040950-generic_4.9.50-040950.201709131832_amd64.deb | |
| sudo dpkg -i *.deb | |
| # Remove the older kernel images (i only had 4.13, so i ran the following command): | |
| # You can see what versions you have by pressing tab after you write 'sudo apt-get remove linux-image' | |
| sudo apt-get remove linux-image-4.13* && sudo apt autoremove -y | |
| # Check if your user is already part of the 'video' group (the word 'video' should appear among the others) | |
| groups | |
| # IF not, run the below | |
| sudo usermod -a -G video $LOGNAME | |
| sudo reboot | |
| #If you don't have it already, install new ROCm Kernel (otheriwse skip this step): | |
| sudo apt install -y rocm-amdgpu-pro | |
| echo 'export LLVM_BIN=/opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.sh | |
| #Edit grub | |
| sudo nano /etc/default/grub | |
| #2MB fragments for Ellesmere are enabled with a grub option: | |
| GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9" | |
| #After exiting grub editing, do: | |
| sudo update-grub | |
| sudo reboot | |
| #How to to run the miner on startup | |
| #First of all, make sure that your computer is set to automatically login on start-up | |
| #(without you having to put the password) | |
| #Next, make sure that in the script that runs your miner, the path to the command is the absolute path | |
| #(so it will run no matter what folder you call it from | |
| #IE if running Claymore, make sure the command starts like /path/to/miner/ethdcrminer62 instead of just ethdcrminer64 | |
| #oPEN STARTUP APPLICATIONS ON UBUNTU AND ADD THE FOLLOWING COMMAND | |
| gnome-terminal -e 'bash -c "/path/to/miner/start.bash; exec bash"' | |
| sudo chown root:root /path/to/miner/start.bash | |
| sudo chmod +s /path/to/miner/start.bash | |
| sudo reboot | |
| #After this you should see the miner run in a terminal window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment