Skip to content

BenMannMann/ArchLinuxBTW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

My Arch Linux (BTW) Config and Useful Stuff

  • Running Arch Linux with Wayland & Hyprland, Waybar, Wofi and SDDM
  • Dolphin for File Manager
  • Kitty for Terminal

Core Things

  • What I used for archinstall https://www.youtube.com/watch?v=FxeriGuJKTM
  • Great video to follow for security! https://www.youtube.com/watch?v=8Oz4CIB4YjU
  • Installed Arch via archinstall
  • Lockdown Root
  • Setup Firewall using ufw
  • Disable Remote Ping in ufw
  • Setup Cloudflare as DNS
  • Lock Down SSH as it's unneeded for me
  • Install Microcode (archinstall seems to do this automatically?)
  • Audit ports using sudo ss -lpntu
  • Lock Down Kernel
  • Disable kexec
  • Follow https://wiki.archlinux.org/title/Security basically
  • Long start up is because of AMD lol
  • Linux HDDs formatted to ext4
  • Avoided needing the AUR as per the Arch Wiki, use pacman for all needed packages
  • SDDM Theme - Eucalyptus Drop by Matt Jolly

Screenshots

image image

Things I had to do

Enable multilib in pacman to install Steam

Uncomment the following lines in /etc/pacman.conf

#[multilib]
#Include = /etc/pacman.d/mirrorlist

to

[multilib]
Include = /etc/pacman.d/mirrorlist

Installing Windows Software via Wine

  1. Download .exe file of the software
  2. Double Click to install via Wine
  3. ???
  4. Profit? Should Just Work

Uninstall Windows Software from Wine

Should be an uninstaller in Spotlight that you can just run. If there isn't, run wine uninstaller and uninstall from there.

Proton GE for Steam Games that don't work with Valve's Protons

https://github.com/GloriousEggroll/proton-ge-custom Bleeding Edge Proton Experimental Wine Packagehttps://gitlab.com/Matt.Jolly/sddm-eucalyptus-drop/

  1. Download the GE Proton Tar
  2. Go into the Downloads Folder
  3. tar -xf GE-Proton*.tar.gz -C ~/.steam/steam/compatibilitytools.d/
  4. Restart Steam
  5. Enable in Steam

Dolphin Fixes

Setup applications.menu config file and run the following command:
kbuildsycoca6 -> Rebuilds the KService desktop file system configuration cache.
Or install archlinux-xdg-menu and run XDG_MENU_PREFIX=arch- kbuildsycoca6 Can't remember which of these fixed, think both fixed a different issue

Also helps to sort out default applications for things e.g. mpv for videos and imv for images

Fastfetch

Setup a config file using fastfetch --gen-config, then used fastfetch -h <module>-format to find the options and customised the config file. E.G. fastfetch -h display-format list all of the options for the display module.

Zeditor Broken

Latest NVIDIA drivers have broken Zeditor. A workaround to open it is to run the following command: env -u WAYLAND_DISPLAY zeditor

Twitch TUI Tokens

Generated with https://twitchtokengenerator.com/. Use the refresh token to generate a new access token if it expires.

LINE Notifications

They work and have the usual LINE notification popup in the bottom right. I looked into if it's possible to send these to swaync/notification daemon and it's not.

RetroArch

Enable the following in the config to allow downloading cores through RetroArch rather than pacman:

~/.config/retroarch/retroarch.cfg
menu_show_core_updater = "true"

Retorarch wasn't really great so I've manually installed Duckstation, PCSX2 & RPCS3 using AppImages.

Fix RES Permission Requests

When trying to open a link inline on Reddit with RES, a new pop up window appears asking for permission. However, hyprpolkit doesn't seem to appear to allow this permission to be accepted. To get around, do the following steps:

  • Open the console with F12
  • Type window.location.href
  • Copy the URL into a new tab in the browser and press enter
  • Allow the permission
  • Refresh Reddit

Inline links should now work for that source. Rinse and repeat for any other links that require permission.

New Entries into Wofi (E.G. AppImages)

You can add new entries into Wofi (spotlight search) by:

  • Create a .desktop file in ~/.local/share/applications
  • Within this file, place the following:
[Desktop Entry]
Name=RPCS3
Comment=PS3 Emulator
Exec=/home/ben/Documents/AppImages/RPCS3.AppImage
Icon=/home/ben/.local/share/applications/Icons/rpcs3.png
Terminal=false
Type=Application
Categories=Emulation;Game;

To add icons, I created an icons folder within ~/.local/share/applications, placed the icons in here and just referenced their path in the relevent desktop entires (example above).

Privacy Module

In Waybar, there is a privacy module that allows you to see when an application is using your microphone & screensharing. It also display what programs are outputting audio which doesn't really matter. You can disable it by commenting out the audio-out module in privacy:

    "privacy": {
    	"icon-spacing": 4,
    	"icon-size": 18,
    	"transition-duration": 250,
    	"modules": [
    		{
    			"type": "screenshare",
    			"tooltip": true,
    			"tooltip-icon-size": 16
    		},
    		// { // Commenting out audio-out will ignore all audio-out sources
    		// 	"type": "audio-out",
    		// 	"tooltip": true,
    		// 	"tooltip-icon-size": 16
    		// },
    		{
    			"type": "audio-in",
    			"tooltip": true,
    			"tooltip-icon-size": 16
    		}
    	],
    	"ignore-monitor": true,
    },

SDDM Theme & Options

To setup SDDM theming, create a copy of the default sddm config by running:

sudo mkdir /etc/sddm.conf.d
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /etc/sddm.conf.d/sddm.conf

Then, I've changed the "Current" parameter to be Current=eucalyptus-drop, which I downloaded from https://gitlab.com/Matt.Jolly/sddm-eucalyptus-drop/. To install the theme, download and extract the folder, then move it to the themes folder like so sudo mv ~/Downloads/eucalyptus-drop/ /usr/share/sddm/themes/ Then you can edit the theme.conf to your hearts content.

Jagex Launcher & Runelite

Followed the following guide: https://github.com/nmlynch94/com.jagexlauncher.JagexLauncher

Run the Jagex Launcher by using the following command flatpak run com.jagexlauncher.JagexLauncher

Sync to Walkman via MusicBee

You can sync to Walkman still even with MusicBee running in Wine. Issue I had was I thought it was already setup as I had exported my settings from Windows but you do have to redo the following process for MusicBee to acknowledge it as a Device thats syncable.

  1. Go to Preferences -> Devices -> Add Virtual Device
  2. Find the device mounted in Wine (Mount via winecfg)
  3. Selct playlists to sync in the "Music" tab
  4. Apply, Save, then in the sidebar of musicbee it should now be listed as a Virtual Device. You can then proceed to sync via this screen like you used to on Windows!

Commands

  • pacman -S <package> -> Install a Package
  • pacman -Syu -> Upgrade all Packages
  • pacman -Rsc <package> -> Remove a Package
  • pacman -Qdt -> Query unneeded packages (orphan packages)
  • pacman -Rns $(pacman -Qdtq) -> Remove orphan packages
  • pacman -Sc -> Removes pacman cache
  • pacman -Q -> List installed packages
  • pacman -Qe -> List explicitly installed packages
  • checkupdates -> Check for updates in Pacman
  • systemd-analyze -> Shows how long booting takes
  • systemd-analyze blame -> Find the culprit if booting takes a long time
  • journalctl -b -> Logs for the current boot
  • ss -lpntu -> Check Network Statistics
  • systemctl status <sshd> -> Show status of a given service E.G. SSH
  • lsblk -f -> List Information about Hard Drives
  • wine wincfg -> Wine Config
  • sbctl status -> Secure Boot Status
  • killall <zed-editor> -> Kill all processes of the given application
  • twt -> Run Twitch TUI (Twitch Chat in Terminal)
  • pkill waybar && hyprctl dispatch exec waybar -> Reload waybar

Hyprland Commands

  • Windows + O = Terminal
  • Windows + C = Close Window
  • Windows + E = File Manager
  • Windows + F = Firefox
  • Windows + Space = Spotlight Search
  • Windows + N = Notification Centre
  • Windows + Escape = Quit Hyprland (to SDDM)
  • Windows + V = Toggle Floating Window
  • Windows + Right Click and Drag = Resize Floating Window

Nano Commands

  • F1 = Show Commands
  • Control + W = Search (Press Enter to Search)
  • Alt + W = Next Instance
  • Alt + Q = Previous Instance

Packages

Helpful Links:

About

Config Files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages