distros:ubuntu_desktop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
distros:ubuntu_desktop [2019/10/22 10:42] – Sean Rhone | distros:ubuntu_desktop [2021/10/29 20:00] – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Information ====== | ====== Information ====== | ||
- | * Ubuntu ((https://www.ubuntu.com/desktop)) | + | * Ubuntu ((https:// |
- | * 19.10 | + | * Desktop ((https:// |
- | + | ||
- | ====== Known Issues ====== | + | |
- | + | ||
- | * None | + | |
====== Download ====== | ====== Download ====== | ||
- | * https://www.ubuntu.com/ | + | * https:// |
- | + | ||
- | ====== Installation Notes ====== | + | |
- | + | ||
- | * '' | + | |
- | * Minimal installation | + | |
====== HOSTS ====== | ====== HOSTS ====== | ||
* https:// | * https:// | ||
- | * Using '' | + | * Unified hosts + fakenews + gambling |
- | | + | wget -O '/tmp/hosts-tmp' ' |
cat '/ | cat '/ | ||
sudo -e '/ | sudo -e '/ | ||
- | |||
- | ====== Repositories ====== | ||
- | |||
- | ===== ckb-next ===== | ||
- | |||
- | * https:// | ||
- | |||
- | sudo add-apt-repository ' | ||
- | |||
- | ===== padoka PPA ===== | ||
- | |||
- | * Unstable/ | ||
- | |||
- | * https:// | ||
- | * https:// | ||
- | |||
- | sudo add-apt-repository ' | ||
- | |||
- | ===== Wine ===== | ||
- | |||
- | * :!: TODO: Update for 19.10 | ||
- | |||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | |||
- | wget -O '/ | ||
- | |||
- | ===== Lutris ===== | ||
- | |||
- | * :!: TODO: Update for 19.10 | ||
- | |||
- | * https:// | ||
- | * http:// | ||
- | |||
- | wget -O '/ | ||
====== Software ====== | ====== Software ====== | ||
Line 78: | Line 33: | ||
**** | **** | ||
- | sudo fwupdmgr refresh && sudo fwupdmgr update --verbose | + | sudo fwupdmgr refresh |
==== Snaps ==== | ==== Snaps ==== | ||
Line 90: | Line 45: | ||
**** | **** | ||
- | 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 mpv transmission-gtk aria2 htop unar p7zip-full mesa-utils ffmpeg libsecret-tools |
- | ===== wl ===== | + | ==== OpenVPN ==== |
- | + | ||
- | * For a MacBook Pro with '' | + | |
- | + | ||
- | bcmwl-kernel-source | + | |
- | + | ||
- | ===== OpenVPN | + | |
**** | **** | ||
Line 104: | Line 53: | ||
network-manager-openvpn-gnome | network-manager-openvpn-gnome | ||
- | ===== VA-API ===== | + | ==== ckb-next ==== |
- | | + | |
- | | + | |
- | ===== ckb-next ===== | + | ==== Wine ==== |
**** | **** | ||
- | | + | |
- | ===== Keybase ===== | + | ==== Tor Browser |
- | | + | **** |
- | | + | |
- | ===== Wine ===== | + | ==== Keybase |
- | | + | |
+ | * :!: This needs ran as a separate command and not combined with the above package installations | ||
- | | + | |
- | wine-d3d9-staging | + | ==== Google Chrome ==== |
- | ===== Lutris ===== | + | |
- | + | ||
- | | + | |
- | + | ||
- | winehq-staging lutris | + | |
- | + | ||
- | ===== Tor Browser ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | torbrowser-launcher | + | |
- | + | ||
- | ===== Google Chrome ===== | + | |
- | + | ||
- | **** | + | |
wget -O '/ | wget -O '/ | ||
Line 154: | Line 90: | ||
bash -c " | bash -c " | ||
- | gnome-terminal --command "sudo sh -c 'apt update && apt full-upgrade -y && apt clean && apt autoremove -y && sync && fwupdmgr refresh && fwupdmgr update --verbose | + | gnome-terminal --command "sudo sh -c 'apt update && apt full-upgrade -y && apt clean && apt autoremove -y && sync && snap refresh && wget -O '/ |
==== Keys ==== | ==== Keys ==== | ||
Line 164: | Line 100: | ||
===== Printer ===== | ===== Printer ===== | ||
- | |||
- | * :!: TODO: All 4 of the 8710 models have the same exact name... | ||
* http:// | * http:// | ||
- | * Output Mode: Black Only Grayscale | + | * '' |
- | * Print Quality: High-Resolution Photo | + | * Print Color Mode: Device Gray |
* Administration -> Set As Server Default | * Administration -> Set As Server Default | ||
Line 182: | Line 116: | ||
===== Network ===== | ===== Network ===== | ||
- | ==== DNS ==== | + | ==== Cloudflare |
- | + | ||
- | === UncensoredDNS === | + | |
- | + | ||
- | * https:// | + | |
- | + | ||
- | 89.233.43.71, | + | |
- | + | ||
- | 2a01: | + | |
- | + | ||
- | === OpenNIC Anycast | + | |
- | * https://wiki.opennic.org/start# | + | * https://1.1.1.1/dns/ |
+ | * See [[notes: | ||
- | 185.121.177.177,169.239.202.202 | + | < |
- | 2a05:dfc7:5::53,2a05:dfc7:5::5353 | + | < |
==== VPN.AC ==== | ==== VPN.AC ==== | ||
Line 204: | Line 129: | ||
* See [[information: | * See [[information: | ||
* :!: If using this VPN, disable IPv6 from NetworkManager | * :!: If using this VPN, disable IPv6 from NetworkManager | ||
- | |||
- | ===== Nautilus ===== | ||
- | |||
- | * Sort folders before files | ||
- | * 4096 MB File Previews | ||
===== Rhythmbox ===== | ===== Rhythmbox ===== | ||
Line 218: | Line 138: | ||
* 10-notch Transparency | * 10-notch Transparency | ||
- | ===== Transmission | + | ===== GRUB ===== |
- | * Blocklist | + | ==== Config |
- | + | ||
- | http:// | + | |
- | + | ||
- | ===== GRUB ===== | + | |
**** | **** | ||
sudo -e '/ | sudo -e '/ | ||
- | |||
- | ==== Old Parameters ==== | ||
- | |||
- | * See [[notes: | ||
- | |||
- | ==== GRUB ==== | ||
- | |||
- | **** | ||
- | |||
- | GRUB_TIMEOUT=1 | ||
- | |||
- | ==== AIO ==== | ||
- | |||
- | === Spinesnap === | ||
- | |||
- | * Last updated: 2019/10/22 | ||
- | |||
- | i915.enable_fbc=1 i915.fastboot=1 pci=nocrs, | ||
- | |||
- | ==== i915 ==== | ||
- | |||
- | i915.enable_fbc=1 i915.fastboot=1 | ||
- | |||
- | i915.enable_psr=1 | ||
==== amdgpu ==== | ==== amdgpu ==== | ||
- | * Allows use of Overdrive options for overclocking | + | * Allows use of Overdrive options for overclocking |
amdgpu.ppfeaturemask=0xffffffff | amdgpu.ppfeaturemask=0xffffffff | ||
- | |||
- | === Test === | ||
- | |||
- | **** | ||
- | |||
- | amdgpu.mes=1 amdgpu.mcbp=1 | ||
=== Verify === | === Verify === | ||
Line 271: | Line 157: | ||
cat '/ | cat '/ | ||
- | |||
- | ==== PCI ==== | ||
- | |||
- | **** | ||
- | |||
- | pci=nocrs, | ||
- | |||
- | ==== IOMMU ==== | ||
- | |||
- | * :!: This may cause DMAR issues with the Intel iGPU | ||
- | |||
- | intel_iommu=on | ||
===== GNOME ===== | ===== GNOME ===== | ||
- | ==== Disable Wayland | + | ==== Settings |
- | cat '/ | + | === All-in-one === |
- | | + | |
- | ==== Root GUI Apps in Wayland ==== | + | |
- | | + | |
- | * This needs re-ran after session restart | + | |
- | * TODO: Is this even needed anymore? | + | |
- | | + | gsettings |
- | + | ||
- | ==== Settings ==== | + | |
- | + | ||
- | === All-in-one === | + | |
- | + | ||
- | * Last updated: 2019/ | + | |
- | + | ||
- | | + | |
=== Individual === | === Individual === | ||
- | * Last updated: | + | * Last updated: |
- | gsettings set ' | + | gsettings set ' |
gsettings set ' | gsettings set ' | ||
Line 329: | Line 193: | ||
gsettings set ' | gsettings set ' | ||
+ | |||
+ | gsettings set ' | ||
+ | |||
+ | == Other == | ||
+ | |||
+ | * The first depend on GNOME Software existing | ||
+ | * The second needs GNOME 40+ and isn't applicable on Ubuntu 21.04 | ||
gsettings set ' | gsettings set ' | ||
+ | |||
+ | gsettings reset ' | ||
+ | |||
+ | ===== Hostname ===== | ||
+ | |||
+ | * Change '' | ||
+ | |||
+ | hostnamectl set-hostname ' | ||
+ | |||
+ | ===== Keybase ===== | ||
+ | |||
+ | * :!: Run after initial install | ||
+ | |||
+ | run_keybase | ||
===== KeePassXC ===== | ===== KeePassXC ===== | ||
Line 337: | Line 222: | ||
* 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 343: | Line 229: | ||
secret-tool store --label=' | secret-tool store --label=' | ||
+ | |||
+ | ===== lm_sensors ===== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | sudo sensors-detect | ||
+ | |||
+ | sudo sensors-detect --auto | ||
===== mpv ===== | ===== mpv ===== | ||
- | * https:// | + | * [[https:// |
- | mkdir -p ~/' | + | mkdir -p ~/' |
+ | |||
+ | < | ||
+ | profile=gpu-hq | ||
+ | scale=ewa_lanczossharp | ||
+ | cscale=ewa_lanczossharp | ||
+ | video-sync=display-resample | ||
+ | interpolation | ||
+ | tscale=oversample</code> | ||
===== NetworkManager ===== | ===== NetworkManager ===== | ||
- | * '' | + | * '' |
* :!: '' | * :!: '' | ||
- | * '' | ||
sudo -e '/ | sudo -e '/ | ||
Line 363: | Line 264: | ||
[connection-mac-randomization] | [connection-mac-randomization] | ||
- | ethernet.cloned-mac-address=random | ||
wifi.cloned-mac-address=random | wifi.cloned-mac-address=random | ||
[connection] | [connection] | ||
wifi.powersave=2</ | wifi.powersave=2</ | ||
+ | |||
+ | < | ||
+ | [connection-mac-randomization] | ||
+ | ethernet.cloned-mac-address=random</ | ||
===== Laptop Power Management ===== | ===== Laptop Power Management ===== | ||
Line 375: | Line 279: | ||
===== Secure Shell ===== | ===== Secure Shell ===== | ||
- | * See [[Clients:Secure Shell|Secure Shell]] | + | * See [[clients:secure_shell|Client]] notes to generate/ |
- | ===== Solo Key ===== | + | ===== Uncomplicated Firewall |
- | ==== Information ==== | + | * See [[notes: |
- | | + | sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw enable && sudo systemctl enable |
- | * Usable as authentication for GDM and '' | + | |
- | ==== PAM ==== | + | sudo ufw allow ' |
- | === Dependencies | + | ===== Drive Maintenance ===== |
- | **** | + | ==== Trim ==== |
- | | + | |
- | === Centralized Key === | + | sudo systemctl enable ' |
- | **** | + | ==== XFS Scrub ==== |
- | | + | |
+ | * :!: This is only necessary if XFS is being used on any persistent drives, and requires | ||
- | === GDM === | + | sudo apt install ' |
- | | + | |
- | sudo -e '/ | + | ===== UTC ===== |
- | | + | |
+ | * Set RTC to UTC | ||
+ | * :!: Needed if Windows is installed first | ||
+ | * :!: Windows should also be set to UTC | ||
- | === sudo === | + | |
- | * Add to line 2, under the ''# | + | ==== Verify |
- | + | ||
- | sudo -e '/ | + | |
- | + | ||
- | auth sufficient pam_u2f.so authfile=/ | + | |
- | + | ||
- | ===== systemd ===== | + | |
- | + | ||
- | * Log data is stored in volatile storage | + | |
- | * Max log file sizes of '' | + | |
- | + | ||
- | sudo mkdir -p '/ | + | |
- | + | ||
- | ===== Uncomplicated Firewall ===== | + | |
- | + | ||
- | ==== General | + | |
**** | **** | ||
- | | + | |
- | + | ||
- | ==== SSH ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw allow ' | + | |
- | + | ||
- | ===== TRIM ===== | + | |
- | + | ||
- | * ''/ | + | |
- | + | ||
- | sudo systemctl enable ' | + | |
===== Wine ===== | ===== Wine ===== | ||
Line 445: | Line 325: | ||
* See [[notes: | * See [[notes: | ||
- | ====== | + | ====== |
+ | |||
+ | * See [[notes: | ||
===== Nightwane ===== | ===== Nightwane ===== | ||
- | ==== Volume ==== | + | * :!: With Fedora 34 as of 2021/05/12, the '' |
+ | * :!: This doesn' | ||
+ | * Since '' | ||
+ | * [[http:// | ||
- | * https:// | + | * :!: TODO: Test if this is necessary on Ubuntu 21.04+ |
- | * TODO: Change where this is; no longer have this computer | + | |
- | alsamixer | + | < |
- | ==== Fan Control | + | ====== Mozilla Firefox ====== |
- | * TODO: Change where this is; it's not specific to this computer nor fan control | + | * See [[notes:firefox|Firefox]] if old configuration |
- | 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: | ||
- | === Generate Modeline | + | ===== Automatic Updates ===== |
- | * 4k@60Hz CVT-RB | + | ==== Service ==== |
- | * Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort | + | |
- | * :!: The '' | + | |
- | * :!: This cannot be used on Wayland currently | + | |
- | * :!: This expects '' | + | |
- | | + | sudo -e '/etc/systemd/system/ubuntu-up.service' |
- | + | ||
- | === xorg.conf Snippet === | + | |
- | + | ||
- | * :!: '' | + | |
- | + | ||
- | | + | |
< | < | ||
- | Section " | + | [Service] |
- | | + | Type=oneshot |
- | | + | ExecStartPre='/ |
- | | + | ExecStart='/ |
- | EndSection</ | + | ExecStart='/ |
+ | ExecStart='/ | ||
+ | ExecStartPost='/ | ||
+ | ExecStartPost='/ | ||
- | ===== Spinesnap ===== | + | ==== Timer ==== |
- | * :!: Using an AMD eGPU with a display attached doesn' | + | * 03:00 Oak |
- | * TODO: If '' | + | |
- | sudo apt install xserver-xorg-video-intel xserver-xorg-video-amdgpu -y && sudo mkdir -p '/etc/X11/xorg.conf.d' && sudo -e '/ | + | sudo -e '/etc/systemd/system/ |
< | < | ||
- | Section " | + | [Unit] |
- | Identifier | + | Description=Software |
- | Modeline " | + | After=network-online.target |
- | Option | + | Wants=network-online.target |
- | EndSection | + | |
- | + | ||
- | Section " | + | |
- | Identifier | + | |
- | MatchDriver " | + | |
- | Driver | + | |
- | Option | + | |
- | Option | + | |
- | EndSection | + | |
- | + | ||
- | Section " | + | |
- | Identifier | + | |
- | MatchDriver " | + | |
- | Driver | + | |
- | Option | + | |
- | Option | + | |
- | EndSection</ | + | |
- | + | ||
- | ===== Deep Color ===== | + | |
- | + | ||
- | * The lack-of quotes around '' | + | |
- | * :!: This may cause minor issues with programs not expecting 30-bit color ((GpuTest' | + | |
- | * :!: 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/ | + | |
- | + | ||
- | sudo mkdir -p '/ | + | |
- | + | ||
- | < | + | |
- | Section " | + | |
- | Identifier | + | |
- | DefaultDepth | + | |
- | EndSection</ | + | |
- | + | ||
- | ===== Graphics xorg.conf ===== | + | |
- | + | ||
- | ==== intel ==== | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | < | + | |
- | Section " | + | |
- | Identifier | + | |
- | MatchDriver " | + | |
- | Driver | + | |
- | Option | + | |
- | Option | + | |
- | EndSection</ | + | |
- | + | ||
- | ==== amdgpu ==== | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | < | + | |
- | Section " | + | |
- | Identifier | + | |
- | MatchDriver " | + | |
- | Driver | + | |
- | Option | + | |
- | Option | + | |
- | EndSection</ | + | |
- | + | ||
- | ==== radeon ==== | + | |
- | + | ||
- | * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) | + | |
- | * For SI, CIK, and newer GPUs, use '' | + | |
- | * :!: This was changed to a new syntax and untested as of 2019/ | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | < | + | |
- | Section " | + | |
- | Identifier | + | |
- | MatchDriver " | + | |
- | Driver | + | |
- | Option | + | |
- | Option | + | |
- | Option | + | |
- | Option | + | |
- | EndSection</ | + | |
- | + | ||
- | ==== Environment Variables ==== | + | |
- | + | ||
- | * Enables hardware acceleration, | + | |
- | * :!: WebRenderer requires the previous '' | + | |
- | + | ||
- | echo -e ' | + | |
- | + | ||
- | sudo -e '/ | + | |
- | + | ||
- | ==== Default Profile ==== | + | |
- | + | ||
- | rm -fv '/ | + | |
- | + | ||
- | < | + | |
- | [General] | + | |
- | StartWithLastProfile=1 | + | |
- | + | ||
- | [Profile0] | + | |
- | Name=default | + | |
- | IsRelative=1 | + | |
- | Path=CHANGEME | + | |
- | Default=1</ | + | |
- | + | ||
- | ==== user.js ==== | + | |
- | + | ||
- | * Last updated: 2019/ | + | |
- | + | ||
- | rm -fv '/ | + | |
- | + | ||
- | < | + | |
- | / | + | |
- | * General * | + | |
- | | + | |
- | + | ||
- | user_pref(" | + | |
- | user_pref(" | + | |
- | + | ||
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | + | ||
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | + | ||
- | /******* | + | |
- | * U2F * | + | |
- | | + | |
- | + | ||
- | user_pref(" | + | |
- | + | ||
- | /******* | + | |
- | * END * | + | |
- | | + | |
- | + | ||
- | === 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... | + | |
- | * :!: '' | + | |
- | + | ||
- | < | + | |
- | / | + | |
- | * Privacy * | + | |
- | | + | |
- | + | ||
- | user_pref(" | + | |
- | user_pref(" | + | |
- | + | ||
- | ==== Apply Settings ==== | + | |
- | + | ||
- | * '' | + | |
- | * :!: If Firefox doesn' | + | |
- | + | ||
- | ls '/ | + | |
- | + | ||
- | ===== Extensions ===== | + | |
- | + | ||
- | ==== Download ==== | + | |
- | + | ||
- | * Decentraleyes | + | |
- | * HTTPS Everywhere | + | |
- | * Privacy Possum | + | |
- | * Cookie AutoDelete | + | |
- | * uBlock Origin | + | |
- | + | ||
- | gio open ' | + | |
- | + | ||
- | ==== 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 '' | + | |
- | * [ ] Privacy -> EasyPrivacy ((uncheck; included in '' | + | |
- | + | ||
- | * Multipurpose -> [x] Dan Pollock' | + | |
- | * Multipurpose -> [x] hpHost' | + | |
- | * Multipurpose -> [x] MVPS HOSTS | + | |
- | + | ||
- | * Custom -> [x] Import | + | |
- | + | ||
- | === Custom 3rd-party filters === | + | |
- | + | ||
- | * Last updated: 2018/ | + | |
- | + | ||
- | < | + | |
- | https:// | + | |
- | https:// | + | |
- | https:// | + | |
- | https:// | + | |
- | https:// | + | |
- | https:// | + | |
- | https:// | + | |
- | + | ||
- | ===== Testing Sites ===== | + | |
- | + | ||
- | * https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
- | + | ||
- | ====== Notable Folders and Commands ====== | + | |
- | + | ||
- | ===== Extract ISO ===== | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | * No space after the '' | + | |
- | * This is primarily useful for copying Windows ISO images to a FAT32 flash drive | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | 7z x -o' | + | |
- | + | ||
- | 7z x -o'/ | + | |
- | + | ||
- | ===== youtube-dl ===== | + | |
- | + | ||
- | * https:// | + | |
- | + | ||
- | ==== Download ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | rm -f '/ | + | |
- | + | ||
- | ==== Show Formats ==== | + | |
- | + | ||
- | * Change '' | + | |
- | + | ||
- | '/ | + | |
- | + | ||
- | ==== Download Media ==== | + | |
- | + | ||
- | * Change '' | + | |
- | * '' | + | |
- | + | ||
- | '/ | + | |
- | + | ||
- | === M4A Audio === | + | |
- | + | ||
- | * Ideally for if iOS devices will be involved | + | |
- | + | ||
- | '/ | + | |
- | + | ||
- | === MP3 Audio === | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | '/ | + | |
- | + | ||
- | ===== Shortcuts ===== | + | |
- | + | ||
- | / | + | |
- | + | ||
- | ~/ | + | |
- | + | ||
- | ===== Icons ===== | + | |
- | + | ||
- | / | + | |
- | + | ||
- | ~/ | + | |
- | + | ||
- | ===== Repos ===== | + | |
- | + | ||
- | nano '/ | + | |
- | + | ||
- | ls '/ | + | |
- | + | ||
- | ==== Keys ===== | + | |
- | + | ||
- | === Check Keys === | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo apt-key list | + | |
- | + | ||
- | === Remove Keys === | + | |
- | + | ||
- | * '' | + | |
- | + | ||
- | sudo apt-key del x | + | |
- | + | ||
- | ===== Re-generate Thumbnails ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | rm -Rf ~/' | + | |
- | + | ||
- | ===== List GNOME gsettings ===== | + | |
- | + | ||
- | * Change '' | + | |
- | + | ||
- | gsettings list-recursively ' | + | |
- | + | ||
- | ===== GNOME Software Maintenance | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | pkcon -c ' | + | |
- | + | ||
- | ===== fstrim ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo fstrim --verbose --all | + | |
- | + | ||
- | ===== GNOME Monitors Reset ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | rm -f ~/' | + | |
- | + | ||
- | ===== PulseAudio Reset ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | rm -f ~/' | + | |
- | + | ||
- | ===== Xorg Debug ===== | + | |
- | + | ||
- | journalctl -e _COMM=' | + | |
- | + | ||
- | gio open ~/' | + | |
- | + | ||
- | ===== Verify DRI3 ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | LIBGL_DEBUG=' | + | |
- | + | ||
- | ===== GpuTest ===== | + | |
- | + | ||
- | * https:// | + | |
- | + | ||
- | ==== Execute ==== | + | |
- | + | ||
- | === HDTV === | + | |
- | + | ||
- | * 1280x720 | + | |
- | + | ||
- | wget -O '/ | + | |
- | + | ||
- | cd '/ | + | |
- | + | ||
- | /fullscreen /benchmark / | + | |
- | + | ||
- | === FHD === | + | |
- | + | ||
- | * 1920x1080 | + | |
- | + | ||
- | wget -O '/ | + | |
- | + | ||
- | cd '/ | + | |
- | + | ||
- | /fullscreen /benchmark / | + | |
- | + | ||
- | === UHDTV1 === | + | |
- | + | ||
- | * 3840x2160 | + | |
- | + | ||
- | wget -O '/ | + | |
- | + | ||
- | cd '/ | + | |
- | + | ||
- | /fullscreen /benchmark / | + | |
- | + | ||
- | ==== Cleanup ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | rm -Rf '/ | + | |
- | + | ||
- | ===== Show CPU Frequency ===== | + | |
- | + | ||
- | grep ' | + | |
- | + | ||
- | watch -n 0.1 grep \'cpu MHz\' '/ | + | |
- | + | ||
- | ===== OpenSSL Supported Ciphers ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | openssl ciphers -v | awk ' | + | |
- | + | ||
- | ===== Partition Information ===== | + | |
- | + | ||
- | * Both commands do the same things | + | |
- | + | ||
- | df -hT | + | |
- | + | ||
- | df --human-readable --print-type | + | |
- | + | ||
- | ===== Encryption Information ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | sudo cryptsetup -v status '/ | + | |
- | + | ||
- | ===== ATA Secure Erase ===== | + | |
- | + | ||
- | * :!: All '' | + | |
- | + | ||
- | ==== Preparation ==== | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | sudo hdparm -I '/ | + | |
- | + | ||
- | systemctl suspend | + | |
- | + | ||
- | ==== ATA Secure Erase ==== | + | |
- | + | ||
- | sudo hdparm --user-master u --security-set-pass ' | + | |
- | + | ||
- | sudo hdparm --user-master u --security-set-pass ' | + | |
- | + | ||
- | ==== Quick-commands ==== | + | |
- | + | ||
- | === Standard === | + | |
- | + | ||
- | * Performs both '' | + | |
- | * [[# | + | |
- | + | ||
- | sudo hdparm --user-master u --security-set-pass ' | + | |
- | + | ||
- | === Mac === | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * Clears EFI variables | + | |
- | * :!: Unknown how this works on newer Macs with T2 | + | |
- | + | ||
- | sudo blkdiscard --verbose '/ | + | |
- | + | ||
- | === Dell === | + | |
- | + | ||
- | * Performs both '' | + | |
- | * [[# | + | |
- | + | ||
- | sudo hdparm --user-master u --security-erase ' | + | |
- | + | ||
- | ===== NVMe Erase ===== | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | sudo nvme format '/ | + | |
- | + | ||
- | ===== Clean EFI Variables ===== | + | |
- | + | ||
- | * :!: Could potentially cause a firmware brick or other issues with improper EFI implementations, | + | |
- | * Safer way is to use '' | + | |
- | + | ||
- | sudo rm -f '/ | + | |
- | + | ||
- | ===== RAID ===== | + | |
- | + | ||
- | ==== Controller Details ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | 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 '/ | + | |
- | + | ||
- | ===== VGA Switcheroo Power States ===== | + | |
- | + | ||
- | * https:// | + | |
- | + | ||
- | sudo cat '/ | + | |
- | + | ||
- | ===== ACPI Tables ===== | + | |
- | + | ||
- | * In '' | + | |
- | * TODO: Fix for Ubuntu | + | |
- | + | ||
- | sudo dnf install ' | + | |
- | + | ||
- | sudo cp --force '/ | + | |
- | + | ||
- | cd ~ && iasl -d ~/' | + | |
- | + | ||
- | gio open ~/' | + | |
- | + | ||
- | sudo dnf remove ' | + | |
- | + | ||
- | ===== Display EDID Info ===== | + | |
- | + | ||
- | * https:// | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | sudo get-edid | parse-edid | + | |
- | + | ||
- | ===== Custom Resolutions ===== | + | |
- | + | ||
- | ==== Generate Modeline ==== | + | |
- | + | ||
- | * Use '' | + | |
- | * Syntax is '' | + | |
- | + | ||
- | cvt ' | + | |
- | + | ||
- | cvt --reduced ' | + | |
- | + | ||
- | < | + | |
- | + | ||
- | ==== Temporarily Apply ==== | + | |
- | + | ||
- | * Changes are lost after reboot | + | |
- | * Values after '' | + | |
- | + | ||
- | xrandr --newmode " | + | |
- | + | ||
- | xrandr --addmode ' | + | |
- | + | ||
- | xrandr --output ' | + | |
- | + | ||
- | === Verify === | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | xrandr --verbose | grep *current | + | |
- | + | ||
- | ==== Permanently Apply ==== | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | < | + | |
- | Section " | + | |
- | Identifier | + | |
- | Modeline x | + | |
- | Option | + | |
- | EndSection</ | + | |
- | + | ||
- | ===== Backlight ===== | + | |
- | + | ||
- | ==== Notes ==== | + | |
- | + | ||
- | * The following commands with an asterisk expect only one backlight controller at ''/ | + | |
- | * This was only tested on one laptop with '' | + | |
- | * See [[# | + | |
- | * See [[https:// | + | |
- | + | ||
- | ==== Controller Name ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | ls '/ | + | |
- | + | ||
- | ==== Query Current Brightness ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | cat '/ | + | |
- | + | ||
- | ==== Query Max Brightness ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | cat '/ | + | |
- | + | ||
- | ==== Set Custom Brightness ==== | + | |
- | + | ||
- | * Change '' | + | |
- | * Desired brightness **must** be under '' | + | |
- | + | ||
- | echo " | + | |
- | + | ||
- | ==== Set Max Brightness ==== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | echo "$(cat '/ | + | |
- | + | ||
- | ===== Intel GuC Firmware ===== | + | |
- | + | ||
- | sudo cat '/ | + | |
- | + | ||
- | sudo cat '/ | + | |
- | + | ||
- | ===== Hyper-threading Information ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | grep -e " | + | |
- | + | ||
- | ===== Optimal GCC compiler flags ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+// | + | |
- | + | ||
- | ====== Privacy ====== | + | |
- | + | ||
- | ===== Clear Terminal History ===== | + | |
- | + | ||
- | **** | + | |
- | + | ||
- | history -cw | + | |
- | + | ||
- | ===== Create 7z Password Archive ===== | + | |
- | + | ||
- | * Change '' | + | |
- | * Change '' | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | 7za a ' | + | |
- | + | ||
- | ===== oathtool ===== | + | |
- | + | ||
- | * '' | + | |
- | + | ||
- | sudo apt install ' | + | |
- | + | ||
- | oathtool --totp -b ' | + | |
- | ===== Remove EXIF data ===== | + | [Timer] |
+ | OnCalendar=*-*-* 03:00:00 | ||
+ | Persistent=true | ||
- | sudo apt install ' | + | [Install] |
+ | WantedBy=timers.target</ | ||
- | exiftool -all= *.* -overwrite_original |
/var/www/wiki/data/pages/distros/ubuntu_desktop.txt · Last modified: 2024/02/06 16:34 by Sean Rhone