Skip to content

Instantly share code, notes, and snippets.

@vavrecan
Last active December 3, 2025 21:03
Show Gist options
  • Select an option

  • Save vavrecan/2caa066cc90ae6b52ed5c0e49bb70417 to your computer and use it in GitHub Desktop.

Select an option

Save vavrecan/2caa066cc90ae6b52ed5c0e49bb70417 to your computer and use it in GitHub Desktop.
clear linux install
# scalling
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
# disable indexing
tracker-preferences
# configure crypt in settings
luksOpen /dev/... home_crypt
# /etc/crypttab
home_crypt UUID=...-....-....... none luks
# /etc/fstab
/dev/mapper/home_crypt /home ext4 defaults 0 2
# disable
systemctl mask cups.service
systemctl mask sshd.service
systemctl mask sshd.socket
nano /etc/systemd/resolved.conf
[Resolve]
DNSStubListener=no
MulticastDNS=no
swupd bundle-remove hardware-printing
swupd bundle-remove xscreensaver
swupd bundle-add firmware-update
# set background black
gsettings set org.gnome.desktop.background primary-color "#000000"
# chrome install to system over flatpack
flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --system flathub com.vscodium.codium
flatpak info --show-permissions com.vscodium.codium
flatpak override --filesystem=/usr:ro com.vscodium.codium
# supress boot messages
sudo mkdir -p /etc/kernel/cmdline.d
sudo tee /etc/kernel/cmdline.d/silent-boot.conf >/dev/null <<'EOF'
quiet loglevel=3 dis_ucode_ldr
EOF
sudo clr-boot-manager update
# disable swap
export SYSTEMD_EDITOR=nano
systemctl edit var-swapfile.swap
# add
# [Swap]
# Options=nofail
rm /var/swapfile
# gnome extensions
https://extensions.gnome.org/extension/1160/dash-to-panel/
copy to ~/.local/share/gnome-shell/extensions
# chrome set to wayland to avoid blurry
chromium://flags/#ozone-platform-hint
fwupdmgr update
# dev related packages
sudo swupd bundle-add c-basic devpkg-libva git
# use windows on alt tab changes
Open dconf-editor
Go to org/gnome/desktop/wm/keybindings
Move the value '<Alt>Tab' from switch-applications to switch-windows
Optionally move '<Shift><Alt>Tab' from switch-applications-backward to switch-windows-backward
If you want switch-windows to work across desktops, not just in the current desktop, you can also uncheck org/gnome/shell/window-switcher/current-workspace-only (Courtesy of @CharlBotha)
gsettings set org.gnome.desktop.background picture-uri-dark ""
gsettings set org.gnome.desktop.background picture-uri ""
gsettings set org.gnome.desktop.background primary-color "#000000"
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,close"
gsettings set org.gnome.settings-daemon.plugins.housekeeping donation-reminder-enabled false
sudo pacman -Rns epiphany gnome-maps gnome-music gnome-weather gnome-clocks
sudo pacman -Rns gnome-tour
sudo pacman -S noto-fonts
sudo pacman -S chromium
sudo pacman -R gnome-contacts
sudo pacman -R gnome-online-accounts
# /usr/share/glib-2.0/schemas/99_org.archlinux.gdm.gschema.override
[org.gnome.login-screen]
enable-smartcard-authentication=false
logo='/usr/share/pixmaps/1px.png'
# run to save
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
# gnome extensions
https://extensions.gnome.org/extension/1160/dash-to-panel/
copy to ~/.local/share/gnome-shell/extensions
#shortcut
#ctrl+alt+t
#kgx
# remove root pass login
sudo passwd -l root
# password protected store
# /etc/crypttab
home_crypt UUID=...-....-....... none luks
# /etc/fstab
/dev/mapper/home_crypt /home ext4 defaults 0 2
# .bashrc extra
PS1='\[\e[1;32m\]\u\[\e[0m\]@\[\e[1;34m\]\h\[\e[0m\]:\w\$ '
# /efi/loader/loader.conf
default arch
timeout 0
editor no
# /efi/loader/entries/arch.conf
title Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=UUID=767e79cf-5b89-4f5d-a143-ec472cd76fe8 rw quiet loglevel=3
# other
sudo pacman -Sy htop
sudo pacman -S wireguard-tools
sudo pacman -S openvpn networkmanager-openvpn
sudo pacman -S file-roller
# node
pacman -S nodejs npm
pacman -Sy python-setuptools
# user mode install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
# alt tab
Open dconf-editor
Go to org/gnome/desktop/wm/keybindings
Move the value '<Alt>Tab' from switch-applications to switch-windows
Optionally move '<Shift><Alt>Tab' from switch-applications-backward to switch-windows-backward
sudo pacman -S qt5ct qt6ct
mkdir -p ~/.config/environment.d
cat > ~/.config/environment.d/qt6ct.conf << 'EOF'
QT_QPA_PLATFORMTHEME=qt6ct
EOF
# disable click to extract
xdg-mime default org.gnome.FileRoller.desktop \
$(sed -n -e "/^MimeType=inode\/directory;/{s///;s/;/ /gp}" \
/usr/share/applications/org.gnome.Nautilus.desktop)
# Set deny = 0 in /etc/security/faillock.conf
pacman -Sy power-profiles-daemon
systemctl enable power-profiles-daemon
[/]
animate-appicon-hover=false
animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1}
appicon-margin=0
appicon-padding=4
available-monitors=[0]
dot-color-dominant=true
dot-color-override=false
dot-color-unfocused-different=false
dot-position='BOTTOM'
dot-size=2
focus-highlight-dominant=true
group-apps=true
hide-overview-on-startup=true
hotkeys-overlay-combo='TEMPORARILY'
intellihide=true
intellihide-close-delay=400
intellihide-hide-from-windows=true
leftbox-padding=-1
multi-monitors=false
panel-anchors='{"0":"MIDDLE","1":"MIDDLE"}'
panel-element-positions='{"0":[{"element":"showAppsButton","visible":true,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
panel-lengths='{"0":100,"1":100}'
panel-positions='{"0":"TOP"}'
panel-sizes='{"0":32,"1":32}'
primary-monitor=0
status-icon-padding=-1
stockgs-keep-dash=false
stockgs-keep-top-panel=false
stockgs-panelbtn-click-only=false
trans-panel-opacity=0.80000000000000004
trans-use-custom-gradient=false
trans-use-custom-opacity=true
trans-use-dynamic-opacity=false
tray-padding=-1
tray-size=0
window-preview-title-position='TOP'
sudo nano /etc/systemd/system/disable-ibus-typing-booster.service
[Unit]
Description=Disable ibus-setup-typing-booster
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'if [ -f /usr/libexec/ibus-engine-typing-booster ]; then echo "#!/bin/bash" > /usr/libexec/ibus-engine-typing-booster && echo "echo \'ibus-engine-typing-booster is disabled\'" >> /usr/libexec/ibus-engine-typing-booster && chmod +x /usr/libexec/ibus-engine-typing-booster; fi'
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
sudo systemctl enable disable-ibus-typing-booster.service
sudo systemctl start disable-ibus-typing-booster.service
sudo swupd bundle-add containers-basic
sudo mkdir -p /etc/containerd
sudo nano /etc/containerd/config.toml
disabled_plugins = ["cri"]
systemctl restart containerd
sudo ctr plugins ls
sudo swupd bundle-add devpkg-libvpx
sudo swupd bundle-add devpkg-libvorbis
sudo swupd bundle-add devpkg-libass devpkg-libtheora devpkg-libvdpau devpkg-opus
# https://community.clearlinux.org/t/how-to-h264-etc-support-for-firefox-including-ffmpeg-install/195/53?page=3
git clone --depth 1 https://code.videolan.org/videolan/x264.git
cd x264
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib64/haswell/pkgconfig"
./configure --enable-static
make
sudo make install
sudo ldconfig
cd ..
./configure --enable-gpl --enable-pthreads --enable-libx264 --disable-shared --enable-static --enable-libx264 --enable-libvpx --enable-libvorbis --enable-nonfree \
--disable-debug --enable-vaapi --enable-libtheora --enable-optimizations --extra-cflags='-I/usr/local/include -march=native -O3 -pipe' --extra-cxxflags='-march=native -O3 -pipe' --extra-ldflags='-L/usr/local/lib -L/usr/local/lib64 -flto -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed'
make -j 16
sudo make install
sudo ldconfig
sudo swupd bundle-add devpkg-openssl devpkg-libevent devpkg-zlib devpkg-json-c
sudo swupd bundle-add git
git clone https://github.com/adrienverge/openfortivpn.git
cd openfortivpn
autoreconf -i
./configure --prefix=/usr/local --sysconfdir=/etc
make
sudo make install
sudo openfortivpn vpn.example.com:443 --username your_username --password your_password --no-routes
1. sudo swupd bundle-add dnf
2. sudo mkdir /etc/yum.repos.d/
3. sudo rpm --import https://dl.google.com/linux/linux_signing_key.pub 

cat /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub

5. dnf check-update
6. sudo dnf download google-chrome
7. sudo rpm -U --nodeps ./google-chrome-stable*.rpm

dnf check-update
dnf check-update --refresh
@vavrecan
Copy link
Author

firmware
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
copy to
/etc/firmware/

/usr/lib/firmware/
modinfo iwlwifi | grep firmware > current

@vavrecan
Copy link
Author

vavrecan commented Jun 2, 2025

systemctl stop clr_debug_fuse.service
systemctl mask clr_debug_fuse.service

systemctl stop tallow.service
systemctl mask tallow.service

systemctl list-units --type=service --state=running

@vavrecan
Copy link
Author

vavrecan commented Jun 5, 2025

sudo systemctl stop sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment