Both sides previous revisionPrevious revisionNext revision | Previous revision |
distros:ubuntu_desktop [2021/10/29 20:00] – Sean Rhone | distros:ubuntu_desktop [2024/02/06 16:34] (current) – Sean Rhone |
---|
* Ubuntu ((https://ubuntu.com/)) | * Ubuntu ((https://ubuntu.com/)) |
* Desktop ((https://ubuntu.com/desktop)) | * Desktop ((https://ubuntu.com/desktop)) |
| * 23.10 |
| |
====== Download ====== | ====== Download ====== |
| |
| ===== Etcher Image Writer ===== |
| |
| * https://etcher.balena.io/#download-etcher |
| |
| ===== Ubuntu ===== |
| |
* https://ubuntu.com/download/desktop | * https://ubuntu.com/download/desktop |
* Unified hosts + fakenews + gambling | * Unified hosts + fakenews + gambling |
| |
wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo cp '/etc/hosts' '/etc/hosts-bak' && sudo mv '/tmp/hosts-tmp' '/etc/hosts' && sync | ===== Initial ===== |
| |
cat '/etc/hosts' | grep 'Date:' | * Only run once |
| |
sudo -e '/etc/hosts' | ls '/etc/hosts~' || wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo cp --backup '/tmp/hosts-tmp' '/etc/hosts' && sync |
| |
| ===== Update ===== |
| |
| **** |
| |
| ls '/etc/hosts~' && wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo mv --force '/tmp/hosts-tmp' '/etc/hosts' && sync |
| |
| ===== Restore Backup ===== |
| |
| **** |
| |
| ls '/etc/hosts~' && sudo mv --force '/etc/hosts~' '/etc/hosts' && sync |
| |
| ====== 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/ |
| * :!: ''mantic'' = 23.10 |
| |
| 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/ mantic 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 ====== | ====== Software ====== |
**** | **** |
| |
sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose | sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose && sync |
| |
==== Snaps ==== | ==== Snaps ==== |
**** | **** |
| |
sudo snap refresh | sudo snap refresh && sync |
| |
===== General ===== | ===== General ===== |
**** | **** |
| |
sudo apt install evolution filezilla gimp keepassxc mpv transmission-gtk aria2 htop unar p7zip-full mesa-utils ffmpeg libsecret-tools lm-sensors libreoffice rhythmbox | 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 |
| |
==== OpenVPN ==== | ===== Wine ===== |
| |
**** | * https://wiki.winehq.org/Ubuntu |
| |
network-manager-openvpn-gnome | winehq-staging winbind winetricks libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386 icoutils |
| |
==== ckb-next ==== | ===== Liquorix Kernel ===== |
| |
* https://github.com/ckb-next/ckb-next | **** |
| |
ckb-next | linux-image-liquorix-amd64 linux-headers-liquorix-amd64 |
| |
==== Wine ==== | ===== Intel Media Driver for VAAPI ===== |
| |
**** | * https://github.com/intel/media-driver#components-and-features |
| |
wine winetricks | intel-media-va-driver-non-free |
| |
==== Tor Browser ==== | ===== Tor Browser ===== |
| |
**** | **** |
torbrowser-launcher | torbrowser-launcher |
| |
==== Keybase ==== | ===== Google Chrome ===== |
| |
* 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 | 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 |
| |
==== Google Chrome ==== | ===== Steam ===== |
| |
* :!: TODO: This may need updated to run with ''apt'' instead of ''dpkg'' | * https://snapcraft.io/steam |
| |
wget -O '/tmp/google-chrome-stable_current_amd64.deb' 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb' && sudo dpkg --install '/tmp/google-chrome-stable_current_amd64.deb' || sudo apt install -f && rm '/tmp/google-chrome-stable_current_amd64.deb' && sync | sudo snap install 'steam' |
| |
====== Settings ====== | ====== Settings ====== |
===== Keyboard Shortcuts ===== | ===== Keyboard Shortcuts ===== |
| |
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'" | <code>bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"</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>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> |
| |
==== Keys ==== | ==== Keys ==== |
| |
* Ctrl + Alt + Z | * Ctrl + Alt + Z |
* Pause or F7 | * Menu |
| |
===== Printer ===== | ===== Printer ===== |
* http://localhost:631/admin | * http://localhost:631/admin |
| |
* ''HP OfficeJet Pro 8710, driverless, cups-filters'' | * Printer name can be ''Ctrl + F'''d |
* Print Color Mode: Device Gray | * :!: AppSocket/HP JetDirect -> HP -> HP Officejet Pro 8710, hpcups (en) ((single ''en'' **not** ''en, en'')) |
| * Color Mode: Device Gray |
* Administration -> Set As Server Default | * Administration -> Set As Server Default |
| |
socket://192.168.1.164:9100 | socket://192.168.1.164:9100 |
| |
===== gedit ===== | Kole |
| |
* 4 Tab width | HP Officejet Pro 8710 |
* Insert Spaces for Tab mode | |
| |
===== Network ===== | ==== Info ==== |
| |
==== Cloudflare ==== | * :!: ''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 |
| |
* https://1.1.1.1/dns/ | ===== Network ===== |
* See [[notes:dns_servers|DNS servers]] for other DNS servers | |
| |
<code>1.1.1.1,1.0.0.1</code> | * See [[notes:dns_servers]] for other servers |
| |
<code>2606:4700:4700::1111,2606:4700:4700::1001</code> | <code>Wraeclast</code> |
| |
==== VPN.AC ==== | <code>9.9.9.9,149.112.112.112</code> |
| |
* See [[information:vpn.ac|VPN.AC]] | <code>2620:fe::fe,2620:fe::9</code> |
* :!: If using this VPN, disable IPv6 from NetworkManager | |
| |
===== Rhythmbox ===== | ===== Rhythmbox ===== |
| |
* 10-notch Transparency | * 10-notch Transparency |
| |
| ===== Fan Profile ===== |
| |
| * https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager |
| |
| sudo apt install 'smbios-utils' -y && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo apt purge 'smbios-utils' -y |
| |
===== GRUB ===== | ===== GRUB ===== |
==== Config ==== | ==== Config ==== |
| |
**** | * :!: [[notes:kernel_parameters|More Kernel Parameters]] |
| * Add options in ''GRUB_CMDLINE_LINUX_DEFAULT='' |
| |
sudo -e '/etc/default/grub' && sudo update-grub | sudo -e '/etc/default/grub' && sudo update-grub |
| |
==== amdgpu ==== | ==== Spinesnap ==== |
| |
| * Last updated: 2024/02/06s |
| * ''GRUB_CMDLINE_LINUX='' |
| |
| sudo -e '/etc/default/grub' && sudo update-grub |
| |
| <code>video='HDMI-A-1:1920x1080@74' i915.enable_guc='3' usbcore.quirks='1b1c:1b75:gn'</code> |
| |
| ===== GNOME ===== |
| |
| ==== Extensions ==== |
| |
| * https://extensions.gnome.org/extension/545/hide-top-bar/ |
| |
| ==== External Monitor Settings ==== |
| |
* Allows use of Overdrive options for overclocking and notably increasing the Power Limit | * 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 |
| |
amdgpu.ppfeaturemask=0xffffffff | sudo cp ~/'.config/monitors.xml' ~gdm/'.config/monitors.xml' && sudo chown 'gdm':'gdm' ~gdm/'.config/monitors.xml' |
| |
=== Verify === | === Undo === |
| |
**** | **** |
| |
cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295' | sudo rm ~gdm/'.config/monitors.xml' && sync |
| |
===== GNOME ===== | ==== Tweaks ==== |
| |
==== Settings ==== | sudo -e '/etc/profile.d/99-tweaks.sh' |
| |
=== All-in-one === | <code> |
| # Mutter |
| export MUTTER_DEBUG_ENABLE_ATOMIC_KMS='0' |
| export MUTTER_DEBUG_FORCE_KMS_MODE='simple' |
| |
* Last updated: 2021/10/29 | # Clutter |
| export CLUTTER_PAINT='disable-dynamic-max-render-time' |
| |
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false' && 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' | # 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' |
| |
gsettings set 'org.gnome.software' 'download-updates' 'false' | # End</code> |
| |
gsettings reset 'org.gnome.shell' 'app-picker-layout' | ==== Settings ==== |
| |
| === All-in-one === |
| |
| * 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.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: 2021/10/29 | * Last updated: 2023/12/13 |
| |
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false' | 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' 'send-events' 'disabled-on-external-mouse' |
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.interface' 'clock-show-weekday' 'true' | gsettings set 'org.gnome.desktop.wm.preferences' 'focus-mode' 'click' |
| |
== Other == | gsettings set 'org.gnome.desktop.wm.preferences' 'disable-workarounds' 'true' |
| |
* The first depend on GNOME Software existing | gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' |
* The second needs GNOME 40+ and isn't applicable on Ubuntu 21.04 | |
| |
gsettings set 'org.gnome.software' 'download-updates' 'false' | |
| |
gsettings reset 'org.gnome.shell' 'app-picker-layout' | |
| |
===== Hostname ===== | |
| |
* Change ''x'' to computer name | |
| |
hostnamectl set-hostname 'x' | |
| |
===== Keybase ===== | |
| |
* :!: Run after initial install | |
| |
run_keybase | |
| |
===== KeePassXC ===== | ===== KeePassXC ===== |
===== lm_sensors ===== | ===== lm_sensors ===== |
| |
* ''--auto'' is quicker, but more things are detected by doing the full scan | sudo sensors-detect --auto |
| |
sudo sensors-detect | sudo -e '/etc/modules' |
| |
sudo sensors-detect --auto | |
| |
===== 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 |
video-sync=display-resample | video-sync=display-resample |
interpolation | interpolation |
tscale=oversample</code> | tscale=oversample |
| hwdec=vaapi |
===== NetworkManager ===== | hwdec-codecs=all</code> |
| |
* ''wifi.powersave'' can be ''2'' for disabled, or ''3'' for enabled | |
* :!: ''ethernet.cloned-mac-address=random'' breaks USB Tethering with iOS/iPhones | |
| |
sudo -e '/etc/NetworkManager/conf.d/99-custom.conf' | |
| |
<code> | |
[device-mac-randomization] | |
wifi.scan-rand-mac-address=yes | |
| |
[connection-mac-randomization] | |
wifi.cloned-mac-address=random | |
| |
[connection] | |
wifi.powersave=2</code> | |
| |
<code> | |
[connection-mac-randomization] | |
ethernet.cloned-mac-address=random</code> | |
| |
===== Laptop Power Management ===== | ===== Laptop Power Management ===== |
==== Trim ==== | ==== Trim ==== |
| |
* :!: Enable only if a SSD is being used for Linux | **** |
| |
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, and requires ''xfsprogs'' to be installed | |
| |
sudo apt install 'xfsprogs' -y && sync | |
| |
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]] |
| |
====== Xorg ====== | ===== Wayland ===== |
| |
* See [[notes:xorg.conf_snippets|xorg.conf Snippets]] | ==== Full RGB HDMI ==== |
| |
===== Nightwane ===== | * See [[notes:proptest_full_rgb]] for more ports |
| |
* :!: With Fedora 34 as of 2021/05/12, the ''amdgpu'' Xorg DDX driver has the screen more warm/yellowish and breaks calibration | sudo apt install 'libdrm-tests' -y && sudo -e '/etc/gdm3/PostLogin/Default' && sudo chmod +x '/etc/gdm3/PostLogin/Default' && sync |
* :!: This doesn't happen with ''modesetting'' on Xorg, nor at all with GNOME on Wayland | |
* Since ''amdgpu'' is installed and used by-default on Xorg, removing it causes ''modesetting'' to be used instead | |
* [[http://www.lagom.nl/lcd-test/contrast.php|Contrast - Lagom LCD test]] | |
| |
* :!: TODO: Test if this is necessary on Ubuntu 21.04+ | <code> |
| #!/bin/bash |
| proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' |
| proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '4'</code> |
| |
<code>sudo apt remove 'xserver-xorg-video-amdgpu' && sync</code> | ====== Firefox ====== |
| |
====== Mozilla Firefox ====== | |
| |
* See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync | * See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync |
| * https://wiki.archlinux.org/title/Firefox/Privacy |
| |
| ===== about:config ===== |
| |
| * See [[notes:firefox#aboutconfig|about:config]] |
| |
| ===== Extensions ===== |
| |
| * [[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 |
| |
| ! 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 |
| |
| ! X, toxic enough for an entire domain block |
| ! 2023/12/13 |
| x.com |
| twitter.com |
| |
| ! End</code> |
| |
| ===== DNS over HTTPS ===== |
| |
| * See [[notes:dns_servers]] for other addresses |
| |
| <code>https://dns.quad9.net/dns-query</code> |
| |
====== Server ====== | ====== Server ====== |
ExecStartPost='/usr/bin/systemctl' reboot</code> | ExecStartPost='/usr/bin/systemctl' reboot</code> |
| |
==== Timer ==== | ===== Timer ===== |
| |
* 03:00 Oak | * 03:00 Oak |
[Install] | [Install] |
WantedBy=timers.target</code> | WantedBy=timers.target</code> |
| |
| ====== Notable Folders and Commands ====== |
| |
| * See [[notes:misc_linux]] |
| |