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
Next revisionBoth sides next revision
distros:ubuntu_desktop [2019/11/17 14:54] Sean Rhonedistros:ubuntu_desktop [2022/06/08 21:48] – Modernize (partial) Sean Rhone
Line 1: Line 1:
 ====== Information ====== ====== Information ======
  
-  * Ubuntu ((https://www.ubuntu.com/desktop)) +  * Ubuntu ((https://ubuntu.com/)) 
-  * 19.10 +  * Desktop ((https://ubuntu.com/desktop)) 
- +  * 22.04 LTS
-====== Known Issues ====== +
- +
-  * None+
  
 ====== Download ====== ====== Download ======
  
-  * https://www.ubuntu.com/download/desktop +  * https://ubuntu.com/download/desktop
- +
-====== Installation Notes ====== +
- +
-  * ''EFI/ubuntu/shimx64.efi'' ((EFI file to boot and in the case of (quirky) InsydeH2O UEFI implementations, add to SecureBoot trust; doesn't matter if SecureBoot is enabled or not)) +
-  * Minimal installation+
  
 ====== HOSTS ====== ====== HOSTS ======
  
   * https://github.com/StevenBlack/hosts/   * https://github.com/StevenBlack/hosts/
-  * Using ''Unified hosts + fakenews + gambling''+  * Unified hosts + fakenews + gambling
  
-  sudo wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync+  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
  
   cat '/etc/hosts' | grep 'Date:'   cat '/etc/hosts' | grep 'Date:'
Line 28: Line 20:
   sudo -e '/etc/hosts'   sudo -e '/etc/hosts'
  
-====== Repositories ======+===== Restore =====
  
-===== ckb-next =====+****
  
-  * https://github.com/ckb-next/ckb-next+  sudo cp '/etc/hosts-bak' '/etc/hosts' && sync
  
-  sudo add-apt-repository 'ppa:tatokis/ckb-next'+====== Repositories ======
  
-===== padoka PPA =====+===== Keybase =====
  
-  * Unstable/bleeding-edge PPA+  * https://keybase.io/ 
 +  * https://prerelease.keybase.io/ 
 +  * :!: This is only the signing key at the moment
  
-  https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa +  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
-  * https://wordpress.padoka.org+
  
-  sudo add-apt-repository 'ppa:paulo-miguel-dias/mesa' -y+===== ROCm =====
  
-===== Wine =====+  * https://docs.amd.com/category/ROCm%E2%84%A2%20v5.x 
 +  * https://github.com/RadeonOpenCompute/ROCm
  
-  :!TODO: Update for 19.10+  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 
 + 
 +===== WineHQ =====
  
   * https://www.winehq.org/   * https://www.winehq.org/
   * https://wiki.winehq.org/Ubuntu   * https://wiki.winehq.org/Ubuntu
-  * https://dl.winehq.org/wine-builds/ubuntu/ +  * https://dl.winehq.org/wine-builds/
- +
-  wget -O '/tmp/winehq-gpg.key' 'https://dl.winehq.org/wine-builds/Release.key' && sudo apt-key add '/tmp/winehq-gpg.key' && echo 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' | sudo tee '/etc/apt/sources.list.d/winehq.list' > '/dev/null' && cat '/etc/apt/sources.list.d/winehq.list' && rm -f '/tmp/winehq-gpg.key' && sync +
- +
-===== Lutris ===== +
- +
-  * :!: TODO: Update for 19.10 +
- +
-  * https://lutris.net +
-  * http://download.opensuse.org/repositories/home:/strycore/+
  
-  wget -O '/tmp/lutris-gpg.key' 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04/Release.key' && sudo apt-key add '/tmp/lutris-gpg.key' && echo 'deb http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04/ ./' | sudo tee '/etc/apt/sources.list.d/lutris.list' > '/dev/null' && cat '/etc/apt/sources.list.d/lutris.list' && rm -f '/tmp/lutris-gpg.key' && sync+  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/ubuntujammy main' | sudo tee '/etc/apt/sources.list.d/winehq.list' > '/dev/null' && sync
  
 ====== Software ====== ====== Software ======
Line 78: Line 65:
 **** ****
  
-  sudo fwupdmgr refresh && sudo fwupdmgr update --verbose+  sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose && sync
  
 ==== Snaps ==== ==== Snaps ====
Line 84: Line 71:
 **** ****
  
-  sudo snap refresh+  sudo snap refresh && sync
  
 ===== General ===== ===== General =====
Line 90: Line 77:
 **** ****
  
-  sudo apt install evolution filezilla gimp keepassxc mpv transmission-gtk aria2 htop unar p7zip-full mesa-utils ffmpeg libsecret-tools libreoffice rhythmbox+  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 
  
-===== wl =====+===== ckb-next =====
  
-  * For a MacBook Pro with ''BCM4360'' wireless+  * https://github.com/ckb-next/ckb-next
  
-  bcmwl-kernel-source+  ckb-next
  
-===== OpenVPN =====+===== ROCm =====
  
-****+  https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.1.3/page/How_to_Install_ROCm.html
  
-  network-manager-openvpn-gnome+  rocm-opencl rocm-smi
  
-===== VA-API =====+===== Steam =====
  
-  gstreamer1.0-vaapi+****
  
-  i965-va-driver+  steam
  
-===== ckb-next =====+===== Wine =====
  
-****+  https://wiki.winehq.org/Ubuntu
  
-  ckb-next+  winehq-staging winbind winetricks
  
 ===== Keybase ===== ===== Keybase =====
  
   * https://keybase.io   * https://keybase.io
 +  * :!: This needs ran as a separate command and not combined with the above package installations
  
-  wget -O '/tmp/keybase_amd64.deb' 'https://prerelease.keybase.io/keybase_amd64.deb' && sudo dpkg --install '/tmp/keybase_amd64.deb' && sudo apt install -f && rm '/tmp/keybase_amd64.deb' && sync && run_keybase +  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
- +
-===== Wine ===== +
- +
-  winetricks exe-thumbnailer winbind +
- +
-  winehq-staging +
- +
-  wine-d3d9-staging +
- +
-===== Lutris ===== +
- +
-  * Even if using Lutris's Wine runners, Wine Staging should be installed system-wide in order to satisfy dependencies +
- +
-  winehq-staging lutris+
  
 ===== Tor Browser ===== ===== Tor Browser =====
Line 144: Line 118:
 ===== 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 dpkg --install '/tmp/google-chrome-stable_current_amd64.deb' || sudo apt install -f && rm '/tmp/google-chrome-stable_current_amd64.deb' && sync
Line 154: Line 128:
   bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"   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 && fwupdmgr refresh && fwupdmgr update --verbose && snap refresh && rm -Rfv '/usr/lib/firefox/browser/features' '/home/'*'/.mozilla/firefox/'*'/features' && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && sleep '2''"+  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''" 
 + 
 +==== Miner ==== 
 + 
 +  * See [[mining:nsfminer#rocm|ROCm - Nightwane]] 
 + 
 +  gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' 
 + 
 +  gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh'
  
 ==== Keys ==== ==== Keys ====
Line 161: Line 143:
  
   * Ctrl + Alt + Z   * Ctrl + Alt + Z
-  * Pause or F7+  * Pause or Launch1 
 +  * F6 
 +  * F8
  
 ===== Printer ===== ===== Printer =====
- 
-  * :!: TODO: All 4 of the 8710 models have the same exact name... 
  
   * http://localhost:631/admin   * http://localhost:631/admin
  
-  * Output Mode: Black Only Grayscale +  * Internet Printing Protocol (ipps) -> HP -> IPP Everywhere ™ 
-  * Print QualityHigh-Resolution Photo+  * Color ModeDevice Gray
   * Administration -> Set As Server Default   * Administration -> Set As Server Default
  
-  socket://192.168.1.164:9100+  ipps://192.168.1.164/ipp/print
  
 ===== gedit ===== ===== gedit =====
Line 182: Line 164:
 ===== Network ===== ===== Network =====
  
-==== DNS ====+==== 1.1.1.1 DNS ====
  
-=== UncensoredDNS ===+  * https://1.1.1.1/dns/ 
 +  * See [[notes:dns_servers|DNS servers]] for other DNS servers
  
-  * https://blog.uncensoreddns.org/+<code>1.1.1.1,1.0.0.1</code>
  
-  89.233.43.71,91.239.100.100 +<code>2606:4700:4700::1111,2606:4700:4700::1001</code>
- +
-  2a01:3a0:53:53::,2001:67c:28a4:: +
- +
-=== OpenNIC Anycast === +
- +
-  * https://wiki.opennic.org/start#anycast_tier_2_dns_resolvers +
- +
-  185.121.177.177,169.239.202.202 +
- +
-  2a05:dfc7:5::53,2a05:dfc7:5::5353 +
- +
-==== VPN.AC ==== +
- +
-  * See [[information:vpn.ac|VPN.AC]] +
-  * :!: If using this VPN, disable IPv6 from NetworkManager+
  
 ===== Nautilus ===== ===== Nautilus =====
  
-  * Sort folders before files +  * Sort Folders Before Files
-  * 4096 MB File Previews+
  
 ===== Rhythmbox ===== ===== Rhythmbox =====
Line 218: Line 185:
   * 10-notch Transparency   * 10-notch Transparency
  
-===== Transmission =====+===== GRUB =====
  
-  * Blocklist+==== Config ====
  
-  http://john.bitsurge.net/public/biglist.p2p.gz+  * Add options in ''GRUB_CMDLINE_LINUX_DEFAULT=''
  
-===== GRUB =====+  sudo -e '/etc/default/grub' && sudo update-grub
  
-****+==== AMD Memory Encryption ====
  
-  sudo -e '/etc/default/grub' && sudo update-grub+  * https://access.redhat.com/articles/4255251 
 +  * https://www.kernel.org/doc/Documentation/x86/amd-memory-encryption.txt 
 +  * :!: 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
  
-==== Old Parameters ====+  mem_encrypt=on
  
-  * See [[notes:kernel_parameters|Kernel Parameters]] for older options+  dmesg grep 'SME'
  
-==== GRUB ====+==== AMDGPU ====
  
-****+=== Power ===
  
-  GRUB_TIMEOUT=1+  * Allows use of Overdrive options for overclocking and increasing the Power Limit
  
-==== AIO ====+  amdgpu.ppfeaturemask=0xffffffff
  
-=== Spinesnap ===+  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '0xffffffff'
  
-  * Last updated: 2019/10/22+=== Other ===
  
-  i915.enable_fbc=1 i915.fastboot=1 pci=nocrs,pcie_bus_perf+  * https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html 
 +  * :!: ''amdgpu.mes=1'' caused Linux not to boot
  
-==== i915 ====+  amdgpu.mes=1
  
-  i915.enable_fbc=1 i915.fastboot=1+  amdgpu.mcbp=1
  
-  i915.enable_psr=1+  amdgpu.deep_color=1
  
-==== amdgpu ====+==== EDID ====
  
-  * Allows use of Overdrive options for overclocking+  * :!: TODO
  
-  amdgpu.ppfeaturemask=0xffffffff+  drm.edid_firmware=edid/S271HL-75Hz-RB2.bin
  
-=== Test ===+==== IOMMU ====
  
 **** ****
  
-  amdgpu.mes=1 amdgpu.mcbp=1+  iommu=pt
  
-=== Verify ===+==== NVMe ====
  
-****+  :!: This may need adjusted for different CPU core counts
  
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295'+  nvme.poll_queues=16
  
-==== PCI ====+  dmesg | grep 'nvme'
  
-****+  cat '/proc/interrupts'
  
-  pci=nocrs,pcie_bus_perf+==== Intel Optimization ====
  
-==== IOMMU ====+  * This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot 
 + 
 +  i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=
 + 
 +==== Coreboot ==== 
 + 
 +  * This is needed to relax permissions for Coreboot firmware to be flashed internally 
 +  * :!: This should be removed after flashing 
 + 
 +  iomem=relaxed 
 + 
 +==== NVIDIA GSP ====
  
-  * :!: This may cause DMAR issues with the Intel iGPU+  * 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
  
-  intel_iommu=on+  nvidia.NVreg_EnableGpuFirmware=1
  
 ===== GNOME ===== ===== GNOME =====
  
-==== Disable Wayland ====+==== Hide Top Bar ====
  
-  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'+  * https://extensions.gnome.org/extension/545/hide-top-bar/
  
-  sudo -e '/etc/gdm3/custom.conf'+==== Disable Wayland ====
  
-==== Root GUI Apps in Wayland ====+  * :!: ckb-next auto light shutoff requires Xorg 
 +  * :!: GPU scaling for resolution requires Xorg 
 +  * :!: Setting ''i915'' to use Full RGB with HDMI requires Xorg
  
-  * Run this before running GUI applications requiring root +  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'
-  * This needs re-ran after session restart +
-  * TODO: Is this even needed anymore?+
  
-  xhost +LOCAL:+  sudo -e '/etc/gdm3/custom.conf'
  
 ==== Settings ==== ==== Settings ====
Line 304: Line 289:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2019/10/22+  * Last updated: 2022/05/06
  
-  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 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'
  
 === Individual === === Individual ===
  
-  * Last updated: 2019/10/22+  * Last updated: 2022/05/06 
 + 
 +  gsettings reset 'org.gnome.shell' 'app-picker-layout'
  
   gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true'   gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true'
Line 331: Line 318:
  
   gsettings set 'org.gnome.software' 'download-updates' 'false'   gsettings set 'org.gnome.software' 'download-updates' 'false'
 +
 +  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 337: Line 338:
  
   * General -> [ ] Load previous databases on startup   * General -> [ ] Load previous databases on startup
 +  * Security -> [x] Use DuckDuckGo service to download website icons
  
 ==== Add Database Password to GNOME Keyring ==== ==== Add Database Password to GNOME Keyring ====
Line 344: Line 346:
   secret-tool store --label='KeePass' 'keepass' 'default'   secret-tool store --label='KeePass' 'keepass' 'default'
  
-===== mpv =====+===== lm_sensors =====
  
-  https://wiki.archlinux.org/index.php/mpv#High_quality_configurations+****
  
-  mkdir -p ~/'.config/mpv' && echo -e "profile=gpu-hq\nscale=ewa_lanczossharp\ncscale=ewa_lanczossharp\nvideo-sync=display-resample\ninterpolation\ntscale=oversample" | tee ~/'.config/mpv/mpv.conf' > '/dev/null' && cat ~/'.config/mpv/mpv.conf'+  sudo sensors-detect --auto
  
-===== NetworkManager =====+===== mpv =====
  
-  * ''wifi.powersave'' is set to ''3'' in ''/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf'' +  * [[https://wiki.archlinux.org/index.php/mpv#High_quality_configurations|ArchWiki mpv High quality configurations]]
-  * :!: ''ethernet.cloned-mac-address=random'' breaks USB Tethering with iOS/iPhones +
-  * ''wl'' seems to work fine without having to disable randomized MAC scanning?+
  
-  sudo -'/etc/NetworkManager/conf.d/99-custom.conf'+  mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
  
 <code> <code>
-[device-mac-randomization] +profile=gpu-hq 
-wifi.scan-rand-mac-address=yes +scale=ewa_lanczossharp 
- +cscale=ewa_lanczossharp 
-[connection-mac-randomization] +video-sync=display-resample 
-ethernet.cloned-mac-address=random +interpolation 
-wifi.cloned-mac-address=random +tscale=oversample</code>
- +
-[connection] +
-wifi.powersave=2</code>+
  
 ===== Laptop Power Management ===== ===== Laptop Power Management =====
Line 375: Line 372:
 ===== Secure Shell ===== ===== Secure Shell =====
  
-  * See [[Clients:Secure Shell|Secure Shell]]+  * See [[clients:secure_shell|Client]] notes to generate/restore public key
  
-===== Solo Key =====+===== Drive Maintenance =====
  
-==== Information ==== +==== Trim ====
- +
-  * https://solokeys.com/ +
-  * Usable as authentication for GDM and ''sudo'' +
- +
-==== PAM ==== +
- +
-=== Dependencies ===+
  
 **** ****
  
-  sudo dnf install pamu2fcfg pam-u2f+  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
  
-=== Centralized Key ===+==== 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
  
-  pamu2fcfg > ~/'u2f_keys' && sudo mv ~/'u2f_keys' '/etc/u2f_mappings'+  sudo systemctl enable 'xfs_scrub_all.timer--now && sudo systemctl start 'xfs_scrub_all&& sync && sudo systemctl status 'xfs_scrub_all-l
  
-=== GDM ===+===== UTC =====
  
-  * Add to line 2, under the ''pam_selinux_permit.so'' entry+  * [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]] 
 +  * Set RTC to UTC 
 +  * :!: Needed if Windows is installed first 
 +  * :!: Windows should also be set to UTC
  
-  sudo -e '/etc/pam.d/gdm-password'+  sudo timedatectl set-local-rtc '0'
  
-  auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue +==== Verify ====
- +
-=== sudo === +
- +
-  * Add to line 2, under the ''#%PAM-1.0'' line +
- +
-  sudo -e '/etc/pam.d/sudo' +
- +
-  auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue +
- +
-===== systemd ===== +
- +
-  * Log data is stored in volatile storage +
-  * Max log file sizes of ''50MB'' +
- +
-  sudo mkdir -p '/etc/systemd/journald.conf.d' && echo -e "[Journal]\nStorage=volatile\nSystemMaxUse=50M\nRuntimeMaxUse=50M" | sudo tee '/etc/systemd/journald.conf.d/logging.conf' > '/dev/null' && cat '/etc/systemd/journald.conf.d/logging.conf' +
- +
-===== Uncomplicated Firewall ===== +
- +
-==== General ====+
  
 **** ****
  
-  sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw enable && sudo systemctl enable 'ufw' +  timedatectl | grep local
- +
-==== SSH ==== +
- +
-**** +
- +
-  sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw allow 'ssh' && sudo ufw enable && sudo systemctl enable 'ufw' +
- +
-===== TRIM ===== +
- +
-  * ''/swap'' is a swapfile on Ubuntu and doesn't need a specific ''discard'' mount option like other distros +
- +
-  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l+
  
 ===== Wine ===== ===== Wine =====
Line 445: Line 408:
   * See [[notes:wine|Wine]]   * See [[notes:wine|Wine]]
  
-====== Computer-specific ======+====== Xorg ======
  
-===== Nightwane =====+  * See [[notes:xorg.conf_snippets|xorg.conf Snippets]] 
 +  * :!: 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
  
-==== Volume ====+====== Mozilla Firefox ======
  
-  * https://askubuntu.com/a/886908 +  * See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync
-  * TODO: Change where this is; no longer have this computer+
  
-  alsamixer --card='1'+===== DNS over HTTPS =====
  
-==== Fan Control ====+  * [[https://quad9.net/|Quad9]]
  
-  * TODOChange where this is; it's not specific to this computer nor fan control+  https://dns.quad9.net/dns-query
  
-  sudo apt install lm-sensors fancontrol && sudo sensors-detect --auto+====== Server ======
  
-==== Custom Resolution ====+  * For workstations that run servers as a secondary directive 
 +  * For headless servers, use [[distros:fedora_server|Fedora Server]]
  
-=== Generate Modeline ===+===== Enable SSH =====
  
-  4k@60Hz CVT-RB +****
-  Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort +
-  :!: The ''grep'' here confirms the expected Modeline ((if grep reports nothing, use whatever is reported instead)) +
-  :!: This cannot be used on Wayland currently +
-  * :!: This expects ''amdgpu'' DDX driver to be used ((''modesetting'' has a 4K RB resolution without any settings on Xorg))+
  
-  cvt --verbose --reduced '3840' '2160' '60' | grep 'Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync'+  sudo systemctl enable --now 'sshd'
  
-=== xorg.conf Snippet ===+===== Automatic Updates =====
  
-  * :!: ''HDMI-A-0'' is used for the ''Identifier'' with the HDMI port on ''amdgpu''+==== Service ====
  
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/systemd/system/fedora-up.service'
  
 <code> <code>
-Section "Monitor" +[Service] 
-    Identifier      "HDMI-A-0" +Type=oneshot 
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +ExecStartPre='/usr/bin/dnf' clean 'all' 
-    Option          "PreferredMode" "3840x2160R" +ExecStart='/usr/bin/dnf' distro-sync -y 
-EndSection</code>+ExecStart='/usr/bin/dnf' autoremove -y 
 +ExecStartPost='/usr/bin/sync' 
 +ExecStartPost='/usr/bin/systemctl' reboot</code>
  
-===== Spinesnap =====+===== Timer =====
  
-  * :!: Using an AMD eGPU with a display attached doesn't seem to work reliably if the ''intel'' driver is being used ((for a very specific scenario, the Intel iGPU has to be active, manually set to use the ''intel'' Xorg DDX driver, an AMD GPU plugged into a Thunderbolt eGPU using the ''amdgpu'' Xorg DDX driver, with a 4K display plugged into it via HDMI)) +  * 03:00 Oak
-  * TODO: If ''intel'' offers no obvious benefit, remove the ''OutputClass'' section for it and let it default to ''modesetting''+
  
-  sudo apt install xserver-xorg-video-intel xserver-xorg-video-amdgpu -y && sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -'/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -'/etc/systemd/system/fedora-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'fedora-up.timer--now
  
 <code> <code>
-Section "Monitor" +[Unit] 
-    Identifier      "HDMI-A-0" +Description=Software Package Maintenance and Updater 
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +After=network-online.target 
-    Option          "PreferredMode" "3840x2160R" +Wants=network-online.target
-EndSection+
  
-Section "OutputClass" +[Timer] 
-    Identifier  "Intel Graphics" +OnCalendar=*-*-* 03:00:00 
-    MatchDriver "i915" +Persistent=true
-    Driver      "intel" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection+
  
-Section "OutputClass" +[Install
-    Identifier  "AMD Graphics" +WantedBy=timers.target</code>
-    MatchDriver "amdgpu" +
-    Driver      "amdgpu" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-===== Deep Color ===== +
- +
-  * The lack-of quotes around ''30'' is intentional and required syntax +
-  * :!: This may cause minor issues with programs not expecting 30-bit color ((GpuTest's fur ring doesn't render right, RS's NXT client's splash screen is gray)) +
-  * :!: This can cause games in Wine to not start under some circumstances ((FFXIV crashes on start-up due to a DirectX error)) +
-  * There is no known benefit to enabling this as of 2019/10/22 +
- +
-  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Screen" +
-    Identifier      "Deep Color Screen" +
-    DefaultDepth    30 +
-EndSection</code> +
- +
-===== Graphics xorg.conf ===== +
- +
-==== intel ==== +
- +
-  sudo apt install 'xserver-xorg-video-intel' -y && sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "Intel Graphics" +
-    MatchDriver "i915" +
-    Driver      "intel" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-==== amdgpu ==== +
- +
-  sudo apt install 'xserver-xorg-video-amdgpu' -y && sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "amdgpu" +
-    Driver      "amdgpu" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-==== radeon ==== +
- +
-  * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) +
-  * For SI, CIK, and newer GPUs, use ''amdgpu'', along with enabling ''si_support'' and ''cik_support'' respectively for the ''amdgpu'' kernel module ((see ''modinfo -p amdgpu'')) +
-  * :!: This was changed to a new syntax and untested as of 2019/10/22 +
- +
-  sudo apt install 'xserver-xorg-video-radeon' -y && sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "radeon" +
-    Driver      "radeon" +
-    Option      "DRI"               "3" +
-    Option      "SwapbuffersWait"   "0" +
-    Option      "TearFree"          "0" +
-    Option      "AccelMethod"       "EXA" +
-EndSection</code> +
- +
-==== Environment Variables ==== +
- +
-  * Enables hardware acceleration, use of WebRenderer, and smooth-scrolling +
-  * :!: WebRenderer requires the previous ''MOZ_ACCELERATED'' variable as well +
- +
-  echo -e 'export MOZ_ACCELERATED=1\nexport MOZ_WEBRENDER=1\nexport MOZ_USE_XINPUT2=1' | sudo tee '/etc/profile.d/firefox-hwaccel.sh' > '/dev/null' && cat '/etc/profile.d/firefox-hwaccel.sh' +
- +
-  sudo -e '/etc/profile.d/firefox-hwaccel.sh' +
- +
-==== Default Profile ==== +
- +
-  rm -fv '/tmp/profiles.ini' && nano '/tmp/profiles.ini' && sed -i 's/'CHANGEME'/'$USER'/g' '/tmp/profiles.ini' +
- +
-<code> +
-[General+
-StartWithLastProfile=+
- +
-[Profile0] +
-Name=default +
-IsRelative=1 +
-Path=CHANGEME +
-Default=1</code> +
- +
-==== user.js ==== +
- +
-  * Last updated: 2019/04/05 +
- +
-  rm -fv '/tmp/user.js' && nano '/tmp/user.js' +
- +
-<code> +
-/*********** +
- * General * +
- ***********/ +
- +
-user_pref("extensions.screenshots.disabled", true); +
-user_pref("reader.parse-on-load.enabled", false); +
- +
-user_pref("media.mediasource.experimental.enabled", true); +
-user_pref("media.mediasource.ignore_codecs", true); +
-user_pref("media.autoplay.enabled", false); +
- +
-user_pref("webgl.disabled", true); +
-user_pref("webgl.enable-webgl2", false); +
-user_pref("accessibility.force_disabled", 1); +
-user_pref("mousewheel.min_line_scroll_amount", 40); +
-user_pref("browser.tabs.drawInTitlebar", true); +
- +
-/******* +
- * U2F * +
- *******/ +
- +
-user_pref("security.webauth.u2f", true); +
- +
-/******* +
- * END * +
- *******/</code> +
- +
-=== VPN === +
- +
-  * :!: Add if using a VPN in order to prevent local IP address leaking +
-  * :!: IPv6 is disabled in order to prevent WebRTC from grabbing an IPv6 address even though NetworkManager has it disabled... +
-  * :!: ''media.peerconnection.enabled'' disables WebRTC +
- +
-<code> +
-/*********** +
- * Privacy * +
- ***********/ +
- +
-user_pref("network.dns.disableIPv6", true); +
-user_pref("media.peerconnection.enabled", false);</code> +
- +
-==== Apply Settings ==== +
- +
-  * ''Path'' should report the current user's username, and the text ''Custom Stuff'' should be visible +
-  * :!: If Firefox doesn't open automatically, ''firefox -p default'' must be ran the first time Firefox is started after this command +
- +
-  ls '/tmp/profiles.ini' '/tmp/user.js' && pkill 'firefox' && rm -Rfv ~/'.mozilla' && sync && mkdir -p ~/'.mozilla/firefox/'$USER && mv '/tmp/profiles.ini' ~/'.mozilla/firefox/profiles.ini' && mv '/tmp/user.js' ~/'.mozilla/firefox/'$USER'/user.js' && sync && cat ~/'.mozilla/firefox/profiles.ini' | grep $USER && cat ~/'.mozilla/firefox/'$USER'/user.js' | grep 'Custom Stuff' && sleep '1' && sync || firefox -p 'default' +
- +
-===== Extensions ===== +
- +
-==== Download ==== +
- +
-  * Decentraleyes +
-  * HTTPS Everywhere +
-  * Privacy Possum +
-  * Cookie AutoDelete +
-  * uBlock Origin +
- +
-  gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/versions' && gio open 'https://www.eff.org/https-everywhere' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/privacy-possum/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/cookie-autodelete/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions' +
- +
-==== Cookie AutoDelete ==== +
- +
-  * [x] Enable Automatic Cleaning? Delay Before Cleaning +
-  * [x] Enable Cleanup on Domain Change +
-  * [ ] Enable Cleanup Log and Counter +
-  * [ ] Show Notification After Cookie Cleanup +
-  * [x] Clean Cookies from Open Tabs on Startup +
-  * [x] Localstorage Cleanup (Firefox 58+) +
- +
-==== uBlock Origin ==== +
- +
-=== Settings === +
- +
-  * [x] Prevent WebRTC from leaking local IP addresses +
- +
-=== Filter lists === +
- +
-  * [ ] Ads -> EasyList ((uncheck; included in ''Fanboy Ultimate List'')) +
-  * [ ] Privacy -> EasyPrivacy ((uncheck; included in ''Fanboy Ultimate List'')) +
- +
-  * Multipurpose -> [x] Dan Pollock's hosts file +
-  * Multipurpose -> [x] hpHost's Ad and tracking servers +
-  * Multipurpose -> [x] MVPS HOSTS +
- +
-  * Custom -> [x] Import +
- +
-=== Custom 3rd-party filters === +
- +
-  * Last updated: 2018/11/23 +
- +
-<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-antifacebook.txt +
-https://www.fanboy.co.nz/fanboy-antifonts.txt +
-https://www.fanboy.co.nz/fanboy-cookiemonster.txt +
-https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/popads-domains-list.txt +
-https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/fake-news.txt</code> +
- +
-===== Testing Sites ===== +
- +
-  * https://www.youtube.com/html5 +
-  * https://ipx.ac +
-  * https://decentraleyes.org/test/ +
-  * https://panopticlick.eff.org/ +
-  * https://browserleaks.com/+
  
 ====== Notable Folders and Commands ====== ====== Notable Folders and Commands ======
Line 724: Line 476:
   * No space after the ''-o'' flag is intentional   * No space after the ''-o'' flag is intentional
   * This is primarily useful for copying Windows ISO images to a FAT32 flash drive   * This is primarily useful for copying Windows ISO images to a FAT32 flash drive
- 
-  sudo apt install 'p7zip-full' 
  
   7z x -o'D' -y x   7z x -o'D' -y x
  
-  7z x -o'/run/media/espionage724/1809 LTSC' -y '/home/espionage724/Downloads/en_windows_10_enterprise_ltsc_2019_x64_dvd_74865958.iso' && sync+  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 ===== ===== youtube-dl =====
Line 778: Line 528:
   ~/.local/share/icons/hicolor   ~/.local/share/icons/hicolor
  
-===== Repos =====+===== Anaconda Module Blacklists =====
  
-  nano '/etc/apt/sources.list'+**** 
 + 
 +  sudo -e '/etc/modprobe.d/anaconda-blacklist.conf' 
 + 
 +===== YUM/DNF Repos ===== 
 + 
 +****
  
-  ls '/etc/apt/sources.list.d'+  gio open '/etc/yum.repos.d'
  
-==== Keys =====+===== DNF History =====
  
-=== Check Keys ===+==== Transaction IDs ====
  
 **** ****
  
-  sudo apt-key list+  sudo dnf history
  
-=== Remove Keys ===+==== Undo ====
  
-  * ''x'' is the last 8 characters of the ''pub'' for the specific repo+  * Change ''x'' to a transaction ID found above
  
-  sudo apt-key del x+  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 ===== ===== Re-generate Thumbnails =====
Line 809: Line 588:
  
   gsettings list-recursively 'x'   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 ===== ===== GNOME Software Maintenance =====
Line 821: Line 606:
  
   sudo fstrim --verbose --all   sudo fstrim --verbose --all
 +
 +===== SELinux Re-label =====
 +
 +****
 +
 +  sudo touch '/.autorelabel'
  
 ===== GNOME Monitors Reset ===== ===== GNOME Monitors Reset =====
Line 838: Line 629:
   journalctl -e _COMM='gdm-x-session'   journalctl -e _COMM='gdm-x-session'
  
-  gio open ~/'.local/share/xorg/Xorg.0.log'+  gio open ~/'.local/share/xorg/Xorg.1.log'
  
 ===== Verify DRI3 ===== ===== Verify DRI3 =====
Line 861: Line 652:
  
   /fullscreen /benchmark /benchmark_duration_ms='15000'   /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 === === FHD ===
Line 887: Line 684:
  
   rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync   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 ===== ===== Show CPU Frequency =====
Line 892: Line 695:
   grep 'MHz' '/proc/cpuinfo'   grep 'MHz' '/proc/cpuinfo'
  
-  watch -0.grep \'cpu MHz\' '/proc/cpuinfo'+  watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo'
  
 ===== OpenSSL Supported Ciphers ===== ===== OpenSSL Supported Ciphers =====
Line 902: Line 705:
 ===== Partition Information ===== ===== Partition Information =====
  
-  * Both commands do the same things+  * Both commands present the same information
  
   df -hT   df -hT
Line 920: Line 723:
 ==== Preparation ==== ==== Preparation ====
  
-  sudo apt install 'hdparm' -y && sync+  sudo dnf install 'hdparm' && sync
  
   sudo hdparm -I '/dev/sda'   sudo hdparm -I '/dev/sda'
  
-  systemctl suspend+  sync && systemctl suspend
  
 ==== ATA Secure Erase ==== ==== ATA Secure Erase ====
  
-  sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync+<code>sudo blkdiscard --verbose '/dev/sda'</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>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync</code>
  
-==== Quick-commands ====+<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync</code>
  
-=== Standard ===+===== NVMe Erase =====
  
-  * Performs both ''security-erase'' and ''security-erase-enhanced'' on ''/dev/sda'' +  * NVMe Erase from the start page lands here and I usually use a Ubuntu LiveUSB to do this, hence the ''apt'' command
-  * [[#clean_efi_variables|Cleans EFI variables]]+
  
-  sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync && sudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v+  sudo apt install 'nvme-cli' -&& sync
  
-=== Mac === +  sudo dnf install 'nvme-cli' -y && sync
- +
-  * ''blkdiscard''s ''/dev/sda'' +
-  * ''security-erase'' ''/dev/sda'' +
-  * ''security-erase-enhanced'' ''/dev/sda'' +
-  * Clears EFI variables +
-  * :!: Unknown how this works on newer Macs with T2 +
- +
-  sudo blkdiscard --verbose '/dev/sda' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sudo rm -f '/sys/firmware/efi/efivars/'* || sync +
- +
-=== Dell === +
- +
-  * Performs both ''security-erase'' and ''security-erase-enhanced'' on ''/dev/sda'' ((Removes the first ''security-set-pass'' since this needs to be set ahead of time from firmware settings)) +
-  * [[#clean_efi_variables|Cleans EFI variables]] +
- +
-  sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync && sudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v +
- +
-=== Spinesnap === +
- +
-  * Last updated: 2019/11/17 +
- +
-  * Installs ''nvme-cli'' +
-  * ''blkdiscard''s the NVMe drive +
-  * Uses ''nvme format'' on the NVMe drive +
-  * [[#clean_efi_variables|Cleans EFI variables]] +
- +
-  sudo apt install 'nvme-cli' -y && sync && sudo blkdiscard --verbose '/dev/nvme0n1' && sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sudo rm -f '/sys/firmware/efi/efivars/'* || sync +
- +
-===== NVMe Erase ===== +
- +
-  sudo apt install 'nvme-cli' -y && sync+
  
   sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync   sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync
Line 986: Line 758:
 ==== Controller Details ==== ==== Controller Details ====
  
-  sudo apt install 'mdadm' -y && sync+  * This can be used to get the Oprom version for Intel RST
  
   sudo mdadm --detail-platform   sudo mdadm --detail-platform
Line 1005: Line 777:
  
   * In ''dsdt.dsl'', look for ''_OSI'' values, along with ''Windows'' and ''Linux''   * In ''dsdt.dsl'', look for ''_OSI'' values, along with ''Windows'' and ''Linux''
-  * TODO: Fix for Ubuntu 
  
   sudo dnf install 'acpica-tools'   sudo dnf install 'acpica-tools'
Line 1019: Line 790:
 ===== Display EDID Info ===== ===== Display EDID Info =====
  
-  * https://askubuntu.com/a/371269+  * https://unix.stackexchange.com/a/114398
  
-  sudo apt install 'read-edid'+  sudo dnf install 'monitor-edid'
  
-  sudo get-edid | parse-edid+  monitor-edid
  
 ===== Custom Resolutions ===== ===== Custom Resolutions =====
Line 1057: Line 828:
 ==== Permanently Apply ==== ==== Permanently Apply ====
  
-  * ''Identifier'' is the output port the display is connected to+  * ''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''   * ''Modeline'' is from the above generate command, including the text ''Modeline''
   * ''PreferredMode'' is the custom resolution name generated   * ''PreferredMode'' is the custom resolution name generated
Line 1114: Line 885:
   sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status'   sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status'
  
-===== Hyper-threading Information =====+===== HT/SMT Information =====
  
 **** ****
Line 1136: Line 907:
 ===== Create 7z Password Archive ===== ===== Create 7z Password Archive =====
  
-  * Change ''x'' in ''x.7z'' to the desired archive name +  * Change ''7ZIPNAME'' in ''7ZIPNAME.7z'' to the desired archive name 
-  * Change ''CHANGEME'' in ''-pCHANGEME'' to the desired password+  * Change ''PASS'' in ''-pPASS'' to the desired password 
 +  * Change ''x'' to the file or folder to add to the archive
  
-  sudo apt install 'p7zip-full'+  7za a '7ZIPNAME.7z' -p'PASS' 'x'
  
-  7za a 'x.7z' -p'CHANGEME'+  7za a 'x.7z' -p'x' 'x'
  
 ===== oathtool ===== ===== oathtool =====
Line 1147: Line 919:
   * ''x'' is a secret without ''&digits=6''   * ''x'' is a secret without ''&digits=6''
  
-  sudo apt install 'oathtool'+  sudo dnf install 'oathtool'
  
   oathtool --totp -b 'x'   oathtool --totp -b 'x'
Line 1153: Line 925:
 ===== Remove EXIF data ===== ===== Remove EXIF data =====
  
-  sudo apt install 'libimage-exiftool-perl'+  sudo dnf install 'perl-Image-ExifTool'
  
   exiftool -all= *.* -overwrite_original   exiftool -all= *.* -overwrite_original
 +
/var/www/wiki/data/pages/distros/ubuntu_desktop.txt · Last modified: 2024/02/06 16:34 by Sean Rhone