Both sides previous revisionPrevious revisionNext revision | Previous revision |
linux:distros:ubuntu [2024/12/25 15:48] – [Config] Sean Rhone | linux:distros:ubuntu [2025/04/08 19:55] (current) – Sean Rhone |
---|
| |
====== TODOs ====== | ====== TODOs ====== |
| |
===== AppArmor Mesa Cache ===== | |
| |
* https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/2081692/comments/3 | |
* https://gitlab.com/apparmor/apparmor/-/merge_requests/1333/diffs | |
* :!: 2024/12/24: Needed with GNOME on Xorg session | |
| |
sudo mkdir -p '/etc/apparmor.d/abstractions/mesa.d' && sudo -e '/etc/apparmor.d/abstractions/mesa.d/lp2081692' | |
| |
<code> | |
owner @{HOME}/.cache/mesa_shader_cache_db/ rw, | |
owner @{HOME}/.cache/mesa_shader_cache_db/index rwk, | |
owner @{HOME}/.cache/mesa_shader_cache_db/part*/ rw, | |
owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.db rwk, | |
owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.idx rwk, | |
</code> | |
| |
====== Download ====== | ====== Download ====== |
| |
===== Etcher Image Writer ===== | |
| |
* https://etcher.balena.io/#download-etcher | |
* Windows | |
| |
===== Ubuntu ===== | |
| |
* https://ubuntu.com/download/desktop | * https://ubuntu.com/download/desktop |
| * https://releases.ubuntu.com/24.10/ |
| |
====== Repositories ====== | ====== Repositories ====== |
**** | **** |
| |
sudo apt install --install-recommends 7zip adb fastboot aria2 evolution filezilla file-roller foliate gimp gnome-shell-extension-manager keepassxc libreoffice libsecret-tools lm-sensors mesa-utils obs-studio transmission-gtk vlc unar yt-dlp | sudo apt install --install-recommends 7zip adb fastboot aria2 filezilla file-roller foliate gimp gnome-shell-extension-manager keepassxc libreoffice libsecret-tools lm-sensors mesa-utils obs-studio thunderbird transmission-gtk vlc unar yt-dlp |
| |
===== Games ===== | ===== Games ===== |
**** | **** |
| |
neverball neverputt flightgear | neverball flightgear doomsday |
| |
===== Wine ===== | ===== Wine ===== |
| |
* https://wiki.winehq.org/Ubuntu | * https://wiki.winehq.org/Ubuntu |
| * https://dl.winehq.org/wine-builds/ubuntu/dists/oracular/main/binary-amd64/?C=M;O=D |
| |
winehq-staging winbind winetricks libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386 icoutils | winehq-staging winbind winetricks libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386 icoutils |
| |
===== Intel Media Driver for VAAPI ===== | ===== Intel ===== |
| |
* https://github.com/intel/media-driver#components-and-features | intel-gpu-tools intel-media-va-driver-non-free |
| |
vainfo intel-media-va-driver-non-free | |
| |
vainfo | vainfo |
| |
torbrowser-launcher | 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 ===== | ===== Steam ===== |
<code>bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"</code> | <code>bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"</code> |
| |
<code>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''"</code> | <code>gnome-terminal -- bash -c "sudo apt update && sudo apt full-upgrade -y && sudo apt clean && sudo apt autoremove -y && sudo snap refresh && tracker3 reset --filesystem --rss && rm -Rf ~/'.cache/mesa_shader_cache'*'/'* && sudo fstrim --all --verbose && sync && sleep '5'"</code> |
| |
==== Keys ==== | ==== Keys ==== |
| |
* Ctrl + Alt + Z | * Ctrl + Alt + Z |
* Menu | * F6 |
| |
===== Printer ===== | ===== Printer ===== |
* systemd-resolved caches DNS | * systemd-resolved caches DNS |
* See [[servers;upstream_dns_servers|DNS Servers]] for other addresses | * 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' | sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf' |
[Resolve] | [Resolve] |
DNS=1.1.1.2#security.cloudflare-dns.com 1.0.0.2#security.cloudflare-dns.com 2606:4700:4700::1112#security.cloudflare-dns.com 2606:4700:4700::1002#security.cloudflare-dns.com | DNS=1.1.1.2#security.cloudflare-dns.com 1.0.0.2#security.cloudflare-dns.com 2606:4700:4700::1112#security.cloudflare-dns.com 2606:4700:4700::1002#security.cloudflare-dns.com |
DNSOverTLS=yes</code> | DNSOverTLS=yes |
| |
===== Terminal ===== | # End</code> |
| |
| === Verify === |
| |
| resolvectl status |
| |
* 10-notch Transparency | resolvectl status | grep '+DNSOverTLS' |
| |
===== GRUB ===== | ===== GRUB ===== |
==== Spinesnap ==== | ==== Spinesnap ==== |
| |
* ''GRUB_CMDLINE_LINUX='' | * ''GRUB_CMDLINE_LINUX='' (not default) |
| |
sudo -e '/etc/default/grub' && sudo update-grub | sudo -e '/etc/default/grub' && sudo update-grub |
<code>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"</code> | <code>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"</code> |
| |
<code>acpi_osi='Linux' reboot='pci' nohz='off' preempt='full' iommu='pt' pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' i915.enable_dc='0' i915.enable_fbc='0' i915.enable_psr='0' i915.enable_guc='3' ahci.mobile_lpm_policy='1' nvme_core.default_ps_max_latency_us='0' pcie_aspm='off' snd_hda_intel.power_save='0' usbcore.autosuspend='-1' rootflags='data=writeback'</code> | <code>GRUB_CMDLINE_LINUX="x"</code> |
| |
| <code>acpi_osi='Linux' reboot='pci' nohz='off' preempt='full' iommu='pt' pci='nocrs,pcie_bus_perf,realloc,pcie_scan_all,big_root_window' i915.enable_fbc='0' i915.enable_psr='0' i915.enable_guc='3' i915.guc_log_level='0' 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'</code> |
| |
===== GNOME ===== | ===== GNOME ===== |
| |
==== Disable Wayland ==== | ==== Disable Wayland ==== |
| |
* 2024/12/23: Xorg still preferred over Wayland on GNOME 47 ((laggy mouse for period after log-in)) | |
| |
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' | 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' |
| |
==== Tweaks ==== | ==== Tweaks ==== |
| |
* TODO: ''gl'' vs ''vulkan'' | |
| |
sudo -e '/etc/profile.d/99-tweaks.sh' | sudo -e '/etc/profile.d/99-tweaks.sh' |
# Clutter | # Clutter |
export CLUTTER_PAINT='disable-dynamic-max-render-time' | export CLUTTER_PAINT='disable-dynamic-max-render-time' |
| export CLUTTER_VBLANK='none' |
| |
| # Mutter |
| export MUTTER_DEBUG_FORCE_KMS_MODE='simple' |
| |
# GTK | # GTK |
| |
# Mesa | # Mesa |
export MESA_DISK_CACHE_SINGLE_FILE='1' | export mesa_glthread='false' |
export MESA_DISK_CACHE_DATABASE='1' | |
export MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ='1' | |
| |
# End</code> | # End</code> |
| |
* Startup Applications GUI | * Startup Applications GUI |
* ''HDMI-1'' = ''modesetting'' | |
| |
<code>Full RGB HDMI</code> | <code>Full RGB HDMI</code> |
| |
<code>bash -c "xrandr --output 'HDMI-1' --set 'Broadcast RGB' 'Full' & xrandr --output 'HDMI-1' --set 'content type' 'Game'"</code> | <code>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'"</code> |
| |
==== Xorg ==== | ==== Xorg ==== |