Both sides previous revisionPrevious revisionNext revision | Previous revision |
distros:ubuntu_desktop [2023/12/12 19:13] – Sean Rhone | distros:ubuntu_desktop [2024/02/06 16:34] (current) – Sean Rhone |
---|
| |
====== Download ====== | ====== Download ====== |
| |
| ===== Etcher Image Writer ===== |
| |
| * https://etcher.balena.io/#download-etcher |
| |
| ===== Ubuntu ===== |
| |
* https://ubuntu.com/download/desktop | * https://ubuntu.com/download/desktop |
| |
sudo add-apt-repository 'ppa:damentz/liquorix' | sudo add-apt-repository 'ppa:damentz/liquorix' |
| |
===== Keybase ===== | |
| |
* https://keybase.io/ | |
* https://prerelease.keybase.io/ | |
* :!: This is only the signing key, see [[#keybase1|Keybase]] for client installation | |
| |
wget -O '/tmp/code_signing_key.asc' 'https://keybase.io/docs/server_security/code_signing_key.asc' && sudo mv '/tmp/code_signing_key.asc' '/etc/apt/trusted.gpg.d/keybase.asc' && sync | |
| |
===== WineHQ ===== | ===== WineHQ ===== |
* https://wiki.winehq.org/Ubuntu | * https://wiki.winehq.org/Ubuntu |
* https://dl.winehq.org/wine-builds/ | * https://dl.winehq.org/wine-builds/ |
* :!: 23.10 = ''mantic'' | * :!: ''mantic'' = 23.10 |
| |
sudo dpkg --add-architecture 'i386' | sudo dpkg --add-architecture 'i386' |
**** | **** |
| |
sudo apt install --install-recommends 7zip aria2 evolution filezilla gimp keepassxc libreoffice libsecret-tools lm-sensors mesa-utils mpv rhythmbox transmission-gtk unar yt-dlp | 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 mpv obs-studio rhythmbox transmission-gtk unar yt-dlp |
| |
===== Wine ===== | ===== Wine ===== |
* https://wiki.winehq.org/Ubuntu | * 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 | winehq-staging winbind winetricks libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386 icoutils |
| |
===== Liquorix Kernel ===== | ===== Liquorix Kernel ===== |
| |
intel-media-va-driver-non-free | intel-media-va-driver-non-free |
| |
===== Keybase ===== | |
| |
* https://keybase.io | |
* :!: This needs ran as a separate command and not combined with the above package installations | |
| |
rm -Rf '/tmp/keybase_amd64.deb' && wget -O '/tmp/keybase_amd64.deb' 'https://prerelease.keybase.io/keybase_amd64.deb' && sudo apt install '/tmp/keybase_amd64.deb' && rm '/tmp/keybase_amd64.deb' && sync && run_keybase | |
| |
===== Tor Browser ===== | ===== Tor Browser ===== |
===== Steam ===== | ===== Steam ===== |
| |
**** | * https://snapcraft.io/steam |
| |
wget -O '/tmp/steam.deb' 'https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb' && sudo apt install '/tmp/steam.deb' && rm -f '/tmp/steam.deb' && sync | sudo snap install 'steam' |
| |
====== Settings ====== | ====== Settings ====== |
| |
===== Keyboard Shortcuts ===== | ===== Keyboard Shortcuts ===== |
| |
* ''wmctrl'' is useful for Old School RuneScape and toggling between windowed and fullscreen modes | |
| |
<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 && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && sleep '5''"</code> | <code>gnome-terminal --command "sudo sh -c 'apt update && apt full-upgrade -y && apt clean && apt autoremove -y && sync && snap refresh && wget -O '/tmp/sb-hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && mv --force '/tmp/sb-hosts' '/etc/hosts' && sync && fstrim --all --verbose && sync && sleep '5''"</code> |
| |
<code>wmctrl -r 'jagexappletviewer.jagexappletviewer' 'net-runelite-client-RuneLite.net-runelite-client-RuneLite' -x -b 'toggle,fullscreen'</code> | |
| |
==== KeePassXC Auto-Type Fix ==== | |
| |
* :!: 2023/04/29: ''keepassxc'' has ''QT_QPA_PLATFORM=xcb'' in order to work for OSRS on GNOME on Wayland on Ubuntu 23.04 | |
| |
<code>bash -c "secret-tool lookup 'keepass' 'default' | QT_QPA_PLATFORM='xcb' keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"</code> | |
| |
==== Keys ==== | ==== Keys ==== |
* Ctrl + Alt + Z | * Ctrl + Alt + Z |
* Menu | * Menu |
* F6 | |
| |
===== Printer ===== | ===== Printer ===== |
* http://localhost:631/admin | * http://localhost:631/admin |
| |
* Internet Printing Protocol (ipps) -> HP -> IPP Everywhere ™ | * Printer name can be ''Ctrl + F'''d |
| * :!: AppSocket/HP JetDirect -> HP -> HP Officejet Pro 8710, hpcups (en) ((single ''en'' **not** ''en, en'')) |
* Color Mode: Device Gray | * Color Mode: Device Gray |
* Administration -> Set As Server Default | * Administration -> Set As Server Default |
| |
ipps://192.168.1.164/ipp/print | socket://192.168.1.164:9100 |
| |
===== Network ===== | Kole |
| |
==== Google Public DNS ==== | HP Officejet Pro 8710 |
| |
* https://developers.google.com/speed/public-dns | ==== Info ==== |
* See [[notes:dns_servers|DNS servers]] for other DNS servers | |
| |
<code>Wraeclast</code> | * :!: ''HP Officejet Pro 8710, hpcups 3.23.5'' 4 ''(en)'' |
| * With Firefox, do ''Inspect'' |
| * Last one is ''drv'' |
| * https://access.redhat.com/solutions/6971890 implies the ''drv'' path is the modern choice |
| * :!: The IPP option //sometimes// print blurry documents; CUPS says old non-IPP drivers will be deprecated eventually |
| |
<code>8.8.8.8,8.8.4.4</code> | ===== Network ===== |
| |
<code>2001:4860:4860::8888,2001:4860:4860::8844</code> | * See [[notes:dns_servers]] for other servers |
| |
<code>https://dns.google/dns-query</code> | <code>Wraeclast</code> |
| |
===== Nautilus ===== | <code>9.9.9.9,149.112.112.112</code> |
| |
* Sort Folders Before Files | <code>2620:fe::fe,2620:fe::9</code> |
| |
===== Rhythmbox ===== | ===== Rhythmbox ===== |
* 10-notch Transparency | * 10-notch Transparency |
| |
===== Kernel Options ===== | ===== Fan Profile ===== |
| |
==== Intel Perf Counters ==== | * https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager |
| |
* https://wiki.archlinux.org/title/intel_graphics#Enable_performance_support | sudo apt install 'smbios-utils' -y && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo apt purge 'smbios-utils' -y |
| |
=== i915 Early-load === | |
| |
* https://forum.manjaro.org/t/cant-change-dev-i915-perf-stream-paranoid-to-0/66339/10 | |
| |
echo 'i915' | sudo tee --append '/etc/modules' > '/dev/null' && cat '/etc/modules' | grep 'i915' | |
| |
sudo update-initramfs -k 'all' -c | |
| |
=== sysctl === | |
| |
**** | |
| |
echo 'dev.i915.perf_stream_paranoid=0' | sudo tee '/etc/sysctl.d/99-i915-perf.conf' > '/dev/null' && cat '/etc/sysctl.d/99-i915-perf.conf' | |
| |
== Verify == | |
| |
**** | |
| |
sysctl 'dev.i915.perf_stream_paranoid' | grep '0' | |
| |
==== Swappiness ==== | |
| |
**** | |
| |
echo 'vm.swappiness=0' | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' | |
| |
=== Verify === | |
| |
sysctl 'vm.swappiness' | grep '0' | |
| |
cat '/proc/sys/vm/swappiness' | |
| |
==== TCP Fast Open ==== | |
| |
* https://wiki.archlinux.org/title/Sysctl#Enable_TCP_Fast_Open | |
| |
echo 'net.ipv4.tcp_fastopen=3' | sudo tee '/etc/sysctl.d/99-tcp-fastopen.conf' > '/dev/null' && cat '/etc/sysctl.d/99-tcp-fastopen.conf' | |
| |
=== Verify === | |
| |
sysctl 'net.ipv4.tcp_fastopen' | grep '3' | |
| |
cat '/proc/sys/net/ipv4/tcp_fastopen' | |
| |
===== GRUB ===== | ===== GRUB ===== |
sudo -e '/etc/default/grub' && sudo update-grub | sudo -e '/etc/default/grub' && sudo update-grub |
| |
==== Linux OSI ==== | ==== Spinesnap ==== |
| |
**** | * Last updated: 2024/02/06s |
| * ''GRUB_CMDLINE_LINUX='' |
| |
acpi_osi=Linux | sudo -e '/etc/default/grub' && sudo update-grub |
| |
==== PCI ==== | |
| |
**** | |
| |
pci=pcie_bus_perf,realloc,pcie_scan_all,big_root_window | |
| |
==== Intel Optimization ==== | |
| |
* This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot | |
* This also enables GuC and HuC firmware loading if supported by the hardware | |
| |
i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1 i915.enable_guc=3 | <code>video='HDMI-A-1:1920x1080@74' i915.enable_guc='3' usbcore.quirks='1b1c:1b75:gn'</code> |
| |
===== GNOME ===== | ===== GNOME ===== |
| |
==== Notes ==== | ==== Extensions ==== |
| |
* :!: Disable color calibration for the monitor in GNOME Settings ((GNOME for several versions now makes the screen color too warm on Xorg)) | |
| |
==== Hide Top Bar ==== | |
| |
* https://extensions.gnome.org/extension/545/hide-top-bar/ | * https://extensions.gnome.org/extension/545/hide-top-bar/ |
| |
* Install through Firefox, then toggle and configure from Applications -> Extensions | |
| |
==== External Monitor Settings ==== | ==== External Monitor Settings ==== |
| |
sudo rm ~gdm/'.config/monitors.xml' && sync | sudo rm ~gdm/'.config/monitors.xml' && sync |
| |
==== Wayland ==== | |
| |
* :!: ckb-next auto light shutoff requires Xorg | |
* :!: GPU scaling for non-native resolutions requires Xorg | |
* :!: Steam and various games through Wine work better on Xorg | |
* Xorg can be selected at log-in ((there used to be notes here on disabling Wayland on the log-in screen with GDM config)) | |
| |
==== Tweaks ==== | ==== Tweaks ==== |
| |
* [[https://discourse.ubuntu.com/t/why-ubuntu-22-04-is-so-fast-and-how-to-make-it-faster/30369|Why Ubuntu 22.04 is so fast (and how to make it faster)]] | |
* [[notes:wine]] | |
* :!: 2023/05/17: ''MESA_GL_VERSION_OVERRIDE=4.6FC'' caused ''steam'' to segfault on Intel UHD 630 | |
| |
sudo -e '/etc/profile.d/99-tweaks.sh' | sudo -e '/etc/profile.d/99-tweaks.sh' |
export MESA_DISK_CACHE_SINGLE_FILE='1' | export MESA_DISK_CACHE_SINGLE_FILE='1' |
export MESA_DISK_CACHE_DATABASE='1' | export MESA_DISK_CACHE_DATABASE='1' |
| export MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ='1' |
export VAAPI_MPEG4_ENABLED='1' | export VAAPI_MPEG4_ENABLED='1' |
export mesa_glthread='true' | |
export MESA_NO_ERROR='1' | |
| |
# Intel | |
export INTEL_COMPUTE_CLASS='1' | |
export RUSTICL_ENABLE='iris' | |
export MESA_GL_VERSION_OVERRIDE='4.6COMPAT' | |
| |
# End</code> | # End</code> |
=== All-in-one === | === All-in-one === |
| |
* Last updated: 2022/06/08 | * Last updated: 2023/12/13 |
| |
gsettings reset 'org.gnome.shell' 'app-picker-layout' && gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'send-events' 'disabled-on-external-mouse' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'natural-scroll' 'false' && gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'disable-while-typing' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'click-method' 'areas' && gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' | gsettings reset 'org.gnome.shell' 'app-picker-layout' && gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'send-events' 'disabled-on-external-mouse' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'natural-scroll' 'false' && gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'disable-while-typing' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'click-method' 'areas' && 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.wm.preferences' 'disable-workarounds' 'true' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' |
| |
=== Individual === | === Individual === |
| |
* Last updated: 2022/06/08 | * Last updated: 2023/12/13 |
| |
gsettings reset 'org.gnome.shell' 'app-picker-layout' | gsettings reset 'org.gnome.shell' 'app-picker-layout' |
| |
gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true' | 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.wm.preferences' 'disable-workarounds' 'true' |
| |
gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' | gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' |
===== lm_sensors ===== | ===== lm_sensors ===== |
| |
* ''--auto'' can be used here, but if modules need to be added to ''/etc/modules'', not using ''--auto'' will allow sensors to do it on-prompt | sudo sensors-detect --auto |
| |
sudo sensors-detect | |
| |
sudo -e '/etc/modules' | sudo -e '/etc/modules' |
| |
===== mpv ===== | ===== mpv ===== |
| |
* [[https://wiki.archlinux.org/index.php/mpv#High_quality_configurations|ArchWiki mpv High quality configurations]] | |
| |
mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf' | mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf' |
| |
<code> | <code> |
| save-position-on-quit |
| sub-auto=fuzzy |
| force-window=yes |
profile=gpu-hq | profile=gpu-hq |
scale=ewa_lanczossharp | scale=ewa_lanczossharp |
| |
sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l | sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l |
| |
==== XFS Scrub ==== | |
| |
* [[https://wiki.archlinux.org/title/XFS#Online_Metadata_Checking_(scrub)|XFS - ArchWiki]] | |
* :!: This is only necessary if XFS is being used on any persistent drives such as a NAS, and requires ''xfsprogs'' to be installed | |
| |
sudo apt install 'xfsprogs' | |
| |
sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l | |
| |
===== UTC ===== | ===== UTC ===== |
* See [[notes:wine|Wine]] | * See [[notes:wine|Wine]] |
| |
====== Wayland ====== | ===== Wayland ===== |
| |
===== i915 HDMI ===== | ==== Full RGB HDMI ==== |
| |
* https://www.onetransistor.eu/2021/08/hdmi-picture-quantization-range-linux.html | * See [[notes:proptest_full_rgb]] for more ports |
* https://old.reddit.com/r/linuxquestions/comments/qrpnkw/need_help_with_intel_graphics_broadcast_rgb_with/hk83j18/ | |
* This sets RGB Full on HDMI, and the content type to ''Game'' on HDMI for low-latency | |
* Run ''proptest'' from a Wayland session to see more ''connector'' and prop names | |
* :!: This will prevent GDM from displaying if ''proptest'' is not installed | |
* 2023/05/13: The prop value for ''Broadcast RGB'' changed from ''98'' to ''99'' | |
| |
sudo apt install 'libdrm-tests' -y && sync | sudo apt install 'libdrm-tests' -y && sudo -e '/etc/gdm3/PostLogin/Default' && sudo chmod +x '/etc/gdm3/PostLogin/Default' && sync |
| |
sudo -e '/etc/gdm3/PostLogin/Default' && sudo chmod +x '/etc/gdm3/PostLogin/Default' && sync | |
| |
<code> | <code> |
#!/usr/bin/bash | #!/bin/bash |
proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' | proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' |
proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '4'</code> | proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '4'</code> |
| |
====== Xorg ====== | ====== Firefox ====== |
| |
* See [[notes:xorg.conf_snippets|xorg.conf Snippets]] | * See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync |
| * https://wiki.archlinux.org/title/Firefox/Privacy |
| |
====== Mozilla Firefox ====== | ===== about:config ===== |
| |
* See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync | * See [[notes:firefox#aboutconfig|about:config]] |
| |
===== Tweaks ===== | ===== Extensions ===== |
| |
echo 'export MOZ_USE_XINPUT2=1' | sudo tee '/etc/profile.d/99-firefox-xinput2.sh' > '/dev/null' && cat '/etc/profile.d/99-firefox-xinput2.sh' | * [[https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/|Decentraleyes]] |
| * [[https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/|uBlock Origin]] |
| |
| <code>gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/' 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'</code> |
| |
| ==== uBlock Origin ==== |
| |
| ==== Filters list ==== |
| |
| **** |
| |
| <code> |
| https://www.fanboy.co.nz/fanboy-problematic-sites.txt |
| https://www.fanboy.co.nz/r/fanboy-ultimate.txt |
| https://www.fanboy.co.nz/fanboy-cookiemonster_ubo.txt |
| https://www.fanboy.co.nz/enhancedstats.txt</code> |
| |
| ==== My filters ==== |
| |
| **** |
| |
| <code> |
| ! Phoronix as a news source and not a toxic wasteland |
| ! 2023/12/13 |
| www.phoronix.com##.details > .comments |
| www.phoronix.com##.author |
| www.phoronix.com##.comments-label |
| www.phoronix.com###sharebar |
| www.phoronix.com###social |
| www.phoronix.com###searchbox |
| www.phoronix.com##div.popular-list > .comments |
| |
echo 'export MOZ_ENABLE_WAYLAND=1' | sudo tee '/etc/profile.d/99-firefox-wayland.sh' > '/dev/null' && cat '/etc/profile.d/99-firefox-wayland.sh' | ! Hide RuneScape Wiki clocks |
| ! 2023/12/13 |
| oldschool.runescape.wiki###utcdate > [href="#"] |
| oldschool.runescape.wiki###footer-info-lastmod |
| runescape.wiki##[href="/w/Clock_(interface)"] |
| runescape.wiki###footer-info-lastmod |
| |
sudo -e '/etc/profile.d/99-firefox-xinput2.sh' | ! X, toxic enough for an entire domain block |
| ! 2023/12/13 |
| x.com |
| twitter.com |
| |
sudo -e '/etc/profile.d/99-firefox-wayland.sh' | ! End</code> |
| |
===== DNS over HTTPS ===== | ===== DNS over HTTPS ===== |
| |
* https://developers.google.com/speed/public-dns/docs/doh | * See [[notes:dns_servers]] for other addresses |
* See [[notes:dns_servers|DNS Servers]] for other DoH addresses | |
| |
<code>https://dns.google/dns-query</code> | <code>https://dns.quad9.net/dns-query</code> |
| |
====== Server ====== | ====== Server ====== |