Skip to content

Instantly share code, notes, and snippets.

@rizerzero
Last active August 20, 2021 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rizerzero/5b0f0bf8a05de51536d9faae176655c8 to your computer and use it in GitHub Desktop.
Save rizerzero/5b0f0bf8a05de51536d9faae176655c8 to your computer and use it in GitHub Desktop.
setup debian on asus prime A320M-K
# Install wifi drivers
-------------------------------
apt-get update && apt-get install firmware-iwlwifi
# Install graphic drivers
-------------------------------
Use your favorite text editor to open /etc/apt/sources.list. Modify each line to add the contrib and non-free repositories. The end result should look like the example below.
##############################################################
deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
##########################################################################################
Save and exit. Then, update Apt :
apt update
Now, you can install the non-free Linux firmware from the Debian repository. In addition to that, it’s a good idea to install several other key Mesa packages to ensure that your system has everything that it needs.
apt install firmware-linux firmware-linux-nonfree libdrm-amdgpu1 xserver-xorg-video-amdgpu
# Vulkan support
-------------------------------
Vulkan support isn’t strictly necessary, but with the widening support that its receiving in the gaming world, it can’t hurt to have, and the performance improvements it promises are substantial enough to make it worth using whenever possible. Actually, Wine and Lutris are relying on Vulkan more and more to increase compatibility and performance on a wide range of games. Install Vulkan support with the following.
apt install mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-utils vulkan-validationlayers
# How to Install OpenCL
-------------------------------
If you plan on using OpenCL with your AMD card too, you should include support for it. Now, this support through Mesa isn’t the same as professional grade support. If that’s what you need, consider an officially supported distribution like Ubuntu. However, if you’re just using it for basic tasks, the Mesa support will suffice.
apt install mesa-opencl-icd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment