Skip to content

Instantly share code, notes, and snippets.

@shawngmc
Last active March 4, 2025 08:34
Show Gist options
  • Save shawngmc/99310db8e397218798a8891c4e11c506 to your computer and use it in GitHub Desktop.
Save shawngmc/99310db8e397218798a8891c4e11c506 to your computer and use it in GitHub Desktop.
Lightweight Linux Laptop

GNOME Settings

Power

  • General > Show Battery Percentage: On

Appearance

  • Style: Dark
  • Accent: Green
  • BG: Static, row 1, col 3

Install VSCode

# Copy key
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
# Get updates, then install
dnf check-update
sudo dnf install code

Install Tabby and set up config sync

# TODO
# https://github.com/Eugeny/tabby/releases/latest

Install Bitwarden CLI

# TODO
# https://bitwarden.com/help/cli/
wget -O bitwarden.zip "https://bitwarden.com/download/?app=cli&platform=linux"
unzip bitwarden.zip
chmod +x bw
mkdir -pv $HOME/bin
mv bw $HOME/bin/bw

Install NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Install packages

sudo dnf install -y \
  btop \
  neovim \
  python3-neovim \
  python3-pip \
  fastfetch \
  yq \
  speedtest-cli \
  speedtest \
  fzf \
  testssl \
  wireguard-tools \
  torbrowser-launcher \
  google-roboto-mono-fonts \
  img2sixel
  
pip install \
  gcalcli

Set up VPN

https://fedoramagazine.org/configure-wireguard-vpns-with-networkmanager/

# Get the config file
sudo cp new.conf /etc/wireguard/wg0.conf
sudo nmcli con import type wireguard file /etc/wireguard/wg0.conf
sudo wg
# Rename in NM GUI if desired

Install ungoogled chromium

sudo dnf copr enable -y wojnilowicz/ungoogled-chromium
sudo dnf install -y ungoogled-chromium
# Enable Native Wayland
sudo sed -i 's/NATIVE_WAYLAND=off/NATIVE_WAYLAND=on/g' /etc/ungoogled-chromium/ungoogled-chromium.conf
echo CHROMIUM_FLAGS+=\" --ozone-platform-hint=auto\" | sudo tee -a /etc/ungoogled-chromium/ungoogled-chromium.conf

Install LibreWolf

# add the repo
curl -fsSL https://repo.librewolf.net/librewolf.repo | pkexec tee /etc/yum.repos.d/librewolf.repo

# install the package
sudo dnf install -y librewolf

Make scripts folder, add to path

scripts

~/bin

#!/bin/bash
curl wttr.in/iad

TODO:

  • Add NAS mount
  • Find a Google Chat CLI client
  • Figure out browser options

Update DSDT to fix touchpad

See https://gist.github.com/mgd722/436bf5d656f3005c40a9eef2dc31fae

sudo su
#----
yum install acpica-tools
cd ~
mkdir -pv acpi
cd acpi
# Dump DSDT
cat /sys/firmware/acpi/tables/DSDT > dsdt.aml
# Decompile
iasl -d dsdt.aml
# In the file, make the following edits:
# - (NEAR 7876) Find the line "If ((^^^PCI0.LPC0.H_EC.ECRD (RefOf (^^^PCI0.LPC0.H_EC.TPTY)) == 0x01))", then replace the 0x02 IF with an ELSE
# - (NEAR 7970) Do the same for the next ECRD 0x02 if statement
# - (NEAR 10396) Eliminate duplicate CDAT definition
# - (NEAR 21) Increate OEM version (last arg)
# Compile
iasl -sa dsdt.dsl
# Stage
cp dsdt.aml /boot/fixed_dsdt.aml
# Config GRUB
echo '# load correct acpi table on any boot\n' >> /etc/grub.d/40_custom
echo 'acpi /fixed_dsdt.aml' >> /etc/grub.d/40_custom
# Update GRUB
grub2-mkconfig -o /boot/grub2/grub.cfg
# Reboot
reboot now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment