🕵️‍♂️ Engage in discussions ANONYMOUSLY. NO REGISTRATION is required. 💬

✅ Registered accounts earn up to $25 per thread via PayPal and BTC. 🤑 Read more in News and Announcments! Unlock the ability to chat, share, send private messages and earn money per post in our community. Just register an account. It's Free!

SignUp Now!
  • 🕵️‍♂️ Engage in discussions ANONYMOUSLY. NO REGISTRATION is required. 💬 ✅ Registered accounts earn up to $25 per thread via PayPal and BTC. 🤑 Read more... Unlock the ability to chat, share, send private messages and earn money per post in our community. Just register an account. It's Free!

Guide Here's how to run any modern CPU/GPU on Linux

Choose this one if you are writing a guide

w_G

Global Admin
Staff member
Joined
Aug 15, 2023
Messages
13
Credits
285
How to Run Any Modern and Latest AMD/Nvidia GPU/CPU on Linux

Introduction

Running modern or the latest AMD GPUs and CPUs on Linux requires specific steps to ensure optimal performance and compatibility. I wrote this guide to walk you through the process step by step, providing commands and explanations for each step of the way. Whether you have an AMD Radeon GPU or AMD Ryzen CPU, this guide will help you get started. Follow the same logic for Nvidia.

Prerequisites

Before you begin, ensure you have the following:
  • A Linux distribution of your choice (Ubuntu, Debian, Fedora, etc.)
  • Latest AMD Radeon GPU, Ryzen CPU, Nvidia hardware
  • An active internet connection
  • Create a backup before you start!

Step 1: Update Your Kernel

1.1. Check Your Kernel Version
Open a terminal. Type the following command to check your current kernel version:
Code:
uname -r
Note down your current kernel version.

1.2. Install a Mainline Kernel

Update Linux Distro:
Code:
sudo apt update && sudo apt upgrade

Import Mainline Kernel Installer PPA:
Code:
sudo add-apt-repository ppa:cappelikan/ppa -y
Code:
sudo apt update

Install Mainline Kernel Installer:
Code:
sudo apt install mainline

Launch GUI:
Code:
Run: mainline-gtk


[METHOD 2] [SKIP IF YOU INSTALLED USING THE MAINLINE-GTK !!!]
This is an alternative way of installing the newest Kernel version (ignore if you are a rookie)


Visit the
You must have 10 posts to see the links. Currently you had 0 posts.
. Find the latest stable kernel version and click on it.
Download the following .deb files:
Code:
linux-headers-{VERSION}_all.deb
(x2)
Code:
linux-image-{VERSION}-generic-{KUBUNTU}.deb
Code:
linux-modules-{VERSION}-generic-{KUBUNTU}.deb
(Replace {VERSION} with the latest version and {KUBUNTU} with your system's architecture, e.g., amd64)
Open a terminal in the download directory and install the downloaded .deb files using:
Code:
sudo dpkg -i *.deb

1.3. Update GRUB

Run the following commands:
Updates the initial RAM file system:
Code:
sudo update-initramfs -u
Updates the initial RAM file system:
Code:
sudo update-grub

1.4. Reboot

Reboot your system with the new kernel.

Step 2: Firmware Update


2.1. Download the Firmware

Visit the Linux Kernel Firmware repository: Linux Firmware.
Download the latest tar.gz file.

2.2. Extract and Replace Firmware

Open a terminal.
Navigate to the directory where the tar.gz file was downloaded.
Extract the firmware:
Code:
tar -xzvf linux-firmware-{DATE}.tar.gz
Replace the amdgpu folder:
Code:
sudo cp -r amdgpu /usr/lib/firmware/amdgpu
(For Ryzen CPU, replace 'amdgpu' with 'amd-ucode' in the above command)

Step 3: Install Mesa Drivers


3.1. Add the Oibaf PPA

Open a terminal.
Run the following commands:
Code:
sudo add-apt-repository ppa:oibaf/graphics-drivers
Code:
sudo apt update

3.2. Install Mesa Drivers

Run the following command:
Code:
sudo apt install libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0 libosmesa6 libxatracker2 mesa-vdpau-drivers mesa-vulkan-drivers mesa-va-drivers

Step 4: Configure Cursor (if needed)

ONLY IF you encounter issues with the cursor. (I did on Kubuntu with amd 7900 xtx) create a configuration file:
Code:
sudo touch /etc/X11/xorg.conf.d/90-cursor.conf
Edit the file and add the following content:

XML:
Section "Device"
    Identifier "Device0"
    Option "SWCursor" "on"
EndSection

Step 5: Reboot and Enjoy

Congratulations! You've successfully set up your modern or latest AMD GPU/CPU on Linux. You can now enjoy improved performance and compatibility with your AMD hardware.

Additional Information

Mainline Kernel: The mainline kernel is a kernel version that is not specific to any Linux distribution. It's often used to access the latest features and drivers not yet included in distribution-specific kernels.

Mainline GTK: Mainline GTK (Gnome Toolkit) is a graphical user interface that provides a desktop environment for Linux. It's commonly used with Gnome Shell.

Flashing on Each Boot: Some modern AMD GPUs have firmware that is loaded onto the card at each boot. This is normal behavior and does not harm the card.

Please note that Linux distributions and hardware configurations may vary, so consult your distribution's documentation and AMD's support resources if you encounter any issues or need further assistance.
 
Top