Skip to content

Desktop

This page would define additional setup for my Desktop instance

Info

Run these using your standard user with sudo if required

Fonts⚓︎

  • CD into Bench directory
    Bash
    cd ~/Bench
    
  • Clone Fonts repo
    Bash
    git clone [email protected]:Hudater/Fonts.git
    
  • Copy fonts to global fonts repo
    Bash
    sudo find Fonts/* -maxdepth 0 -type f,d ! -name 'LICENSE' ! -name 'README.md' -exec cp -rt /usr/local/share/fonts/ {} +
    
  • Re-generate Font cache
    Bash
    sudo fc-cache -f -v
    

FStab⚓︎

Warning

FStab is mounted serial-wise, so lookout for depending mounts
Mount ROOT and BOOT before any other mounts

Local Storage⚓︎

  • Create /storage directory with correct permissions

    Bash
    sudo mkdir -pv /storage &&\
    sudo chown $USER:$USER /storage -R
    

  • Find UUID of desired partiton

    Bash
    lsblk -f
    

    lsblk output
    Bash
    1
    2
    3
    4
    5
    6
    NAME   FSTYPE FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
    sda                                                                             
    ├─sda1 vfat   FAT32         06FB-2B2F                             435.8M    15% /boot
    ├─sda2 ext4   1.0           a92c4d62-2c87-4f5b-a4cc-3a96c926232e  124.9G    10% /
    └─sda3 ext4   1.0   STORAGE a1effe8d-b376-4d1c-b53a-5b46dde3d026                
    zram0                                                                           [SWAP]
    
  • Add entry to fstab

    sudoedit /etc/fstab
    # /dev/sda3 Local Storage block
    UUID=a1effe8d-b376-4d1c-b53a-5b46dde3d026 /storage  ext4  rw,relatime,defaults  0 2
    

  • Fix permissions if required

    Bash
    sudo chown $USER:$USER /storage -R
    

SMB⚓︎

  • Create lab and mountDirs with correct persmissions

    Bash
    sudo mkdir -pv /lab/{mdroot,piroot} &&\
    sudo chown $USER:$USER /lab -R
    

  • Add SMB mount commands after mounting root, boot, home and other system partitions

    sudoedit /etc/fstab
    ##########################SMB#############################
    #
    #
    ###Media server smb server mount
    #
    //media.lan/mdroot  /lab/mdroot  cifs username=USER,password=smbPassword,uid=1000,gid=1000,workgroup=workgroup  0 2
    #
    ##rpi4 smb server mount
    #
    //pi.lan/piroot  /lab/piroot cifs  username=USER,password=smbPassword,uid=1000,gid=1000,workgroup=workgroup 0 2
    

  • Mount newly added SMB mounts

    Bash
    sudo mount -a
    

Screenshot⚓︎

  • Install scrot
    Bash
    paru -S scrot
    
  • Make Pictures directory
    Bash
    mkdir -pv ~/Pictures
    

rEFInd Bootloader⚓︎

AMD Ucode⚓︎

  • Install amd-ucode
    Bash
    paru -S amd-ucode
    
  • Add kernel and ucode to end of boot parameters
Bash
initrd=\initramfs-linux-zen.img #(1)
initrd=\amd-ucode.img #(2)
  1. Secify kernel initram from /boot
  2. CPU Microcode from /boot

Kernel Parameters⚓︎

  • Edit refind.conf with desired kernel parameter
sudoedit /boot/refind_linux.conf
amdgpu.ppfeaturemask=0xfffd7fff #(1)
ipv6.disable=1 #(2)
  1. Enable extra controls over GPU for overclocking
  2. Disables IPv6

Tip

Final refind_linux.conf for me look like

Bash
"Boot with minimal options"   "ro root=PARTUUID=32768bfc-d092-224b-b36e-0b415dcf40c5 amdgpu.ppfeaturemask=0xfffd7fff ipv6.disable=1 initrd=\initramfs-linux-zen.img initrd=\amd-ucode.img"

Theme⚓︎

  • CD into Bench directory
    Bash
    cd ~/Bench
    
  • Clone theme
    Bash
    git clone [email protected]:Hudater/rEFInd-glassy.git
    
  • Create directory for theme in /boot
    Bash
    sudo mkdir /boot/EFI/BOOT/themes
    
  • Copy theme to that directory
    Bash
    sudo cp -r rEFInd-glassy /boot/EFI/BOOT/themes
    
  • Change resolution and reference theme in refind.conf
    Bash
    1
    2
    3
    4
    sudo tee -a /boot/EFI/BOOT/refind.conf > /dev/null <<EOT
    resolution 1920 1080
    include themes/rEFInd-glassy/theme.conf
    EOT