Installing the latest nvidia drivers on HiveOS

Overcooked Panda
2 min readAug 20, 2018

--

To begin, you are probably like me, you’ve fought with trying to install the latest nvidia drivers so that you can run a new miner on a lesser known coin only to find out that you no longer have fan control or the ability to overclock your cards, so unless you’re lucky you have to scrap the idea and stick to what Hive provides us with.

After various attempts, I finally managed to compile the steps needed to update to the latest drivers and restore fan control along with overclocking. The steps look a bit scary, but they are well tested at this point and even continue to work after you update to future HiveOS versions using ‘selfupgrade’

Note: DO NOT try this over VNC or AnyDesk, etc. You will have to kill the x server to do the upgrade, so you must do this via teleconsole, ssh, or physical terminal access.

The following commands will download nvidia’s 396.24 drivers .run file, give a temp location with enough storage space for extraction and install:

miner stop
killall xinit
sudo su
sudo init 3
mkdir /temp
export TMPDIR=/temp
cd /hive-drivers-pack/
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/396.24/NVIDIA-Linux-x86_64-396.24.run
chmod +x NVIDIA-Linux-x86_64–396.24.run
killall xinit
./NVIDIA-Linux-x86_64–396.24.run

You may notice that I have killall xinit twice, because sometimes the system restarts the x server and you will want to make sure it is not running before you try the update. If it gives you an error about it running, just run that command again and start the .run file a second time.

You will want to select the following options during install:

##Select yes to DKMS and Yes to 32bit libraries

## Select Yes to run nvidia x config

## IF this part fails, double check that autofans didn’t restart your miner, and run it again.
Afterwards, you need to reboot:

sudo reboot -f

Now, you have updated drivers, but you can no longer control your fans or overclock your cards, to fix that, you need to run the following:

sudo apt-get update; sudo apt-get install nvidia-settings -y

nvidia-xconfig --allow-empty-initial-configuration --enable-all-gpus --cool-bits=28 --separate-x-screens

You should now have Fan and Overclock control while using nvidia-396 drivers!

If you found this helpful, feel free to send a small donation:

BTC: 39HzDYxsEpnvDhRubrpd4AeiQH6rcVCXnQ
LTC: MRt3jZhV9GB8c1aaM7TkpRgEAVH6HsBjDY
ETH: 0x90da4a7e386e03501c895C578Ba8820d5845d1C4
MRT: @ocpanda

--

--

Overcooked Panda

Crypto Enthusiast looking to help others with mining and learn a few things along the way.