distros:ubuntu_desktop_test
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| distros:ubuntu_desktop_test [2021/09/26 12:06] – created Sean Rhone | distros:ubuntu_desktop_test [2022/06/08 22:08] (current) – removed Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Information ====== | ||
| - | * Ubuntu ((https:// | ||
| - | * Desktop ((https:// | ||
| - | |||
| - | ====== Download ====== | ||
| - | |||
| - | * https:// | ||
| - | |||
| - | ====== HOSTS ====== | ||
| - | |||
| - | * https:// | ||
| - | * Using '' | ||
| - | |||
| - | wget -O '/ | ||
| - | |||
| - | cat '/ | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | ====== Software ====== | ||
| - | |||
| - | ===== Update ===== | ||
| - | |||
| - | ==== System ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync | ||
| - | |||
| - | ==== Firmware ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose | ||
| - | |||
| - | ==== Snaps ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo snap refresh | ||
| - | |||
| - | ===== General ===== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo apt install evolution filezilla gimp keepassxc mpv transmission-gtk aria2 htop unar p7zip-full mesa-utils ffmpeg libsecret-tools libreoffice rhythmbox | ||
| - | |||
| - | ==== OpenVPN ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | network-manager-openvpn-gnome | ||
| - | |||
| - | ===== ckb-next ===== | ||
| - | |||
| - | * https:// | ||
| - | |||
| - | ckb-next | ||
| - | |||
| - | ===== Keybase ===== | ||
| - | |||
| - | * https:// | ||
| - | * :!: This needs ran as a separate command and not combined with the above package installations | ||
| - | |||
| - | rm -Rf '/ | ||
| - | |||
| - | ===== Google Chrome ===== | ||
| - | |||
| - | * :!: TODO: This may need updated to run with '' | ||
| - | |||
| - | wget -O '/ | ||
| - | |||
| - | ====== Settings ====== | ||
| - | |||
| - | ===== Keyboard Shortcuts ===== | ||
| - | |||
| - | bash -c " | ||
| - | |||
| - | gnome-terminal --command "sudo sh -c 'apt update && apt full-upgrade -y && apt clean && apt autoremove -y && sync && snap refresh && wget -O '/ | ||
| - | |||
| - | ==== Keys ==== | ||
| - | |||
| - | * Listed respectively to above | ||
| - | |||
| - | * Ctrl + Alt + Z | ||
| - | * Pause or F7 | ||
| - | |||
| - | ===== Printer ===== | ||
| - | |||
| - | * http:// | ||
| - | |||
| - | * :!: Log-in as '' | ||
| - | * Output Mode: Black Only Grayscale | ||
| - | * Print Quality: High-Resolution Photo | ||
| - | * Administration -> Set As Server Default | ||
| - | |||
| - | socket:// | ||
| - | |||
| - | ===== gedit ===== | ||
| - | |||
| - | * 4 Tab width | ||
| - | * Insert Spaces for Tab mode | ||
| - | |||
| - | ===== Network ===== | ||
| - | |||
| - | ==== Quad9 DNS ==== | ||
| - | |||
| - | * https:// | ||
| - | * Secured w/ECS | ||
| - | * See [[notes: | ||
| - | |||
| - | < | ||
| - | |||
| - | < | ||
| - | |||
| - | ==== VPN.AC ==== | ||
| - | |||
| - | * See [[information: | ||
| - | * :!: If using this VPN, disable IPv6 from NetworkManager | ||
| - | |||
| - | ===== Nautilus ===== | ||
| - | |||
| - | * Sort folders before files | ||
| - | |||
| - | ===== Rhythmbox ===== | ||
| - | |||
| - | * See [[Information: | ||
| - | |||
| - | ===== ckb-next ===== | ||
| - | |||
| - | * :!: May have to disable automatic firmware update check from ckb-next settings in order to prevent it from crashing on profile switch? | ||
| - | |||
| - | sudo systemctl enable ' | ||
| - | |||
| - | ===== GRUB ===== | ||
| - | |||
| - | * See [[notes: | ||
| - | |||
| - | ==== Config ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | ==== IOMMU ==== | ||
| - | |||
| - | * :!: On Ryzen, this should be left enabled in the firmware settings in all cases, but if not directly used for virtualization, | ||
| - | |||
| - | iommu=pt | ||
| - | |||
| - | ==== amdgpu ==== | ||
| - | |||
| - | * Allows use of Overdrive options for overclocking and notably increasing the Power Limit | ||
| - | * See [[devices: | ||
| - | |||
| - | amdgpu.ppfeaturemask=0xffffffff | ||
| - | |||
| - | cat '/ | ||
| - | |||
| - | ===== GNOME ===== | ||
| - | |||
| - | ==== Settings ==== | ||
| - | |||
| - | === All-in-one === | ||
| - | |||
| - | * Last updated: 2021/09/26 | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | === Individual === | ||
| - | |||
| - | * Last updated: 2021/09/26 | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | gsettings set ' | ||
| - | |||
| - | ===== KeePassXC ===== | ||
| - | |||
| - | ==== Settings ==== | ||
| - | |||
| - | * General -> [ ] Load previous databases on startup | ||
| - | * Security -> [x] Use DuckDuckGo service to download website icons | ||
| - | |||
| - | ==== Add Database Password to GNOME Keyring ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | secret-tool store --label=' | ||
| - | |||
| - | ===== lm_sensors ===== | ||
| - | |||
| - | * '' | ||
| - | |||
| - | sudo sensors-detect | ||
| - | |||
| - | sudo sensors-detect --auto | ||
| - | |||
| - | ===== mpv ===== | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | mkdir -p ~/' | ||
| - | |||
| - | < | ||
| - | profile=gpu-hq | ||
| - | scale=ewa_lanczossharp | ||
| - | cscale=ewa_lanczossharp | ||
| - | video-sync=display-resample | ||
| - | interpolation | ||
| - | tscale=oversample</ | ||
| - | |||
| - | ===== NetworkManager ===== | ||
| - | |||
| - | * '' | ||
| - | * :!: '' | ||
| - | |||
| - | sudo mkdir -p '/ | ||
| - | |||
| - | < | ||
| - | [device-mac-randomization] | ||
| - | wifi.scan-rand-mac-address=yes | ||
| - | |||
| - | [connection-mac-randomization] | ||
| - | wifi.cloned-mac-address=random | ||
| - | |||
| - | [connection] | ||
| - | wifi.powersave=2</ | ||
| - | |||
| - | < | ||
| - | [connection-mac-randomization] | ||
| - | ethernet.cloned-mac-address=random</ | ||
| - | |||
| - | ===== Secure Shell ===== | ||
| - | |||
| - | * See [[clients: | ||
| - | |||
| - | ===== Uncomplicated Firewall ===== | ||
| - | |||
| - | < | ||
| - | sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw enable && sudo systemctl enable ' | ||
| - | |||
| - | < | ||
| - | sudo ufw allow ' | ||
| - | |||
| - | ===== Drive Maintenance ===== | ||
| - | |||
| - | ==== Trim ==== | ||
| - | |||
| - | * :!: Enable only if a SSD is being used for Linux | ||
| - | |||
| - | sudo systemctl enable ' | ||
| - | |||
| - | ==== XFS Scrub ==== | ||
| - | |||
| - | * [[https:// | ||
| - | * :!: Enable only if a persistent drive exists formatted with XFS | ||
| - | * :!: TODO: Test this on Ubuntu | ||
| - | |||
| - | sudo systemctl enable ' | ||
| - | |||
| - | ===== UTC ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * Set RTC to UTC | ||
| - | * :!: Needed if Windows is installed first | ||
| - | * :!: Windows should also be set to UTC | ||
| - | |||
| - | sudo timedatectl set-local-rtc ' | ||
| - | |||
| - | ==== Verify ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | timedatectl | grep local | ||
| - | |||
| - | ===== Wine ===== | ||
| - | |||
| - | * See [[notes: | ||
| - | |||
| - | ====== Xorg ====== | ||
| - | |||
| - | * See [[notes: | ||
| - | * :!: Ideally '' | ||
| - | |||
| - | ====== Mozilla Firefox ====== | ||
| - | |||
| - | * See [[notes: | ||
| - | |||
| - | ====== Server ====== | ||
| - | |||
| - | * For workstations that run servers as a secondary directive | ||
| - | * For headless servers, use [[distros: | ||
| - | |||
| - | ===== Automatic Updates ===== | ||
| - | |||
| - | ==== Service ==== | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Service] | ||
| - | Type=oneshot | ||
| - | ExecStartPre='/ | ||
| - | ExecStart='/ | ||
| - | ExecStart='/ | ||
| - | ExecStartPost='/ | ||
| - | ExecStartPost='/ | ||
| - | |||
| - | ==== Timer ==== | ||
| - | |||
| - | * 06:00 Oak | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Unit] | ||
| - | Description=Software Package Maintenance and Updater | ||
| - | After=network-online.target | ||
| - | Wants=network-online.target | ||
| - | |||
| - | [Timer] | ||
| - | OnCalendar=*-*-* 06:00:00 | ||
| - | Persistent=true | ||
| - | |||
| - | [Install] | ||
| - | WantedBy=timers.target</ | ||
| - | |||
| - | ====== Notable Folders and Commands ====== | ||
| - | |||
| - | ===== Extract ISO ===== | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * No space after the '' | ||
| - | * This is primarily useful for copying Windows ISO images to a FAT32 flash drive | ||
| - | |||
| - | 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 ===== | ||
| - | |||
| - | / | ||
| - | |||
| - | ~/ | ||
| - | |||
| - | ===== Zypper ===== | ||
| - | |||
| - | ==== Find Orphans ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | zypper packages --orphaned | ||
| - | |||
| - | ==== Remove Package and Deps ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo zypper remove --clean-deps ' | ||
| - | |||
| - | ==== Show Installed Patterns ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo zypper patterns --installed-only | ||
| - | |||
| - | ==== Folder ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | ls '/ | ||
| - | |||
| - | ==== List ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | zypper repos --priority | ||
| - | |||
| - | ===== GPG Keys ===== | ||
| - | |||
| - | ==== Check Keys ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | rpm -q gpg-pubkey --qf ' | ||
| - | |||
| - | ==== Remove Keys ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo rpm -e 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 / | ||
| - | |||
| - | == NVIDIA Optimus == | ||
| - | |||
| - | **** | ||
| - | |||
| - | wget -O '/ | ||
| - | |||
| - | === FHD === | ||
| - | |||
| - | * 1920x1080 | ||
| - | |||
| - | wget -O '/ | ||
| - | |||
| - | cd '/ | ||
| - | |||
| - | /fullscreen /benchmark / | ||
| - | |||
| - | === UHDTV1 === | ||
| - | |||
| - | * 3840x2160 | ||
| - | |||
| - | wget -O '/ | ||
| - | |||
| - | cd '/ | ||
| - | |||
| - | /fullscreen /benchmark / | ||
| - | |||
| - | ==== Cleanup ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | rm -Rf '/ | ||
| - | |||
| - | ===== Show Sensors ===== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo zypper install -y ' | ||
| - | |||
| - | ===== Show CPU Frequency ===== | ||
| - | |||
| - | grep ' | ||
| - | |||
| - | watch -n 0.1 grep \'cpu MHz\' '/ | ||
| - | |||
| - | ===== OpenSSL Supported Ciphers ===== | ||
| - | |||
| - | **** | ||
| - | |||
| - | openssl ciphers -v | awk ' | ||
| - | |||
| - | ===== Partition Information ===== | ||
| - | |||
| - | * Both commands present the same information | ||
| - | |||
| - | df -hT | ||
| - | |||
| - | df --human-readable --print-type | ||
| - | |||
| - | ===== Encryption Information ===== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo cryptsetup -v status '/ | ||
| - | |||
| - | ===== ATA Secure Erase ===== | ||
| - | |||
| - | * :!: All '' | ||
| - | |||
| - | ==== Preparation ==== | ||
| - | |||
| - | sudo zypper install ' | ||
| - | |||
| - | sudo hdparm -I '/ | ||
| - | |||
| - | sync && systemctl suspend | ||
| - | |||
| - | ==== ATA Secure Erase ==== | ||
| - | |||
| - | < | ||
| - | |||
| - | < | ||
| - | |||
| - | < | ||
| - | |||
| - | ===== NVMe Erase ===== | ||
| - | |||
| - | * NVMe Erase from the start page lands here and I usually use a Ubuntu LiveUSB to do this, hence the '' | ||
| - | |||
| - | sudo apt install ' | ||
| - | |||
| - | sudo zypper 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 ==== | ||
| - | |||
| - | * This can be used to get the Oprom version for Intel RST | ||
| - | |||
| - | sudo mdadm --detail-platform | ||
| - | |||
| - | ==== Create Software RAID ==== | ||
| - | |||
| - | * :?: Came from old notes; I **assume** this worked at some point, but in any case, the syntax looks nice :p | ||
| - | |||
| - | sudo mdadm --create '/ | ||
| - | |||
| - | ===== VGA Switcheroo Power States ===== | ||
| - | |||
| - | * https:// | ||
| - | |||
| - | sudo cat '/ | ||
| - | |||
| - | ===== ACPI Tables ===== | ||
| - | |||
| - | * In '' | ||
| - | |||
| - | sudo zypper install ' | ||
| - | |||
| - | sudo cp --force '/ | ||
| - | |||
| - | cd ~ && iasl -d ~/' | ||
| - | |||
| - | gio open ~/' | ||
| - | |||
| - | sudo zypper remove ' | ||
| - | |||
| - | ===== 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 '/ | ||
| - | |||
| - | ===== HT/SMT 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 '' | ||
| - | * Change '' | ||
| - | |||
| - | 7za a ' | ||
| - | |||
| - | 7za a ' | ||
| - | |||
| - | ===== oathtool ===== | ||
| - | |||
| - | * '' | ||
| - | |||
| - | sudo zypper install ' | ||
| - | |||
| - | oathtool --totp -b ' | ||
| - | |||
| - | ==== Remove EXIF data ==== | ||
| - | |||
| - | sudo zypper install ' | ||
| - | |||
| - | exiftool -all= *.* -overwrite_original | ||
/var/www/wiki/data/attic/distros/ubuntu_desktop_test.1632672409.txt.gz · Last modified: (external edit)
