From 28a5f03a60e220547a4cbeb230d73ef4e693c62a Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Mon, 21 Nov 2022 23:01:08 +0100 Subject: [PATCH] add arch gpus --- distros/arch/gpu.md | 49 +++++++++++++++++++++++++++++++++++++++++++ system/bash_tricks.md | 7 +++++++ 2 files changed, 56 insertions(+) create mode 100644 distros/arch/gpu.md diff --git a/distros/arch/gpu.md b/distros/arch/gpu.md new file mode 100644 index 0000000..3851a3e --- /dev/null +++ b/distros/arch/gpu.md @@ -0,0 +1,49 @@ +--- +title: "fonts" +tags: [ "Documentation", "distros" ] +--- +# Step 1: Multilib + +Enable multilib (32-bit) support in `/etc/pacman.d/mirrorlist`: + +``` +[multilib] +Include = /etc/pacman.d/mirrorlist +``` + +And update: + +> sudo pacman -Syu + +# Step 2: Check Card Manufacturer + +Check your graphics card type: + +> lspci | grep VGA + +# Step 3: Install Drivers + +## Step 3A + +If you see `Nvidia`, then install the intel drivers: + +> sudo pacman -S --needed lib32-mesa vulkan-intel lib32-vulkan-intel vulkan-icd-loader lib32-vulkan-icd-loader + +## Step 3B + +If you see `Intel`, then install the intel drivers: + +> sudo pacman -S --needed lib32-mesa vulkan-intel lib32-vulkan-intel vulkan-icd-loader lib32-vulkan-icd-loader xf86-video-intel + +## Step 3C + +If you see `AMD`, then check your card support `vulkan`: + +> yay -S gpu-viewer + +> vulkaninfo | grep 'VkPhysicalDeviceVulkanMemoryModelFeatures' -A 3 + +You should see 'true' here. + +> sudo pacman -S --needed lib32-mesa vulkan-radeon lib32-vulkan-radeon vulkan-icd-loader lib32-vulkan-icd-loader xf86-video-amdgpu + diff --git a/system/bash_tricks.md b/system/bash_tricks.md index e4b2022..eea120d 100644 --- a/system/bash_tricks.md +++ b/system/bash_tricks.md @@ -32,6 +32,13 @@ Regular expressions (``regex'') looks for patterns and is used with find and gre If the shell is set to find file ``a*b.txt'' then it will pass this first to regex, and hit items like `aab.txt' and `abb.txt'. If it finds nothing, it'll then use globbing, and interpret `a*b.txt' literally. +# Alias Expansion + +> echo '"\C- ": shell-expand-line' >> ~/.inputrc + +Reload bash, and you can use Ctrl+Space to expand an alias. +Type in `ll` (or any alias), then Ctrl+Space. + # Automatic Renaming There are a bunch of files: