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 revisionBoth sides next revision
distros:ubuntu_desktop [2019/10/22 08:19] Sean Rhonedistros:ubuntu_desktop [2019/10/22 08:57] Sean Rhone
Line 35: Line 35:
  
   sudo add-apt-repository 'ppa:tatokis/ckb-next'   sudo add-apt-repository 'ppa:tatokis/ckb-next'
 +
 +===== padoka PPA =====
 +
 +  * Unstable/bleeding-edge PPA
 +
 +  * https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa
 +  * https://wordpress.padoka.org
 +
 +  sudo add-apt-repository 'ppa:paulo-miguel-dias/mesa' -y
  
 ===== Wine ===== ===== Wine =====
  
-  * :!: TODO: Update for 19.04+  * :!: TODO: Update for 19.10
  
   * https://www.winehq.org/   * https://www.winehq.org/
Line 48: Line 57:
 ===== Lutris ===== ===== Lutris =====
  
-  * :!: TODO: Update for 19.04+  * :!: TODO: Update for 19.10
  
   * https://lutris.net   * https://lutris.net
Line 54: Line 63:
  
   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/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
- 
-===== padoka PPA ===== 
- 
-  * https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa 
-  * https://wordpress.padoka.org 
- 
-  sudo add-apt-repository 'ppa:paulo-miguel-dias/mesa' -y 
  
 ====== Software ====== ====== Software ======
Line 210: Line 212:
 ===== Rhythmbox ===== ===== Rhythmbox =====
  
-  * See [[Information:Internet Radio]]+  * See [[Information:Internet Radio|Internet Radio]]
  
 ===== Terminal ===== ===== Terminal =====
Line 238: Line 240:
   GRUB_TIMEOUT=1   GRUB_TIMEOUT=1
  
-==== Corsair USB Quirks ====+==== AIO ====
  
-  * https://github.com/ckb-next/ckb-next/wiki/Troubleshooting#usbhid-quirks+=== Spinesnap ===
  
-  usbcore.quirks=1b1c:1b38:gn,1b1c:1b3c:gn+  * Last updated2019/10/22
  
-==== blk_mq ====+  i915.enable_fbc=1 i915.fastboot=1 pci=nocrs,pcie_bus_perf
  
-****+==== i915 ====
  
-  scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y+  i915.enable_fbc=1 i915.fastboot=1
  
-==== Reboot ====+  i915.enable_psr=1
  
-  * ''efi'' is for UEFI systems +==== amdgpu ====
-  * ''pci'' is for Legacy systems and Coreboot with SeaBIOS payload +
-  * There are other values possible should either of those not work+
  
-  reboot=pci+  * Allows use of Overdrive options for overclocking
  
-  reboot=efi+  amdgpu.ppfeaturemask=0xffffffff
  
-==== PCIe ASPM ====+=== Test ===
  
 **** ****
  
-  pcie_aspm=force+  amdgpu.mes=1 amdgpu.mcbp=1
  
-==== dyntick-idle Disable ==== +=== Verify ===
- +
-  * KGPE-D16's [[https://www.coreboot.org/Board:asus/kgpe-d16#Installation_Notes|Coreboot installation notes]] mention needing this for better power saving +
-  * Specific to Nightwane +
- +
-  nohz=on +
- +
-==== intel_iommu ==== +
- +
-  * Specific to Spinesnap +
- +
-  intel_iommu=on +
- +
-==== i915 ==== +
- +
-  * Applicable on a Lenovo T500 ((Spinesnap)) +
- +
-  i915.enable_fbc=1 i915.fastboot=1 +
- +
-==== amdgpu ====+
  
 **** ****
- 
-  amdgpu.deep_color=1 
- 
-=== Overdrive === 
- 
-  * Allows use of Overdrive options for overclocking 
- 
-  amdgpu.ppfeaturemask=0xffffffff 
  
   cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295'   cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295'
  
-==== Blacklist Watchdogs ====+==== PCI ====
  
-  ''iTCO_wdt'' controls watchdog on some Intel platforms +****
-  ''sp5100_tco'' controls watchdog on some AMD platforms +
-  ''nowatchdog'' disables both soft and hard generic watchdogs +
-  I don't use watchdog features and apparently this reduces power usage slightly+
  
-  modprobe.blacklist=iTCO_wdt,sp5100_tco nowatchdog+  pci=nocrs,pcie_bus_perf
  
-==== Backlight ====+==== IOMMU ====
  
-  * https://www.freedesktop.org/software/systemd/man/kernel-command-line.html#systemd.restore_state= +  * :!: This may cause DMAR issues with the Intel iGPU
-  * This prevents systemd from restoring previous backlight value on reboot +
-  * This is necessary for [[#power_management|Power Management]]+
  
-  systemd.restore_state=+  intel_iommu=on
- +
-==== DRM Debug ==== +
- +
-  * :!: This may make lower-end machines become very unresponsive; be prepared to have some safe way of rebooting +
- +
-  drm.debug=0xe+
  
 ===== GNOME ===== ===== GNOME =====
Line 334: Line 296:
   * Run this before running GUI applications requiring root   * Run this before running GUI applications requiring root
   * This needs re-ran after session restart   * This needs re-ran after session restart
 +  * TODO: Is this even needed anymore?
  
   xhost +LOCAL:   xhost +LOCAL:
Line 341: Line 304:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2019/04/19+  * Last updated: 2019/10/22
  
-  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.software' 'download-updates' 'false'+  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'
  
 === Individual === === Individual ===
  
-  * Last updated: 2019/04/19+  * Last updated: 2019/10/22
  
-  gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'+  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'
Line 391: Line 354:
   * ''wifi.powersave'' is set to ''3'' in ''/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf''   * ''wifi.powersave'' is set to ''3'' in ''/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf''
   * :!: ''ethernet.cloned-mac-address=random'' breaks USB Tethering with iOS/iPhones   * :!: ''ethernet.cloned-mac-address=random'' breaks USB Tethering with iOS/iPhones
 +  * ''wl'' seems to work fine without having to disable randomized MAC scanning?
  
   sudo -e '/etc/NetworkManager/conf.d/99-custom.conf'   sudo -e '/etc/NetworkManager/conf.d/99-custom.conf'
Line 411: Line 375:
 ===== Secure Shell ===== ===== Secure Shell =====
  
-  * See [[Clients:Secure Shell]]+  * See [[Clients:Secure Shell|Secure Shell]]
  
 ===== Solo Key ===== ===== Solo Key =====
Line 449: Line 413:
  
   auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue   auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue
- 
-===== Swappiness ===== 
- 
-  echo "vm.swappiness=10" | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' 
- 
-  cat '/sys/fs/cgroup/memory/memory.swappiness' 
  
 ===== systemd ===== ===== systemd =====
Line 479: Line 437:
 ===== TRIM ===== ===== TRIM =====
  
-==== Swap ==== +  * ''/swap'' is a swapfile on Ubuntu and doesn't need a specific ''discard'' mount option like other distros
- +
-  Add ''discard'' after ''defaults'' for the ''swap'' mountpoint ((defaults,discard)) +
-  * According to the ''swapon'' man page, setting this in ''fstab'' is acceptable +
- +
-  sudo -e '/etc/fstab' +
- +
-  ,discard +
- +
-==== Service ==== +
- +
-  * TODO: This may already exist in cron, verify+
  
   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
Line 505: Line 452:
  
   * https://askubuntu.com/a/886908   * https://askubuntu.com/a/886908
 +  * TODO: Change where this is; no longer have this computer
  
   alsamixer --card='1'   alsamixer --card='1'
Line 510: Line 458:
 ==== Fan Control ==== ==== Fan Control ====
  
-  * Expects an ASUS KCMA-D8 motherboard +  * TODO: Change where this is; it's not specific to this computer nor fan control
-  * If OpenBMC is figured out, this may be superseded +
-  * Answer ''yes'' to all ''sensors-detect'' prompts and reboot for ''fancontrol'' to run+
  
-  sudo apt install lm-sensors fancontrol && sudo sensors-detect && sudo -e '/etc/fancontrol' && sudo systemctl enable 'fancontrol' +  sudo apt install lm-sensors fancontrol && sudo sensors-detect --auto
- +
-<code> +
-INTERVAL=10 +
-DEVNAME=/sys/class/hwmon/hwmon6=w83795g +
- +
-FCTEMPS=/sys/class/hwmon/hwmon6/device/pwm2=/sys/class/hwmon/hwmon6/device/temp8_input +
-FCFANS=/sys/class/hwmon/hwmon6/device/fan1_input+/sys/class/hwmon/hwmon6/device/fan2_input +
- +
-MINTEMP=/sys/class/hwmon/hwmon6/device/pwm2=50 +
-MAXTEMP=/sys/class/hwmon/hwmon6/device/pwm2=60 +
- +
-MINSTART=/sys/class/hwmon/hwmon6/device/pwm2=4000 +
-MINSTOP=/sys/class/hwmon/hwmon6/device/pwm2=0</code>+
  
 ==== Custom Resolution ==== ==== Custom Resolution ====
Line 534: Line 467:
  
   * 4k@60Hz CVT-RB   * 4k@60Hz CVT-RB
-  * Mostly fixes random display glitches +  * Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort 
-  * :!: The ''grep'' here confirms the expected Modeline for my usual display ((if grep reports nothing, use whatever is reported instead))+  * :!: The ''grep'' here confirms the expected Modeline ((if grep reports nothing, use whatever is reported instead))
   * :!: This cannot be used on Wayland currently   * :!: 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))   * :!: This expects ''amdgpu'' DDX driver to be used ((''modesetting'' has a 4K RB resolution without any settings on Xorg))
Line 543: Line 476:
 === xorg.conf Snippet === === xorg.conf Snippet ===
  
-  * :!: Change as-needed+  * :!: ''HDMI-A-0'' is used for the ''Identifier'' with the HDMI port on ''amdgpu''
  
-  sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
Line 552: Line 485:
     Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync     Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync
     Option          "PreferredMode" "3840x2160R"     Option          "PreferredMode" "3840x2160R"
 +EndSection</code>
 +
 +===== Spinesnap =====
 +
 +  * :!: 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))
 +  * 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 -e '/etc/X11/xorg.conf.d/99-graphics.conf'
 +
 +<code>
 +Section "Monitor"
 +    Identifier      "HDMI-A-0"
 +    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync
 +    Option          "PreferredMode" "3840x2160R"
 +EndSection
 +
 +Section "OutputClass"
 +    Identifier  "Intel Graphics"
 +    MatchDriver "i915"
 +    Driver      "intel"
 +    Option      "DRI"       "3"
 +    Option      "TearFree"  "0"
 +EndSection
 +
 +Section "OutputClass"
 +    Identifier  "AMD Graphics"
 +    MatchDriver "amdgpu"
 +    Driver      "amdgpu"
 +    Option      "DRI"       "3"
 +    Option      "TearFree"  "0"
 EndSection</code> EndSection</code>
  
Line 558: Line 521:
   * The lack-of quotes around ''30'' is intentional and required syntax   * 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 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))
-  * :!: May cause GNOME Settings to not work depending on the version of GNOME used+  * :!: 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'   sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Line 575: Line 539:
  
 <code> <code>
-Section "Device+Section "OutputClass
-    Identifier      "Intel GPU+    Identifier  "Intel Graphics" 
-    Driver          "intel" +    MatchDriver "i915
-    Option          "TearFree     "disabled"+    Driver      "intel" 
 +    Option      "DRI      "3" 
 +    Option      "TearFree"  "0"
 EndSection</code> EndSection</code>
  
Line 586: Line 552:
  
 <code> <code>
-Section "Device+Section "OutputClass
-    Identifier      "AMD GPU+    Identifier  "AMD Graphics" 
-    Driver          "amdgpu" +    MatchDriver "amdgpu
-    Option          "TearFree     "off"+    Driver      "amdgpu" 
 +    Option      "DRI      "3" 
 +    Option      "TearFree"  "0"
 EndSection</code> EndSection</code>
  
Line 596: Line 564:
   * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series))   * 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''))   * 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'   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> <code>
-Section "Device+Section "OutputClass
-    Identifier      "AMD GPU+    Identifier  "AMD Graphics" 
-    Driver          "radeon" +    MatchDriver "radeon
-    Option          "TearFree     "off+    Driver      "radeon" 
-    Option          "AccelMethod"   "EXA"+    Option      "DRI              "3" 
 +    Option      "SwapbuffersWait"   "0
 +    Option      "TearFree"          "0" 
 +    Option      "AccelMethod"       "EXA"
 EndSection</code> EndSection</code>
- 
-==== Other ==== 
- 
-  * If using Optimus or some other multi-GPU set-up with different GPU vendors and/or drivers, add the ''BusID'' option 
-  * TODO: How to get the ''BusID'' value 
- 
-<code>    BusID      "PCI:0:2:0"</code> 
  
 ==== Environment Variables ==== ==== Environment Variables ====
Line 638: Line 603:
  
   * Last updated: 2019/04/05   * Last updated: 2019/04/05
-  * :!: IPv6 is disabled in order to prevent WebRTC from grabbing a IPv6 address even though NetworkManager has it disabled... 
-  * :!: ''media.peerconnection.enabled'' disables WebRTC 
  
   rm -fv '/tmp/user.js' && nano '/tmp/user.js'   rm -fv '/tmp/user.js' && nano '/tmp/user.js'
Line 667: Line 630:
 user_pref("security.webauth.u2f", true); 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 *  * Privacy *
Line 672: Line 646:
  
 user_pref("network.dns.disableIPv6", true); user_pref("network.dns.disableIPv6", true);
-user_pref("media.peerconnection.enabled", false); +user_pref("media.peerconnection.enabled", false);</code>
- +
-/******* +
- * END * +
- *******/</code>+
  
 ==== Apply Settings ==== ==== Apply Settings ====
  
   * ''Path'' should report the current user's username, and the text ''Custom Stuff'' should be visible   * ''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+  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 ===== ===== Extensions =====
- 
-==== Startpage.com ==== 
- 
-  * https://www.startpage.com/ 
  
 ==== Download ==== ==== Download ====
Line 694: Line 661:
   * Decentraleyes   * Decentraleyes
   * HTTPS Everywhere   * HTTPS Everywhere
-  * Privacy Badger+  * Privacy Possum
   * Cookie AutoDelete   * Cookie AutoDelete
   * uBlock Origin   * uBlock Origin
-  * CanvasBlocker 
  
-  gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/versions' && gio open 'https://www.eff.org/https-everywhere' && gio open 'https://www.eff.org/privacybadger' && 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' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/canvasblocker/versions'+  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 ==== ==== Cookie AutoDelete ====
Line 764: Line 730:
  
 ===== youtube-dl ===== ===== 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 ==== ==== Show Formats ====
Line 769: Line 743:
   * Change ''x'' to a URL   * Change ''x'' to a URL
  
-  sudo apt install 'youtube-dl'+  '/tmp/youtube-dl' --list-formats x
  
-  youtube-dl -F x+==== Download Media ====
  
-==== Download Audio-only ==== 
- 
-  * Download the ''m4a'' ''audio only'' format shown from the above command 
-  * The format code is likely ''140'' 
   * Change ''x'' to a URL   * 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' x
 +
 +=== M4A Audio ===
 +
 +  * Ideally for if iOS devices will be involved
 +
 +  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'm4a' x
 +
 +=== MP3 Audio ===
 +
 +****
  
-  youtube-dl -f 140 x+  '/tmp/youtube-dl--extract-audio --format 'bestaudio' --audio-format 'mp3' x
  
 ===== Shortcuts ===== ===== Shortcuts =====
Line 836: Line 819:
  
   sudo fstrim --verbose --all   sudo fstrim --verbose --all
 +
 +===== GNOME Monitors Reset =====
 +
 +****
 +
 +  rm -f ~/'.config/monitors.xml' ~/'.config/monitors.xml~'
 +
 +===== PulseAudio Reset =====
 +
 +****
 +
 +  rm -f ~/'.config/pulse/'*
  
 ===== Xorg Debug ===== ===== Xorg Debug =====
Line 855: Line 850:
 ==== Execute ==== ==== Execute ====
  
-=== 720p ===+=== 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'   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'
  
-=== 1080p ===+  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720'
  
-****+  /fullscreen /benchmark /benchmark_duration_ms='15000' 
 + 
 +=== 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'   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 ==== ==== Cleanup ====
Line 932: Line 945:
   * ''security-erase-enhanced'' ''/dev/sda''   * ''security-erase-enhanced'' ''/dev/sda''
   * Clears EFI variables   * 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   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
/var/www/wiki/data/pages/distros/ubuntu_desktop.txt · Last modified: 2024/02/06 16:34 by Sean Rhone