User Tools

Site Tools


distros:ubuntu_desktop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
distros:ubuntu_desktop [2022/06/08 21:48] – Modernize (partial) Sean Rhonedistros:ubuntu_desktop [2024/02/06 16:34] (current) Sean Rhone
Line 3: Line 3:
   * Ubuntu ((https://ubuntu.com/))   * Ubuntu ((https://ubuntu.com/))
   * Desktop ((https://ubuntu.com/desktop))   * Desktop ((https://ubuntu.com/desktop))
-  * 22.04 LTS+  * 23.10
  
 ====== Download ====== ====== Download ======
 +
 +===== Etcher Image Writer =====
 +
 +  * https://etcher.balena.io/#download-etcher
 +
 +===== Ubuntu =====
  
   * https://ubuntu.com/download/desktop   * https://ubuntu.com/download/desktop
Line 14: Line 20:
   * 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 -'/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
  
-===== Restore =====+===== Update =====
  
 **** ****
  
-  sudo cp '/etc/hosts-bak' '/etc/hosts' && sync+  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
  
-====== Repositories ======+===== Restore Backup =====
  
-===== Keybase =====+****
  
-  * https://keybase.io/ +  ls '/etc/hosts~' && sudo mv --force '/etc/hosts~' '/etc/hosts' && sync
-  * https://prerelease.keybase.io/ +
-  * :!: This is only the signing key at the moment+
  
-  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+====== Repositories ======
  
-===== ROCm =====+===== Liquorix Kernel =====
  
-  * https://docs.amd.com/category/ROCm%E2%84%A2%20v5.x +  * https://liquorix.net/
-  * https://github.com/RadeonOpenCompute/ROCm+
  
-  wget -O '/tmp/rocm.gpg.key' 'https://repo.radeon.com/rocm/rocm.gpg.key' && sudo mv '/tmp/rocm.gpg.key' '/etc/apt/trusted.gpg.d/rocm.asc&& echo 'deb https://repo.radeon.com/rocm/apt/latest/ ubuntu main' | sudo tee '/etc/apt/sources.list.d/rocm.list' > '/dev/null&& sync+  sudo add-apt-repository 'ppa:damentz/liquorix'
  
 ===== WineHQ ===== ===== WineHQ =====
Line 48: Line 51:
   * https://wiki.winehq.org/Ubuntu   * https://wiki.winehq.org/Ubuntu
   * https://dl.winehq.org/wine-builds/   * 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
  
-  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/ jammy main' | sudo tee '/etc/apt/sources.list.d/winehq.list' > '/dev/null&& sync+  sudo add-apt-repository 'ppa:oibaf/graphics-drivers'
  
 ====== Software ====== ====== Software ======
Line 77: Line 89:
 **** ****
  
-  sudo apt install evolution filezilla gimp keepassxc libreoffice rhythmbox transmission-gtk aria2 ffmpeg hdparm htop libsecret-tools linux-tools-generic lm-sensors mesa-utils mpv p7zip-full unar wget xfsprogs x11-xserver-utils 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 
  
-===== ckb-next =====+===== Wine =====
  
-  * https://github.com/ckb-next/ckb-next+  * https://wiki.winehq.org/Ubuntu
  
-  ckb-next+  winehq-staging winbind winetricks libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 libgl1:i386 libnss-mdns:i386 icoutils
  
-===== ROCm ===== +===== Liquorix Kernel =====
- +
-  * https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.1.3/page/How_to_Install_ROCm.html +
- +
-  rocm-opencl rocm-smi +
- +
-===== Steam =====+
  
 **** ****
  
-  steam +  linux-image-liquorix-amd64 linux-headers-liquorix-amd64
- +
-===== Wine ===== +
- +
-  * https://wiki.winehq.org/Ubuntu +
- +
-  winehq-staging winbind winetricks+
  
-===== Keybase =====+===== Intel Media Driver for VAAPI =====
  
-  * https://keybase.io +  * https://github.com/intel/media-driver#components-and-features
-  * :!: 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+  intel-media-va-driver-non-free
  
 ===== Tor Browser ===== ===== Tor Browser =====
Line 118: Line 117:
 ===== Google Chrome ===== ===== Google Chrome =====
  
-  :!: TODO: This may need updated to run with ''apt'' instead of ''dpkg''+****
  
-  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+  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
  
-====== Settings ======+===== Steam =====
  
-===== Keyboard Shortcuts =====+  * https://snapcraft.io/steam
  
-  bash -c "secret-tool lookup 'keepass'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"+  sudo snap install 'steam'
  
-  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''"+====== Settings ======
  
-==== Miner ==== +===== Keyboard Shortcuts =====
- +
-  * See [[mining:nsfminer#rocm|ROCm - Nightwane]]+
  
-  gnome-terminal -- sh -~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh'+<code>bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"</code>
  
-  gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh'+<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 ====
Line 143: Line 140:
  
   * Ctrl + Alt + Z   * Ctrl + Alt + Z
-  * Pause or Launch1 +  * Menu
-  * F6 +
-  * F8+
  
 ===== Printer ===== ===== Printer =====
Line 151: Line 146:
   * http://localhost:631/admin   * http://localhost:631/admin
  
-  * Internet Printing Protocol (ipps) -> HP -> IPP Everywhere ™+  * Printer name can be ''Ctrl + F'''
 +  * :!: 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
  
-===== gedit =====+  Kole
  
-  * 4 Tab width +  HP Officejet Pro 8710
-  * Insert Spaces for Tab mode+
  
-===== Network =====+==== Info ====
  
-==== 1.1.1.1 DNS ====+  * :!: ''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>
  
-===== 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 =====
Line 184: Line 182:
  
   * 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 =====
Line 189: Line 193:
 ==== Config ==== ==== Config ====
  
 +  * :!: [[notes:kernel_parameters|More Kernel Parameters]]
   * Add options in ''GRUB_CMDLINE_LINUX_DEFAULT=''   * Add options in ''GRUB_CMDLINE_LINUX_DEFAULT=''
  
   sudo -e '/etc/default/grub' && sudo update-grub   sudo -e '/etc/default/grub' && sudo update-grub
  
-==== AMD Memory Encryption ====+==== Spinesnap ====
  
-  * https://access.redhat.com/articles/4255251 +  * Last updated2024/02/06s 
-  * https://www.kernel.org/doc/Documentation/x86/amd-memory-encryption.txt +  * ''GRUB_CMDLINE_LINUX=''
-  * :!: Either enable it through the OS, or enable TSME from the firmware, not both +
-  * :!: Memory encryption enabled here may have issues with IOMMU, but TSME may be fine+
  
-  mem_encrypt=on+  sudo -e '/etc/default/grub' && sudo update-grub
  
-  dmesg | grep 'SME'+<code>video='HDMI-A-1:1920x1080@74i915.enable_guc='3' usbcore.quirks='1b1c:1b75:gn'</code>
  
-==== AMDGPU ====+===== GNOME =====
  
-=== Power ===+==== Extensions ====
  
-  * Allows use of Overdrive options for overclocking and increasing the Power Limit+  * https://extensions.gnome.org/extension/545/hide-top-bar/
  
-  amdgpu.ppfeaturemask=0xffffffff+==== External Monitor Settings ====
  
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask| grep '0xffffffff'+  * 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
  
-=== Other ===+  sudo cp ~/'.config/monitors.xml' ~gdm/'.config/monitors.xml' && sudo chown 'gdm':'gdm' ~gdm/'.config/monitors.xml'
  
-  * https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html +=== Undo ===
-  * :!: ''amdgpu.mes=1'' caused Linux not to boot +
- +
-  amdgpu.mes=+
- +
-  amdgpu.mcbp=1 +
- +
-  amdgpu.deep_color=1 +
- +
-==== EDID ==== +
- +
-  * :!: TODO +
- +
-  drm.edid_firmware=edid/S271HL-75Hz-RB2.bin +
- +
-==== IOMMU ====+
  
 **** ****
  
-  iommu=pt+  sudo rm ~gdm/'.config/monitors.xml' && sync
  
-==== NVMe ====+==== Tweaks ====
  
-  * :!: This may need adjusted for different CPU core counts+  sudo -e '/etc/profile.d/99-tweaks.sh'
  
-  nvme.poll_queues=16 +<code> 
- +# Mutter 
-  dmesg | grep 'nvme+export MUTTER_DEBUG_ENABLE_ATOMIC_KMS='0
- +export MUTTER_DEBUG_FORCE_KMS_MODE='simple'
-  cat '/proc/interrupts' +
- +
-==== Intel Optimization ==== +
- +
-  * This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot +
- +
-  i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1 +
- +
-==== Coreboot ==== +
- +
-  * This is needed to relax permissions for Coreboot firmware to be flashed internally +
-  * :!: This should be removed after flashing +
- +
-  iomem=relaxed +
- +
-==== NVIDIA GSP ==== +
- +
-  * http://us.download.nvidia.com/XFree86/Linux-x86_64/510.54/README/gsp.html +
-  * Allows loading of GSP firmware +
-  * :!: As of 2022/02/24 with a RTX 3060 and the 510.54 proprietary driver, this causes the mouse cursor to not update visibly from the top-left corner on GNOME 41/Fedora 35 +
-  * :!: This has not been tested with https://github.com/NVIDIA/open-gpu-kernel-modules +
- +
-  nvidia.NVreg_EnableGpuFirmware=1 +
- +
-===== GNOME ===== +
- +
-==== Hide Top Bar ==== +
- +
-  * https://extensions.gnome.org/extension/545/hide-top-bar/ +
- +
-==== Disable Wayland ====+
  
-  * :!: ckb-next auto light shutoff requires Xorg +# Clutter 
-  * :!: GPU scaling for resolution requires Xorg +export CLUTTER_PAINT='disable-dynamic-max-render-time'
-  * :!: Setting ''i915'' to use Full RGB with HDMI requires Xorg+
  
-  cat '/etc/gdm3/custom.conf' | grep '#WaylandEnable' > '/dev/null' && sudo sed -i 's/'#WaylandEnable'/'WaylandEnable'/g' '/etc/gdm3/custom.conf&& cat '/etc/gdm3/custom.conf| grep 'WaylandEnable'+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'
  
-  sudo -e '/etc/gdm3/custom.conf'+# End</code>
  
 ==== Settings ==== ==== Settings ====
Line 289: Line 250:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2022/05/06+  * 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.software' 'download-updates' 'false' && 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/05/06+  * Last updated: 2023/12/13
  
   gsettings reset 'org.gnome.shell' 'app-picker-layout'   gsettings reset 'org.gnome.shell' 'app-picker-layout'
Line 317: Line 278:
   gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true'   gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true'
  
-  gsettings set 'org.gnome.software' 'download-updates' 'false'+  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'
- 
-===== Hostname ===== 
- 
-  * Change ''x'' to computer name 
- 
-  hostnamectl set-hostname 'x' 
- 
-===== Keybase ===== 
- 
-  * :!: Run after initial install 
- 
-  run_keybase 
  
 ===== KeePassXC ===== ===== KeePassXC =====
Line 348: Line 299:
 ===== lm_sensors ===== ===== lm_sensors =====
  
-****+  sudo sensors-detect --auto
  
-  sudo sensors-detect --auto+  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
Line 364: Line 316:
 video-sync=display-resample video-sync=display-resample
 interpolation interpolation
-tscale=oversample</code>+tscale=oversample 
 +hwdec=vaapi 
 +hwdec-codecs=all</code>
  
 ===== Laptop Power Management ===== ===== Laptop Power Management =====
Line 373: Line 327:
  
   * See [[clients:secure_shell|Client]] notes to generate/restore public key   * See [[clients:secure_shell|Client]] notes to generate/restore public key
 +
 +===== Uncomplicated Firewall =====
 +
 +  * See [[notes:ufw|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'
  
 ===== Drive Maintenance ===== ===== Drive Maintenance =====
Line 381: Line 343:
  
   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]] 
-  * :!: Enable in all cases since it's likely both ''/'' and ''/boot'' are XFS 
- 
-  sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l 
  
 ===== UTC ===== ===== UTC =====
Line 408: Line 363:
   * See [[notes:wine|Wine]]   * See [[notes:wine|Wine]]
  
-====== Xorg ======+===== Wayland =====
  
-  * See [[notes:xorg.conf_snippets|xorg.conf Snippets]] +==== Full RGB HDMI ====
-  * :!: GNOME for several versions now including 42 makes the screen color too warm; the fix is to disable color calibration for screens in GNOME settings+
  
-====== Mozilla Firefox ======+  * See [[notes:proptest_full_rgb]] for more ports 
 + 
 +  sudo apt install 'libdrm-tests' -y && sudo -e '/etc/gdm3/PostLogin/Default' && sudo chmod +x '/etc/gdm3/PostLogin/Default' && sync 
 + 
 +<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> 
 + 
 +====== 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
  
-===== DNS over HTTPS =====+===== about:config =====
  
-  * [[https://quad9.net/|Quad9]]+  * See [[notes:firefox#aboutconfig|about:config]]
  
-  https://dns.quad9.net/dns-query+===== Extensions =====
  
-====== Server ======+  * [[https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/|Decentraleyes]] 
 +  * [[https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/|uBlock Origin]]
  
-  * For workstations that run servers as a secondary directive +<code>gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/' 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'</code>
-  * For headless servers, use [[distros:fedora_server|Fedora Server]]+
  
-===== Enable SSH =====+==== uBlock Origin ==== 
 + 
 +==== Filters list ====
  
 **** ****
  
-  sudo systemctl enable --now 'sshd'+<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 ====== 
 + 
 +  * For workstations that run servers as a secondary directive 
 +  * For headless servers, use [[distros:ubuntu_server|Ubuntu Server]]
  
 ===== Automatic Updates ===== ===== Automatic Updates =====
Line 438: Line 448:
 ==== Service ==== ==== Service ====
  
-  sudo -e '/etc/systemd/system/fedora-up.service'+  sudo -e '/etc/systemd/system/ubuntu-up.service'
  
 <code> <code>
 [Service] [Service]
 Type=oneshot Type=oneshot
-ExecStartPre='/usr/bin/dnf' clean 'all+ExecStartPre='/usr/bin/apt' clean 
-ExecStart='/usr/bin/dnfdistro-sync -y +ExecStart='/usr/bin/aptupdate 
-ExecStart='/usr/bin/dnf' autoremove -y+ExecStart='/usr/bin/aptfull-upgrade -y 
 +ExecStart='/usr/bin/apt' autoremove -y
 ExecStartPost='/usr/bin/sync' ExecStartPost='/usr/bin/sync'
 ExecStartPost='/usr/bin/systemctl' reboot</code> ExecStartPost='/usr/bin/systemctl' reboot</code>
Line 453: Line 464:
   * 03:00 Oak   * 03:00 Oak
  
-  sudo -e '/etc/systemd/system/fedora-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'fedora-up.timer' --now+  sudo -e '/etc/systemd/system/ubuntu-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'ubuntu-up.timer' --now
  
 <code> <code>
Line 470: Line 481:
 ====== Notable Folders and Commands ====== ====== Notable Folders and Commands ======
  
-===== Extract ISO ===== +  * See [[notes:misc_linux]]
- +
-  * ''D'' is the destination you want the extracted files to go +
-  * ''x'' is the ISO you want to extract files from +
-  * No space after the ''-o'' flag is intentional +
-  * This is primarily useful for copying Windows ISO images to a FAT32 flash drive +
- +
-  7z x -o'D' -y x +
- +
-  7z x -o'/run/media/espionage724/LTSC 2019' -y '/home/espionage724/Downloads/en_windows_10_enterprise_ltsc_2019_x64_dvd_be3c8ffb.iso' && sync && sync +
- +
-===== youtube-dl ===== +
- +
-  * https://ytdl-org.github.io/youtube-dl/index.html +
- +
-==== Download ==== +
- +
-**** +
- +
-  rm -f '/tmp/youtube-dl' && wget -O '/tmp/youtube-dl' 'https://yt-dl.org/downloads/latest/youtube-dl' && chmod +x '/tmp/youtube-dl' +
- +
-==== Show Formats ==== +
- +
-  * Change ''x'' to a URL +
- +
-  '/tmp/youtube-dl' --list-formats x +
- +
-==== Download Media ==== +
- +
-  * Change ''x'' to a URL +
-  * ''bestaudio'' can be changed to ''bestvideo'' for just video, or ''best'' for best video with audio +
- +
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio'+
- +
-=== M4A Audio === +
- +
-  * Ideally for if iOS devices will be involved +
- +
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'm4a'+
- +
-=== MP3 Audio === +
- +
-**** +
- +
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'mp3'+
- +
-===== Shortcuts ===== +
- +
-  /usr/share/applications +
- +
-  ~/.local/share/applications +
- +
-===== Icons ===== +
- +
-  /usr/share/icons/hicolor +
- +
-  ~/.local/share/icons/hicolor +
- +
-===== Anaconda Module Blacklists ===== +
- +
-**** +
- +
-  sudo -e '/etc/modprobe.d/anaconda-blacklist.conf' +
- +
-===== YUM/DNF Repos ===== +
- +
-**** +
- +
-  gio open '/etc/yum.repos.d' +
- +
-===== DNF History ===== +
- +
-==== Transaction IDs ==== +
- +
-**** +
- +
-  sudo dnf history +
- +
-==== Undo ==== +
- +
-  * Change ''x'' to a transaction ID found above +
- +
-  sudo dnf history undo x +
- +
-===== GPG Keys ===== +
- +
-==== Check Keys ==== +
- +
-**** +
- +
-  rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' +
- +
-==== Remove Keys ==== +
- +
-**** +
- +
-  sudo rpm -e x +
- +
-===== DNF Autoremove Fix ===== +
- +
-  * Removes the initially-installed kernel in order to fix ''dnf autoremove'' if it's broken +
-  * :!: This will vary depending on the Fedora image version used +
- +
-  sudo dnf list --installed 'kernel'+
- +
-  sudo dnf remove *5.3.7* && sync +
- +
-===== Re-generate Thumbnails ===== +
- +
-**** +
- +
-  rm -Rf ~/'.cache/thumbnails' +
- +
-===== List GNOME gsettings ===== +
- +
-  * Change ''x'' to schema or omit it to show all settings +
- +
-  gsettings list-recursively 'x' +
- +
-===== GNOME App Grid Reset ===== +
- +
-  * [[https://www.omgubuntu.co.uk/2020/11/reset-gnome-shell-applications-grid|OMG! Ubuntu!]] +
- +
-  gsettings reset 'org.gnome.shell' 'app-picker-layout' +
- +
-===== GNOME Software Maintenance ===== +
- +
-**** +
- +
-  pkcon -c '1' refresh && pkcon update +
- +
-===== fstrim ===== +
- +
-**** +
- +
-  sudo fstrim --verbose --all +
- +
-===== SELinux Re-label ===== +
- +
-**** +
- +
-  sudo touch '/.autorelabel' +
- +
-===== GNOME Monitors Reset ===== +
- +
-**** +
- +
-  rm -f ~/'.config/monitors.xml' ~/'.config/monitors.xml~' +
- +
-===== PulseAudio Reset ===== +
- +
-**** +
- +
-  rm -f ~/'.config/pulse/'+
- +
-===== Xorg Debug ===== +
- +
-  journalctl -e _COMM='gdm-x-session' +
- +
-  gio open ~/'.local/share/xorg/Xorg.1.log' +
- +
-===== Verify DRI3 ===== +
- +
-**** +
- +
-  LIBGL_DEBUG='verbose' glxinfo | grep 'libgl' +
- +
-===== GpuTest ===== +
- +
-  * https://www.geeks3d.com/gputest/ +
- +
-==== Execute ==== +
- +
-=== HDTV === +
- +
-  * 1280x720 +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720' +
- +
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720' +
- +
-  /fullscreen /benchmark /benchmark_duration_ms='15000' +
- +
-== NVIDIA Optimus == +
- +
-**** +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && __NV_PRIME_RENDER_OFFLOAD='1' __GLX_VENDOR_LIBRARY_NAME='nvidia' ./GpuTest /test='fur' /width='1280' /height='720' +
- +
-=== FHD === +
- +
-  * 1920x1080 +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1920' /height='1080' +
- +
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1920' /height='1080' +
- +
-  /fullscreen /benchmark /benchmark_duration_ms='15000' +
- +
-=== UHDTV1 === +
- +
-  * 3840x2160 +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='3840' /height='2160' +
- +
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='3840' /height='2160' +
- +
-  /fullscreen /benchmark /benchmark_duration_ms='15000' +
- +
-==== Cleanup ==== +
- +
-**** +
- +
-  rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync +
- +
-===== Show Sensors ===== +
- +
-**** +
- +
-  sudo dnf install 'lm_sensors' -y && sudo sensors-detect --auto && sudo watch -n0.1 sensors +
- +
-===== Show CPU Frequency ===== +
- +
-  grep 'MHz' '/proc/cpuinfo' +
- +
-  watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo' +
- +
-===== OpenSSL Supported Ciphers ===== +
- +
-**** +
- +
-  openssl ciphers -v | awk '{print $2}' | sort | uniq +
- +
-===== Partition Information ===== +
- +
-  * Both commands present the same information +
- +
-  df -hT +
- +
-  df --human-readable --print-type +
- +
-===== Encryption Information ===== +
- +
-**** +
- +
-  sudo cryptsetup -v status '/dev/dm-0' +
- +
-===== ATA Secure Erase ===== +
- +
-  * :!: All ''hdparm'' commands below assume actions to be performed on ''/dev/sda'' +
- +
-==== Preparation ==== +
- +
-  sudo dnf install 'hdparm' && sync +
- +
-  sudo hdparm -I '/dev/sda' +
- +
-  sync && systemctl suspend +
- +
-==== ATA Secure Erase ==== +
- +
-<code>sudo blkdiscard --verbose '/dev/sda'</code> +
- +
-<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync</code> +
- +
-<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync</code> +
- +
-===== NVMe Erase ===== +
- +
-  * NVMe Erase from the start page lands here and I usually use a Ubuntu LiveUSB to do this, hence the ''apt'' command +
- +
-  sudo apt install 'nvme-cli' -y && sync +
- +
-  sudo dnf install 'nvme-cli' -y && sync +
- +
-  sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync +
- +
-===== Clean EFI Variables ===== +
- +
-  * :!: Could potentially cause a firmware brick or other issues with improper EFI implementations, use at own risk ((personally tested fine on several Acer and Dell computers)) +
-  * Safer way is to use ''efibootmgr'' to remove boot entries individually +
- +
-  sudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v +
- +
-===== RAID ===== +
- +
-==== Controller Details ==== +
- +
-  * This can be used to get the Oprom version for Intel RST +
- +
-  sudo mdadm --detail-platform +
- +
-==== Create Software RAID ==== +
- +
-  * :?: Came from old notes; I **assume** this worked at some point, but in any case, the syntax looks nice :p +
- +
-  sudo mdadm --create '/dev/md0' --name='RAID' --level='0' --raid-devices='3' '/dev/sda' '/dev/sdb' '/dev/sdc' --verbose +
- +
-===== VGA Switcheroo Power States ===== +
- +
-  * https://nouveau.freedesktop.org/wiki/Optimus +
- +
-  sudo cat '/sys/kernel/debug/vgaswitcheroo/switch' +
- +
-===== ACPI Tables ===== +
- +
-  * In ''dsdt.dsl'', look for ''_OSI'' values, along with ''Windows'' and ''Linux'' +
- +
-  sudo dnf install 'acpica-tools' +
- +
-  sudo cp --force '/sys/firmware/acpi/tables/DSDT' ~/'dsdt.dat' +
- +
-  cd ~ && iasl -d ~/'dsdt.dat' +
- +
-  gio open ~/'dsdt.dsl' +
- +
-  sudo dnf remove 'acpica-tools' && sync +
- +
-===== Display EDID Info ===== +
- +
-  * https://unix.stackexchange.com/a/114398 +
- +
-  sudo dnf install 'monitor-edid' +
- +
-  monitor-edid +
- +
-===== Custom Resolutions ===== +
- +
-==== Generate Modeline ==== +
- +
-  * Use ''--reduced'' only for LCD/Non-CRT displays, and only as-needed ((useful for reducing amount of bandwidth over cables, particularly in-case of unstable 4k@60Hz set-ups)) +
-  * Syntax is ''horizontal'' (width), ''vertical'' (height) and ''refresh rate'' +
- +
-  cvt '3840' '2160' '60' +
- +
-  cvt --reduced '3840' '2160' '60' +
- +
-<code>--reduced</code> +
- +
-==== Temporarily Apply ==== +
- +
-  * Changes are lost after reboot +
-  * Values after ''--newmode'' are from the above generate command, and is everything after ''Modeline'' +
- +
-  xrandr --newmode "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +
- +
-  xrandr --addmode 'HDMI-A-0' '3840x2160R' +
- +
-  xrandr --output 'HDMI-A-0' --mode '3840x2160R' +
- +
-=== Verify === +
- +
-**** +
- +
-  xrandr --verbose | grep *current +
- +
-==== Permanently Apply ==== +
- +
-  * ''Identifier'' is the name of the port on the GPU the display is connected to +
-  * ''Modeline'' is from the above generate command, including the text ''Modeline'' +
-  * ''PreferredMode'' is the custom resolution name generated +
- +
-<code> +
-Section "Monitor" +
-    Identifier  "HDMI-A-0" +
-    Modeline x +
-    Option      "PreferredMode" "3840x2160R" +
-EndSection</code> +
- +
-===== Backlight ===== +
- +
-==== Notes ==== +
- +
-  * The following commands with an asterisk expect only one backlight controller at ''/sys/class/backlight'' +
-  * This was only tested on one laptop with ''intel_backlight'' +
-  * See [[#power_management|Power Management notes]] on how to add backlight changes to a udev script +
-  * See [[https://wiki.archlinux.org/index.php/backlight|backlight]] for more details +
- +
-==== Controller Name ==== +
- +
-**** +
- +
-  ls '/sys/class/backlight' +
- +
-==== Query Current Brightness ==== +
- +
-**** +
- +
-  cat '/sys/class/backlight/'*'/brightness' +
- +
-==== Query Max Brightness ==== +
- +
-**** +
- +
-  cat '/sys/class/backlight/'*'/max_brightness' +
- +
-==== Set Custom Brightness ==== +
- +
-  * Change ''376'' to desired brightness +
-  * Desired brightness **must** be under ''max_brightness'' value +
- +
-  echo "376" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' +
- +
-==== Set Max Brightness ==== +
- +
-**** +
- +
-  echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' +
- +
-===== Intel GuC Firmware ===== +
- +
-  sudo cat '/sys/kernel/debug/dri/0/i915_guc_info' +
- +
-  sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status' +
- +
-===== HT/SMT Information ===== +
- +
-**** +
- +
-  grep -e "processor" -e "core id" -e "^$" /proc/cpuinfo +
- +
-===== Optimal GCC compiler flags ===== +
- +
-**** +
- +
-  gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;' +
- +
-====== Privacy ====== +
- +
-===== Clear Terminal History ===== +
- +
-**** +
- +
-  history -cw +
- +
-===== Create 7z Password Archive ===== +
- +
-  * Change ''7ZIPNAME'' in ''7ZIPNAME.7z'' to the desired archive name +
-  * Change ''PASS'' in ''-pPASS'' to the desired password +
-  * Change ''x'' to the file or folder to add to the archive +
- +
-  7za a '7ZIPNAME.7z' -p'PASS' 'x' +
- +
-  7za a 'x.7z' -p'x' 'x' +
- +
-===== oathtool ===== +
- +
-  * ''x'' is a secret without ''&digits=6'' +
- +
-  sudo dnf install 'oathtool' +
- +
-  oathtool --totp -b 'x' +
- +
-===== Remove EXIF data ===== +
- +
-  sudo dnf install 'perl-Image-ExifTool' +
- +
-  exiftool -all= *.* -overwrite_original+
  
/var/www/wiki/data/pages/distros/ubuntu_desktop.txt · Last modified: 2024/02/06 16:34 by Sean Rhone