Skip to content

Instantly share code, notes, and snippets.

View minzak's full-sized avatar

Oleksandr Minzak minzak

View GitHub Profile
@minzak
minzak / go-upgrade.sh
Created October 18, 2020 13:58
Fing latest go version and install it.
echo "Getting latest Go version."
goarch="$(wget -qO- https://golang.org/dl/ | grep -oP 'go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1 )"
echo "Downloading latest Go for AMD64: ${goarch}"
wget --quiet --continue --show-progress "https://golang.org/dl/${goarch}"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf $goarch
rm $goarch
unset goarch
go version
1) Добавить ебя в группу tty.
2) etc/udev/rules.d/tty.rules:
KERNEL=="vcs", GROUP="tty"
KERNEL=="vcs[0-9]*", GROUP="tty"
KERNEL=="vcsa", GROUP="tty"
KERNEL=="vcsa[0-9]*", GROUP="tty"
#https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx
17.40)
wget --referer=http://support.amd.com https://www2.ati.com/drivers/linux/beta/ubuntu/amdgpu-pro-17.40.2712-510357.tar.xz
chmod u+x ./amdgpu-pro-install
sudo ./amdgpu-pro-install --compute -y
17.50)
cd /usr/src/
wget -O amdgpu-pro-17.50-511655.tar.xz --referer=http://support.amd.com https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.50-511655.tar.xz
Download latest AMD APP SDK from this page:
http://debian.nullivex.com/amd/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
http://debian.nullivex.com/amd/AMD-APP-SDKInstaller-v3.0.130.135-GA-windows-F-x64.exe
cd amdGPU
wget https://s3.amazonaws.com/atlas-shapes/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
tar -vxjf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh --keep --target SDK
#EDIT AMDAPPSDK-3.0 PATH TO amdappsdk
#sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh
@minzak
minzak / MINING.md
Last active July 26, 2018 18:38 — forked from gboddin/00-MINING.md
Mining optimisation under Linux

Mining under linux

Disclaimer

I'm in no case responsible for fried hardware, erased software or burning down houses. Make sure your miners are always well cooled.

General recommendation

Though you can easily mix nVidia and AMD in the same rig with Linux, it's recommended to use a different thread for each platform so a Driver crash doesn't bring the whole rig down. It should be noted however, that some mining software have trouble when both architecture are found on the same rig.