Upgrade HiveOS Kernel and Install Nvidia Drivers: Step-by-Step Guide

Updated on Jun 21,2024

Upgrade HiveOS Kernel and Install Nvidia Drivers: Step-by-Step Guide

Table of Contents

  1. Introduction
  2. Upgrading Hive OS to the Latest Revision
  3. Important Pseudo Commands: apt update and apt upgrade
  4. Quick Nvidia Driver Installations within Hive OS
  5. Checking the Kernel Version
  6. Updating Hive OS to the Latest Revision
  7. Restarting Your Rig
  8. Updating Packages with sudo apt update and sudo apt upgrade
  9. Installing Nvidia Drivers: nvidia-driver-update --list
  10. Conclusion

Introduction

Hello Youtube! This is Dave from Three Squad Mining. Today, I want to cover a topic that I receive a lot of questions about—upgrading Hive OS and resolving common issues. I often get messages on Discord and the Hive OS forums asking for help with specific cards or kernel updates. In this article, I will discuss three important things: upgrading Hive OS to the latest revision, executing essential pseudo commands (apt update and apt upgrade), and installing Nvidia drivers within Hive OS. Let's dive in and explore each of these topics in detail.

Upgrading Hive OS to the Latest Revision

To begin, let's talk about upgrading Hive OS to the latest revision. This includes updating the kernel, not just the minor packages within releases. Upgrading the kernel is crucial because it ensures compatibility with different types of cards and their associated support packages in Hive OS. To upgrade the kernel, follow these steps:

  1. Select the machine you want to work on.
  2. If the machine is local, click on the IP address to open Shell in a Box. Alternatively, you can start the shell from the "Remote Access" area.
  3. If the machine is not on the same network, access the shell from the remote location.
  4. Check the current kernel version. As of today's date, the latest revision is 5.10.0.83.
  5. Open Shell in a Box and log into your mining rig.
  6. Run the command hive-replace --list to see the latest Hive revisions.
  7. Select option number one for the latest stable version or option number two for the latest beta version.
  8. Stop mining before selecting the desired option.
  9. Install the selected Hive OS version by entering '1' and hitting Enter.
  10. The installation process may take between 5 and 20 minutes. After installation, restart your rig by typing 'sreboot' and hitting Enter.
  11. Make sure to unset the current flight sheet while your rig is restarting.
  12. Once the rig is back online, access Shell in a Box again.

Important Pseudo Commands: apt update and apt upgrade

Now that we have updated the kernel, let's move on to some important pseudo commands: apt update and apt upgrade. These commands ensure that all packages are up to date. Follow these steps to update your packages:

  1. In Shell in a Box, navigate to your rig by clicking on the IP address or launching the Shell in a Box access.
  2. Run the command sudo apt update to check for available Package updates.
  3. After running the update command, you will see a list of packages that can be upgraded.
  4. To install the available updates, use the command sudo apt upgrade.
  5. The upgrade process will attempt to install the detected packages.
  6. If you choose not to upgrade specific packages, they will not be installed.
  7. After upgrading, your rig will show zero upgraded packages, zero newly installed packages, zero to remove, and the number of packages that were not upgraded.

Quick Nvidia Driver Installations within Hive OS

Next, let's discuss quick installations of Nvidia drivers within Hive OS. If you are running Nvidia drivers, follow these steps to update them:

  1. In Shell in a Box, access your rig.
  2. Run the command nvidia-driver-update --list to see the available drivers.
  3. The currently stable version is 470.103.01 with CUDA 11.4.
  4. Use the command nvidia-driver-update --version <driver version> to install the desired driver. (e.g., nvidia-driver-update --version 470.94)
  5. If you don't want to install new drivers or already have the latest version, use Ctrl + C to exit the installation process.

Checking the Kernel Version

Before we proceed, let's quickly revisit checking the kernel version. Open Shell in a Box and log into your mining rig. Run the command uname -r to view the kernel version of your system. This information is important for ensuring compatibility with newer cards and Hive OS updates.

Updating Hive OS to the Latest Revision

Now that we are familiar with the kernel version and package updates, let's revisit updating Hive OS to the latest revision. Please follow the steps Mentioned earlier to select the desired version and install it. Remember to stop mining before the update and restart your rig after installation.

Restarting Your Rig

After updating Hive OS and restarting your rig, it's time to ensure a smooth transition. Remove any flight sheets that may activate mining before completing the remaining steps. Once your rig has restarted successfully, proceed to the next section.

Updating Packages with sudo apt update and sudo apt upgrade

After restarting your rig, access Shell in a Box and follow these steps to update your packages:

  1. Click on the IP address or launch Shell in a Box access.
  2. Use the command sudo apt update to check for available package updates.
  3. Review the list of packages that can be installed.
  4. To install the updates, run the command sudo apt upgrade.

Installing Nvidia Drivers: nvidia-driver-update --list

If you need to install or update Nvidia drivers, use the following steps:

  1. Access Shell in a Box and log into your mining rig.
  2. Run the command nvidia-driver-update --list to see the available drivers.
  3. Choose the driver version you wish to install.
  4. Execute the command nvidia-driver-update --version <driver version> to install the desired driver.
  5. Monitor the installation process and ensure it completes successfully.

Conclusion

Congratulations! You have successfully upgraded Hive OS to the latest revision, updated packages, and installed Nvidia drivers within Hive OS. These steps ensure compatibility with new cards and address common issues. Remember to stay updated with the latest Hive OS releases and drivers to optimize your mining experience. If you have any questions or need further assistance, don't hesitate to reach out. Happy mining!

Highlights

  • Upgrading Hive OS to the latest revision ensures compatibility with different types of cards.
  • Important pseudo commands like apt update and apt upgrade keep your packages up to date.
  • Quick Nvidia driver installations within Hive OS enhance mining performance.
  • Checking the kernel version is essential for troubleshooting and card compatibility.

FAQ

Q: How often should I upgrade Hive OS and Nvidia drivers? A: It is recommended to stay updated with the latest Hive OS releases and Nvidia drivers to benefit from improved card support and performance. Regularly check for updates and upgrade as needed.

Q: Can I mine with old AMD cards without updating drivers in Hive OS? A: Yes, you can continue mining with old AMD cards without updating the drivers until you perform a Hive OS upgrade or re-flash the system. However, upgrading to the latest drivers can offer better performance and stability.

Q: How do I uninstall Nvidia drivers in Hive OS? A: To uninstall Nvidia drivers in Hive OS, run the command nvidia-driver-uninstall. This will remove the installed drivers from your system.

Most people like