logo
MacroMelon's Blog
logo

wooo more linux stuff!

Work in progress!

Todo - talk about deniable encryption and why trim may be okay here due to LUKS headers being present anyways

Backup old stuff
Create install media
Disable secure boot
Boot into it
Follow install wiki till section 1.8
Partitioning:
 Use defaults - fdisk /dev/nvmeYnY, g, n (number and start sector default, end sector +1G), t (uefi)
 Use swap file instead of swap partition
Then follow dm-crypt setup wiki page (directly boot linux image from efi without bootloader, make the /boot/EFI/Linux directory manually)
Finish up
Reboot
Shutdown, enable setup mode in secure boot (clear secure boot keys and set secure boot mode to setup mode).
Setup secure boot - use sbctl and chattr -i /sys/firmware/efi/efivars/* if they ask)

Pre-chroot installs:
efibootmgr, sbctl, nvidia, tlp, tlp-pd, sof-firmware, networkmanager, nano

Post setup installs:
plasma, dolphin, konsole, fwupd, sudo, vi, kwrite, protontricks (AUR)

Use: pipewire-jack and ffmpeg for qt6
Flatpak apps:
Vivaldi

Nvidia stuff
use proprietary package and disable GSP firmware because - https://github.com/NVIDIA/open-gpu-kernel-modules/issues/965#issuecomment-3535527834
create the file /etc/modprobe.d/nvidia.conf and add: options nvidia NVreg_EnableGpuFirmware=0. Then, rebuild initramfs with mkinitcpio -P (?)
Install nvidia-580 aur package and also install Linux-headers

Other Stuff to do post install:
Enable periodic trim service?
Enable Bluetooth daemon
Do sudo add to group thingy in sudo config, create sudo group and add our user to it
For rgb keyboard, go to keyboard settings -> keybindings -> compatibility options-> enable map scroll lock to mod3
For JetBrains IDEs, go to help -> edit custom vm options, and add in -Dawt.toolkit.name=WLToolkit to use native wayland and remove weird scaling blurriness
If application menus not visible, run kcmshell6 kcm_Kades and disable Application menus daemon

Game stuff:
Use proton GE and set PROTON_ENABLE_WAYLAND=1 and everything is perfect!
If stuff shows up on the wrong monitor, also add in TODO

For controllers to show up in msfs, run wine command, enter control, go to game controllers, disable hidraw, restart winetricks, override both controllers to direct input
For msfs, for dlss enabler, use the “dlg.dll” option and enable the registry stuff
To run two wine things with same prefix do export WINEFSYNC=1

For zeepkist mods, use zeeper
For zeepkist (and derail valley) mods on linux, open winecfg through protontricks, go to libraries section and and add winhttp (make sure it’s “native then builtin”) as shown in https://steamcommunity.com/app/1440670/discussions/0/3360272265740664626/

Matlab

Install mpm as here: https://wiki.archlinux.org/title/MATLAB
$ mpm install --release=R2025b --destination=~/.my_programs/matlab/ MATLAB
FIX gnuTLS ISSUE - thanks to: daniel_shub on https://bbs.archlinux.org/viewtopic.php?id=306939
$ MATLABPATH=/home/rin/.my_programs/matlab/bin/glnxa64/
$ GNUTLSPATH=/home//rin/.my_programs/matlab/gnutls-3.8.9-1-x86_64.pkg
$ wget https://archive.archlinux.org/packages/g/gnutls/gnutls-3.8.9-1-x86_64.pkg.tar.zst
$ mkdir -p "$GNUTLSPATH"
$ tar -xvf gnutls-3.8.9-1-x86_64.pkg.tar.zst -C $GNUTLSPATH
$ rm gnutls-3.8.9-1-x86_64.pkg.tar.zst
$ mkdir "$MATLABPATH"/gnutls
$ cp -a "$GNUTLSPATH"/usr/lib/* "$MATLABPATH"/gnutls/
$ rm -rf $GNUTLSPATH
$ cd "$MATLABPATH"
$ ln -s gnutls/* ./
Authenticate and run matlab:
$ "$MATLABPATH"/MathWorksProductAuthorizer.sh
Don't forget to disable mathworks service host from autostart (why matlab???)
And force quit it each time you close matlab
And create a desktop file if required as shown in arch documentation

Or save yourself the mess, be FOSS, use GNU Octave! So amazing!