====== Information ======
* Ubuntu ((https://ubuntu.com/))
* Desktop ((https://ubuntu.com/desktop))
* 24.04.1 LTS (Noble Numbat)
====== Download ======
===== Etcher Image Writer =====
* https://etcher.balena.io/#download-etcher
* Windows
===== Ubuntu =====
* https://ubuntu.com/download/desktop
====== Repositories ======
===== Liquorix Kernel =====
* https://liquorix.net/
sudo add-apt-repository 'ppa:damentz/liquorix'
===== WineHQ =====
* https://www.winehq.org/
* https://wiki.winehq.org/Ubuntu
* https://dl.winehq.org/wine-builds/
* :!: ''noble'' = 24.04
sudo dpkg --add-architecture 'i386'
wget -O '/tmp/winehq.key' 'https://dl.winehq.org/wine-builds/winehq.key' && sudo mv '/tmp/winehq.key' '/etc/apt/trusted.gpg.d/winehq.asc' && echo 'deb https://dl.winehq.org/wine-builds/ubuntu/ noble main' | sudo tee '/etc/apt/sources.list.d/winehq.list' > '/dev/null' && sync
===== oibaf/graphics-drivers =====
* https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
sudo add-apt-repository 'ppa:oibaf/graphics-drivers'
====== Software ======
===== Update =====
==== System ====
****
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync
==== Firmware ====
****
sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose && sync
==== Snaps ====
****
sudo snap refresh && sync
===== General =====
****
sudo apt install --install-recommends 7zip adb fastboot aria2 evolution filezilla file-roller foliate gbrainy gimp gnome-shell-extension-manager keepassxc libreoffice libsecret-tools lm-sensors mesa-utils obs-studio transmission-gtk vlc unar yt-dlp
===== Games =====
****
neverball neverputt flightgear
===== Wine =====
* https://wiki.winehq.org/Ubuntu
winehq-staging winbind winetricks libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386 icoutils
===== Liquorix Kernel =====
****
linux-image-liquorix-amd64 linux-headers-liquorix-amd64
===== Intel Media Driver for VAAPI =====
* https://github.com/intel/media-driver#components-and-features
vainfo intel-media-va-driver-non-free
vainfo
===== Tor Browser =====
****
torbrowser-launcher
===== Google Chrome =====
****
wget -O '/tmp/google-chrome-stable_current_amd64.deb' 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb' && sudo apt install '/tmp/google-chrome-stable_current_amd64.deb' && rm '/tmp/google-chrome-stable_current_amd64.deb' && sync
===== Steam =====
* https://snapcraft.io/steam
sudo snap install 'steam'
====== Settings ======
===== Keyboard Shortcuts =====
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
gnome-terminal --command "sudo sh -c 'apt update && apt full-upgrade -y && apt clean && apt autoremove -y && sync && snap refresh && sync && fstrim --all --verbose && sync && sleep '5''"
==== Keys ====
* Listed respectively to above
* Ctrl + Alt + Z
* Menu
===== 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
===== Network =====
==== systemd-resolved ====
* systemd-resolved caches DNS
* [[servers;upstream_dns_servers#systemd-resolved|Quad9 ECS]], see [[servers;upstream_dns_servers|DNS Servers]] for other addresses
resolvectl status
sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'
[Resolve]
DNS=9.9.9.11#dns11.quad9.net 149.112.112.11#dns11.quad9.net 2620:fe::11#dns11.quad9.net 2620:fe::fe:11#dns11.quad9.net
DNSOverTLS=yes
===== Terminal =====
* 10-notch Transparency
===== Fan Profile =====
* https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager
* :!: Requires standard Ubuntu kernel and doesn't work as-is from Liquorix
sudo apt install 'smbios-utils' -y && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo apt purge 'smbios-utils' -y
===== GRUB =====
==== Config ====
* :!: [[linux:notes:kernel_parameters|More Kernel Parameters]]
* Add options in ''GRUB_CMDLINE_LINUX_DEFAULT=''
sudo -e '/etc/default/grub' && sudo update-grub
==== Spinesnap ====
* ''GRUB_CMDLINE_LINUX=''
sudo -e '/etc/default/grub' && sudo update-grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
video='HDMI-A-1:1920x1080MR@75' acpi_osi='Linux' reboot='pci' nohz='off' enable_mtrr_cleanup iomem='relaxed' pcie_ports='native' 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' nvme.poll_queues='4' nvme.use_threaded_interrupts='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' acpi_enforce_resources='no' accept_memory='eager' clocksource='tsc' pd_ignore_unused clk_ignore_unused rootflags='data=writeback' intel_pstate='enable'
===== GNOME =====
==== Extensions ====
* https://extensions.gnome.org/extension/545/hide-top-bar/
* https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/
==== Disable Wayland ====
cat '/etc/gdm3/custom.conf' | grep '#WaylandEnable' > '/dev/null' && sudo sed -i 's/'#WaylandEnable=false'/'WaylandEnable=false'/g' '/etc/gdm3/custom.conf' && cat '/etc/gdm3/custom.conf' | grep 'WaylandEnable=false'
sudo -e '/etc/gdm3/custom.conf'
==== External Monitor Settings ====
* This copies the configured monitor settings from the current user to ''gdm'' and also applies it to the log-in screen
* Notably useful for setting a laptop's built-in screen as disabled for the log-in screen
sudo cp ~/'.config/monitors.xml' ~gdm/'.config/monitors.xml' && sudo chown 'gdm':'gdm' ~gdm/'.config/monitors.xml'
=== Undo ===
****
sudo rm ~gdm/'.config/monitors.xml' && sync
==== Tweaks ====
sudo -e '/etc/profile.d/99-tweaks.sh'
# Clutter
export CLUTTER_PAINT='disable-dynamic-max-render-time'
# GTK
export GSK_RENDERER='gl'
# Mesa
export MESA_DISK_CACHE_SINGLE_FILE='1'
export MESA_DISK_CACHE_DATABASE='1'
export MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ='1'
export VAAPI_MPEG4_ENABLED='1'
export mesa_glthread='true'
export MESA_NO_ERROR='1'
# End
==== Settings ====
=== All-in-one ===
****
gsettings reset 'org.gnome.shell' 'app-picker-layout' & gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false' & gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true' & gsettings set 'org.gnome.desktop.wm.preferences' 'focus-mode' 'click' & gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
=== Individual ===
gsettings reset 'org.gnome.shell' 'app-picker-layout'
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'
gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true'
gsettings set 'org.gnome.desktop.wm.preferences' 'focus-mode' 'click'
gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
===== KeePassXC =====
==== Settings ====
* General -> [ ] Load previous databases on startup
* Security -> [x] Use DuckDuckGo service to download website icons
==== Add Database Password to GNOME Keyring ====
****
secret-tool store --label='KeePass' 'keepass' 'default'
===== lm_sensors =====
sudo sensors-detect --auto
sudo -e '/etc/modules'
===== Laptop Power Management =====
* See [[linux:notes:x86_energy_perf_policy#scripts|udev Rule]]
===== Secure Shell =====
* See [[programs;linux;openssh_client|OpenSSH Client]] notes to generate/restore public key
===== Uncomplicated Firewall =====
* See [[linux:notes:ufw_uncomplicated_firewall|ufw]] for more notes
sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw enable && sudo systemctl enable 'ufw'
sudo ufw allow 'ssh'
sudo ufw status
===== Disks =====
==== fstab ====
* ext4
sudo -e '/etc/fstab'
,nobarrier
mount | grep 'nobarrier'
mount | grep 'data=writeback'
==== Trim ====
****
sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
===== Wine =====
* See [[linux:notes:wine#global|Wine]]
===== Xorg =====
===== Full HDMI =====
* Startup Applications GUI
Full RGB HDMI
bash -c "xrandr --output 'HDMI-1' --set 'Broadcast RGB' 'Full' & xrandr --output 'HDMI-1' --set 'content type' 'Game'"
==== evdev ====
* See [[linux:notes:xorg.conf_snippets#evdev|xorg.conf snippet]]
====== Firefox ======
* See [[programs;firefox|Firefox]]
====== Server ======
* For workstations that run servers as a secondary directive
* For headless servers, use [[linux:distros:server:ubuntu_server|Ubuntu Server]]
===== Automatic Updates =====
==== Service ====
sudo -e '/etc/systemd/system/ubuntu-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/ubuntu-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'ubuntu-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]]