linux:distros:debian_12_xfce
This is an old revision of the document!
Table of Contents
Information
Download
debian-12.10.0-amd64-netinst.iso
Installation Notes
No
root
password- Entire disk, one partition
Repositories
nonfree
WineHQ
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
intel-gpu-tools intel-media-va-driver-non-free
Tor Browser
torbrowser-launcher
Settings
Printer
- 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 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 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
Xorg
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
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'
Keyboard Shortcuts
xfce4-keyboard-settings
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
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 Firefox
GRUB
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
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
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
- Chicago 95 Standard
xfce4-mouse-settings
Notifications
- Appearance → Theme → Chicago95
xfce4-notifyd-config
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 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 misc
/srv/www/wiki/data/attic/linux/distros/debian_12_xfce.1744674876.txt.gz · Last modified: by Sean Rhone