====== Information ======
* Debian ((https://www.debian.org/))
* 12.10 Bookworm ((https://www.debian.org/releases/bookworm/))
* Xfce ((https://www.xfce.org/)) ((https://wiki.debian.org/Xfce))
* :!: 2025/04/14: WIP
====== Download ======
* https://www.debian.org/
debian-12.10.0-amd64-netinst.iso
====== Installation Notes ======
* :!: No ''root'' password
* Entire disk, one partition
====== Repositories ======
===== nonfree =====
* https://wiki.debian.org/SourcesList
sudo -e '/etc/apt/sources.list'
non-free
===== WineHQ =====
* https://gitlab.winehq.org/wine/wine/-/wikis/Debian-Ubuntu
* https://dl.winehq.org/wine-builds/debian/
* ''bookworm''
sudo dpkg --add-architecture 'i386'
rm -fv '/tmp/winehq.key' '/tmp/winehq-archive.key' && wget -O '/tmp/winehq.key' 'https://dl.winehq.org/wine-builds/winehq.key' && gpg --dearmor --output '/tmp/winehq-archive.key' '/tmp/winehq.key' && sudo mv -fv '/tmp/winehq-archive.key' '/etc/apt/keyrings' && wget -O '/tmp/winehq-bookworm.sources' 'https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources' && sudo mv -fv '/tmp/winehq-bookworm.sources' '/etc/apt/sources.list.d' && sync
====== Software ======
===== Update =====
****
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync
===== General =====
****
sudo apt install --install-recommends filezilla foliate gimp gnome-disk-utility gnome-system-monitor gvfs-backends keepassxc mate-calc thunderbird 7zip aria2 adb fastboot fonts-noto libglib2.0-bin libsecret-tools lm-sensors mesa-utils obs-studio transmission-gtk vlc unar yt-dlp
===== Games =====
****
doomsday flightgear neverball
===== Wine =====
****
winehq-staging winbind icoutils mesa-vulkan-drivers libgl1-mesa-dri:i386 mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386
===== Intel =====
* https://github.com/intel/media-driver#components-and-features
intel-gpu-tools intel-media-va-driver-non-free
===== Tor Browser =====
****
torbrowser-launcher
====== Settings ======
===== Printer =====
* http://localhost:631/admin
* Log-in as regular user (not ''root'')
* Internet Printing Protocol (ipp)
* HP
* IPP Everywhere ™
* Color Mode: Device Gray
* 2-Sided Printing: Long-Edge (Portrait)
ipp://192.168.1.164/ipp/print
Kole
===== Terminal =====
* General -> Scrolling -> Scrollback: 10000
* Appearance -> Background -> Transparent background: ''0.80'' Opacity
==== Settings ====
* TODO
===== KeePassXC =====
==== Settings ====
* General -> [ ] Load previous databases on startup
* Security -> [x] Use DuckDuckGo service to download website icons
==== Add Database Pass to Keyring ====
****
secret-tool store --label='KeePass' 'keepass' 'default'
===== lm_sensors =====
sudo sensors-detect --auto
sudo -e '/etc/modules'
===== Secure Shell =====
* See [[programs;linux;openssh_client|OpenSSH Client]] notes to generate/restore public key
===== Disks =====
==== fstab ====
sudo -e '/etc/fstab'
,data=writeback,nobarrier
mount | grep 'ext4'
==== Trim ====
****
sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
====== Network ======
* See [[servers:upstream_dns_servers|DNS Servers]] for other addresses
nm-connection-editor
1.1.1.2,1.0.0.2
2606:4700:4700::1112,2606:4700:4700::1002
====== Laptop Power Management ======
* [[linux:notes:x86_energy_perf_policy#scripts|udev Rule]]
====== Xorg ======
* [[linux:notes:xorg.conf_snippets|xorg.conf snippets]]
===== HDMI Settings =====
* Session and Startup GUI
* Trigger: ''on login''
xfce4-session-settings
HDMI Settings
bash -c "xrandr --output 'HDMI-1' --set 'Broadcast RGB' 'Full' & xrandr --output 'HDMI-1' --set 'content type' 'Game' & xrandr --output 'HDMI-1' --set 'Colorspace' 'opRGB'"
====== Wine ======
* [[linux:notes:wine#global|Wine]]
====== MIME ======
gio mime 'text/plain' 'org.xfce.mousepad.desktop'
gio mime 'image/jpeg' 'org.xfce.ristretto.desktop'
gio mime 'image/png' 'org.xfce.ristretto.desktop'
gio mime 'image/bmp' 'org.xfce.ristretto.desktop'
gio mime 'application/pdf' 'atril.desktop'
gio mime 'application/epub+zip' 'com.github.johnfactotum.Foliate.desktop'
====== xfconf-query ======
xfconf-query --channel 'xfwm4' --property '/general/use_compositing' --type 'bool' --set 'false'
xfconf-query --channel 'xfwm4' --property '/general/vblank_mode' --type 'string' --set 'off'
====== Firefox ======
* See [[programs;firefox|Firefox]]
====== GRUB ======
* [[linux;notes;kernel_parameters|More Kernel Parameters]]
sudo -e '/etc/default/grub' && sudo update-grub
===== Spinesnap =====
* ''GRUB_CMDLINE_LINUX=''
acpi_osi='Linux' reboot='pci' nohz='off' preempt='none' pci='nocrs,pcie_bus_perf,realloc,pcie_scan_all,big_root_window' i915.enable_fbc='0' i915.enable_psr='0' i915.panel_use_ssc='0' i915.enable_guc='3' i915.guc_log_level='0' i915.nuclear_pageflip='1' i915.enable_hangcheck='0' mitigations='off' i915.mitigations='off' nvme.noacpi='1' nowatchdog modprobe.blacklist='iTCO_wdt' tsc='nowatchdog' ahci.mobile_lpm_policy='1' iwlmvm.power_scheme='1' nvme_core.default_ps_max_latency_us='0' pcie_aspm='off' pcie_port_pm='off' snd_hda_intel.power_save='0' usbcore.autosuspend='-1' rootflags='data=writeback'
==== Thermal Profile ====
****
sudo apt install 'smbios-utils' -y && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo apt purge 'smbios-utils' -y
====== Chicago95 ======
* https://github.com/grassmunk/Chicago95
* https://github.com/grassmunk/Chicago95/commits/master/
===== Theme =====
sudo apt install git gnome-session-canberra
rm -Rf '/tmp/Chicago95-master' ~/'.themes/Chicago95' ~/'.icons/Chicago95' ~/'.icons/Chicago95_Standard_Cursors' ~/'.local/share/sounds/Chicago95'
git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/grassmunk/Chicago95.git' '/tmp/Chicago95-master'
mkdir -p ~/'.themes' ~/'.icons' ~/'.local/share/sounds'
mv '/tmp/Chicago95-master/Theme/Chicago95' ~/'.themes'
mv '/tmp/Chicago95-master/Icons/Chicago95' ~/'.icons'
mv '/tmp/Chicago95-master/Cursors/Chicago95_Standard_Cursors' ~/'.icons'
mv '/tmp/Chicago95-master/sounds/Chicago95' ~/'.local/share/sounds'
mv '/tmp/Chicago95-master/Extras/Microsoft Windows 95 Startup Sound.ogg' ~/'.local/share/sounds/Chicago95/stereo'
rm -Rf '/tmp/Chicago95-master'
xfconf-query --channel 'xsettings' --property '/Net/SoundThemeName' --type 'string' --set 'Chicago95' --create
===== Appearance =====
* Style -> Chicago95
* Icons -> Chicago95
* Settings -> Event sounds -> ''[x]'' Enable event sounds
xfce4-appearance-settings
===== Startup Sound =====
xfce4-session-settings
Chicago95
canberra-gtk-play --file='/home/espionage724/.local/share/sounds/Chicago95/stereo/Microsoft Windows 95 Startup Sound.ogg'
===== Wallpaper =====
* Color: Solid color
* Style -> None
xfdesktop-settings
008080
===== Cursor =====
* Theme -> Chicago 95 Standard
xfce4-mouse-settings
===== Notifications =====
* Appearance -> Theme -> Chicago95
xfce4-notifyd-config
===== Window Manager =====
* Style -> Theme -> Chicago95
* Title font -> Size: ''8''
xfwm4-settings
====== Xfce ======
===== Clipman =====
* History -> ''[ ]'' Remember history
xfce4-clipman-settings
===== Default Applications =====
* Internet -> Web Browser -> Mozilla Firefox
* Internet -> Mail Reader -> Mozilla Thunderbird
* Utilities -> File Manager -> Thunar
* Utilities -> Terminal Emulator -> Xfce Terminal
xfce4-mime-settings
===== Desktop =====
* Menus -> Desktop Menu -> ''[ ]'' Include applications menu on desktop right click
* Menus -> Window List Menu -> ''[ ]'' Show window list menu on desktop middle click
xfdesktop-settings
===== File Manager Preferences =====
* Display -> Thumbnails -> Show thumbnails: Always
* Display -> Thumbnails -> Only show thumbnails for files smaller than: 1 GiB
* Behavior -> Context Menu -> ''[x]'' Show action to permanently delete files and folders
* :?: Advanced -> File Transfer -> Transfer files in parallel: Always
thunar-settings
===== Keyboard =====
****
xfce4-keyboard-settings
==== Shortcuts ====
* [[#updater|Updater script]]
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
bash -c "xfce4-terminal -T 'Debian Updater' -e ~/'.local/scripts/debian-updater.sh'"
xfce4-popup-whiskermenu
===== Terminal Preferences =====
* General -> Scrolling -> Scrollback: ''10000''
* General -> Cursor -> ''[x]'' Cursor blinks
* General -> Clipboard -> ''[ ]'' Show unsafe paste dialog
* Appearance -> Font -> ''[x]'' Use system font
xfce4-terminal --preferences
===== Window Manager =====
* Keyboard -> Workspace 11: Clear ((osu!'s in-game HUD via Ctrl + F11))
xfwm4-settings
===== Window Manager Tweaks =====
* Cycling -> ''[ ]'' Skip windows that have "skip pager" or "skip taskbar" properties set
* Cycling -> ''[x]'' Cycle through windows on all workspaces
* Accessibility -> ''[ ]'' Use mouse wheel on title bar to roll up the window
* Workspaces -> ''[ ]'' Use the mouse wheel on the desktop to switch workspaces
* Compositor -> ''[ ]'' Enable display compositing ((overall lower latency and higher game perf))
xfwm4-tweaks-settings
===== Workspaces =====
* General -> Layout -> Number of workspaces: ''1''
xfwm4-workspace-settings
====== Scripts ======
===== Updater =====
mkdir -p ~/'.local/scripts' && nano ~/'.local/scripts/debian-updater.sh' && chmod +x ~/'.local/scripts/debian-updater.sh'
#!/bin/bash
sudo apt update
sudo apt full-upgrade -y
sudo apt autoremove -y
sudo apt clean
rm -Rf ~/'.cache/mesa_shader_cache'*'/'*
sudo fstrim -v -a
read -n '1' -s -r -p 'Done. Press any key to exit.'
sleep '3'
# End
~/'.local/scripts/debian-updater.sh'
====== Server ======
* For workstations that run servers as a secondary directive
* For headless servers, use [[linux:distros:server:debian|Debian (Server)]]
===== Automatic Updates =====
* :!: 2025/03/04: Untested
==== Service ====
sudo -e '/etc/systemd/system/debian-up.service'
[Service]
Type=oneshot
ExecStartPre='/usr/bin/apt' clean
ExecStart='/usr/bin/apt' update
ExecStart='/usr/bin/apt' full-upgrade -y
ExecStart='/usr/bin/apt' autoremove -y
ExecStartPost='/usr/bin/sync'
ExecStartPost='/usr/bin/systemctl' reboot
===== Timer =====
* 03:00 Oak
sudo -e '/etc/systemd/system/debian-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'debian-up.timer' --now
[Unit]
Description=Software Package Maintenance and Updater
After=network-online.target
Wants=network-online.target
[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true
[Install]
WantedBy=timers.target
====== Notable Folders and Commands ======
* See [[linux:notes:misc]]