Skip to content

Instantly share code, notes, and snippets.

View kusayuzayushko's full-sized avatar

Kusayuzayushko kusayuzayushko

View GitHub Profile
add the (Onlinerigs/Offlinerigs/TotalRigs) at the top of the rig list.
@kusayuzayushko
kusayuzayushko / nv-upgrade.sh
Last active October 26, 2017 20:50
nv-upgrade-387.12.sh
#!/bin/bash
sudo killall -9 screen
sudo killall -9 Xorg
cd /var/tmp || echo "Cannot enter temporal directory"; exit
sudo umount -l /tmp
sudo mount -t tmpfs -o size=1G,mode=1777 overflow /tmp
rm -f NVIDIA*
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/387.12/NVIDIA-Linux-x86_64-387.12.run
chmod +x NVIDIA-Linux-x86_64-387.12.run
sudo ./NVIDIA-Linux-x86_64-387.12.run --ui=none --no-questions --accept-license --no-kernel-module
@kusayuzayushko
kusayuzayushko / oc_dpm2.sh
Last active October 2, 2017 16:22
oc_dpm2.sh
#!/bin/bash
CONFIG_FILE="/root/config.txt"
source $CONFIG_FILE
if [ -z "$1" ] || [ -z "$2" ]
then
echo "Missing variable"
exit 1
fi
@kusayuzayushko
kusayuzayushko / bios-flash.sh
Last active September 9, 2017 15:47
bios-flash.sh
#!/bin/bash
num=`sudo /root/utils/atiflash -i | grep pass | wc -l`
echo "$num cards detected"
echo "Downloading ROM file"
wget https://www.dropbox.com/s/o0ej51cnk7oom8x/Pulse100.rom -P /home/miner
echo "killing miner programm"
sudo killall -9 screen && screen -wipe
for (( i = 0; i < $num; i++ )); do
echo "Flashing card: $i"
sudo /root/utils/atiflash -p $i /home/miner/Pulse100.rom
@kusayuzayushko
kusayuzayushko / bios-flash.sh
Created September 9, 2017 15:20
bios-update.sh
#!/bin/bash
num=`sudo /root/utils/atiflash -i | grep pass | wc -l`
echo "$num cards detected"
echo "Downloading ROM file"
wget https://www.dropbox.com/s/o0ej51cnk7oom8x/Pulse100.rom -P /home/miner
for (( i = 0; i < $num; i++ )); do
echo "Flashing card: $i"
sudo /root/utils/atiflash -p $i /home/miner/Pulse100.rom
done
rm -f /home/miner/Pulse100.rom
@kusayuzayushko
kusayuzayushko / install-1730.sh
Created September 3, 2017 19:55
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 "
@kusayuzayushko
kusayuzayushko / install.sh
Last active September 20, 2017 15:42
rocm-install.sh
#!/bin/bash
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update -y
sudo apt-get install rocm -y
sudo sed 's/nk=0/nk=0 amdgpu.vm_fragment_size=9 /' -i /etc/default/grub
sudo update-grub
wget http://188.226.134.202:8000/oc_dpm2.sh | sudo chmod +x oc_dpm2.sh && sudo cp oc_dpm2.sh /root/utils/
echo "------------------------------------"
echo "looks good, now run sudo reboot"
@kusayuzayushko
kusayuzayushko / rclocal.sh
Created August 23, 2017 17:55
rclocal.sh
#!/bin/bash
CONFIG_FILE="/root/config.txt"
source $CONFIG_FILE
for i in {1..5}; do bash /root/utils/update_status.sh; sleep 10; done >/dev/null 2>&1 &
rm -f /home/miner/.cache/sessions/*
rm -f /etc/udev/rules.d/70-persistent-net.rules
rm -f /etc/X11/xorg*
@kusayuzayushko
kusayuzayushko / oc_nv.sh
Created August 10, 2017 19:55
oc_nv.sh
#!/bin/bash
CONFIG_FILE="/root/config.txt"
source $CONFIG_FILE
export DISPLAY=:0
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]
then
echo "Missing variable"
exit 1
@kusayuzayushko
kusayuzayushko / 40_custom
Last active August 8, 2017 19:44
Custom menuentrys for SimpleminingOS
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'pci=nomsi 12+GPU motherboards' {
recordfail
load_video
insmod ext2
set root='(hd0,msdos2)'