User Tools

Site Tools


distros:ubuntu_desktop_test

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
distros:ubuntu_desktop_test [2021/09/26 12:35] Sean Rhonedistros:ubuntu_desktop_test [2022/06/08 22:08] (current) – removed Sean Rhone
Line 1: Line 1:
-====== Information ====== 
  
-  * Ubuntu ((https://ubuntu.com/)) 
-  * Desktop ((https://ubuntu.com/desktop)) 
- 
-====== Download ====== 
- 
-  * https://ubuntu.com/download/desktop 
- 
-====== HOSTS ====== 
- 
-  * https://github.com/StevenBlack/hosts/ 
-  * Using ''Unified hosts + fakenews + gambling'' 
- 
-  wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo cp '/etc/hosts' '/etc/hosts-bak' && sudo mv '/tmp/hosts-tmp' '/etc/hosts' && sync 
- 
-  cat '/etc/hosts' | grep 'Date:' 
- 
-  sudo -e '/etc/hosts' 
- 
-====== 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 lm-sensors libreoffice rhythmbox  
- 
-==== OpenVPN ==== 
- 
-**** 
- 
-  network-manager-openvpn-gnome 
- 
-===== ckb-next ===== 
- 
-  * https://github.com/ckb-next/ckb-next 
- 
-  ckb-next 
- 
-===== Keybase ===== 
- 
-  * https://keybase.io 
-  * :!: This needs ran as a separate command and not combined with the above package installations 
- 
-  rm -Rf '/tmp/keybase_amd64.deb' && wget -O '/tmp/keybase_amd64.deb' 'https://prerelease.keybase.io/keybase_amd64.deb' && sudo apt install '/tmp/keybase_amd64.deb' && rm '/tmp/keybase_amd64.deb' && sync && run_keybase 
- 
-===== 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 
- 
-====== Settings ====== 
- 
-===== Keyboard Shortcuts ===== 
- 
-  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 && snap refresh && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && sleep '5''" 
- 
-==== Keys ==== 
- 
-  * Listed respectively to above 
- 
-  * Ctrl + Alt + Z 
-  * Pause or F7 
- 
-===== Printer ===== 
- 
-  * http://localhost:631/admin 
- 
-  * ''HP OfficeJet Pro 8710, driverless, cups-filters'' 
-  * Print Color Mode: Device Gray 
-  * Administration -> Set As Server Default 
- 
-  socket://192.168.1.164:9100 
- 
-===== gedit ===== 
- 
-  * 4 Tab width 
-  * Insert Spaces for Tab mode 
- 
-===== Network ===== 
- 
-==== Quad9 DNS ==== 
- 
-  * https://quad9.net 
-  * Secured w/ECS 
-  * See [[notes:dns_servers|DNS servers]] for other DNS servers 
- 
-<code>9.9.9.11,149.112.112.11</code> 
- 
-<code>2620:fe::11,2620:fe::fe:11</code> 
- 
-==== VPN.AC ==== 
- 
-  * See [[information:vpn.ac|VPN.AC]] 
-  * :!: If using this VPN, disable IPv6 from NetworkManager 
- 
-===== Nautilus ===== 
- 
-  * Sort folders before files 
- 
-===== Rhythmbox ===== 
- 
-  * See [[Information:Internet Radio|Internet Radio]] 
- 
-===== GRUB ===== 
- 
-  * See [[notes:kernel_parameters|Kernel Parameters]] for other options 
- 
-==== Config ==== 
- 
-**** 
- 
-  sudo -e '/etc/default/grub' && sudo update-grub 
- 
-==== IOMMU ==== 
- 
-  * :!: On Ryzen, this should be left enabled in the firmware settings in all cases, but if not directly used for virtualization, should be disabled from the OS ([[https://developer.amd.com/wp-content/resources/56745_0.80.pdf#%5B%7B%22num%22%3A36%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C63%2C291%2C0%5D|note]]) 
- 
-  iommu=pt 
- 
-==== amdgpu ==== 
- 
-  * Allows use of Overdrive options for overclocking and notably increasing the Power Limit 
-  * See [[devices:amd_graphics#get_max|Power Limit]] 
- 
-  amdgpu.ppfeaturemask=0xffffffff 
- 
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295' 
- 
-===== GNOME ===== 
- 
-==== Settings ==== 
- 
-=== All-in-one === 
- 
-  * Last updated: 2021/09/26 
- 
-  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.desktop.interface' 'clock-show-weekday' 'true' && gsettings set 'org.gnome.software' 'download-updates' 'false' 
- 
-=== Individual === 
- 
-  * Last updated: 2021/09/26 
- 
-  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.desktop.interface' 'clock-show-weekday' 'true' 
- 
-  gsettings set 'org.gnome.software' 'download-updates' 'false' 
- 
-===== 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='KeePass' 'keepass' 'default' 
- 
-===== lm_sensors ===== 
- 
-  * ''--auto'' is quicker, but more things are detected by doing the full scan 
- 
-  sudo sensors-detect 
- 
-  sudo sensors-detect --auto 
- 
-===== mpv ===== 
- 
-  * [[https://wiki.archlinux.org/index.php/mpv#High_quality_configurations|ArchWiki mpv High quality configurations]] 
- 
-  mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf' 
- 
-<code> 
-profile=gpu-hq 
-scale=ewa_lanczossharp 
-cscale=ewa_lanczossharp 
-video-sync=display-resample 
-interpolation 
-tscale=oversample</code> 
- 
-===== NetworkManager ===== 
- 
-  * ''wifi.powersave'' can be ''2'' for disabled, or ''3'' for enabled 
-  * :!: ''ethernet.cloned-mac-address=random'' breaks USB Tethering with iOS/iPhones 
- 
-  sudo mkdir -p '/etc/NetworkManager/conf.d' && sudo -e '/etc/NetworkManager/conf.d/99-custom.conf' 
- 
-<code> 
-[device-mac-randomization] 
-wifi.scan-rand-mac-address=yes 
- 
-[connection-mac-randomization] 
-wifi.cloned-mac-address=random 
- 
-[connection] 
-wifi.powersave=2</code> 
- 
-<code> 
-[connection-mac-randomization] 
-ethernet.cloned-mac-address=random</code> 
- 
-===== Secure Shell ===== 
- 
-  * See [[clients:secure_shell|Client]] notes to generate/restore public key 
- 
-===== Uncomplicated Firewall ===== 
- 
-<code> 
-sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw enable && sudo systemctl enable 'ufw'</code> 
- 
-<code> 
-sudo ufw allow 'ssh'</code> 
- 
-===== Drive Maintenance ===== 
- 
-==== Trim ==== 
- 
-  * :!: Enable only if a SSD is being used for Linux 
- 
-  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l 
- 
-==== XFS Scrub ==== 
- 
-  * [[https://wiki.archlinux.org/title/XFS#Online_Metadata_Checking_(scrub)|XFS - ArchWiki]] 
-  * :!: Enable only if a persistent drive exists formatted with XFS 
-  * :!: TODO: Test this on Ubuntu 
- 
-  sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l 
- 
-===== UTC ===== 
- 
-  * [[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 timedatectl set-local-rtc '0' 
- 
-==== Verify ==== 
- 
-**** 
- 
-  timedatectl | grep local 
- 
-===== Wine ===== 
- 
-  * See [[notes:wine|Wine]] 
- 
-====== Xorg ====== 
- 
-  * See [[notes:xorg.conf_snippets|xorg.conf Snippets]] 
-  * :!: Ideally ''modesetting'' should be used 
- 
-====== Mozilla Firefox ====== 
- 
-  * See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync 
- 
-====== Server ====== 
- 
-  * For workstations that run servers as a secondary directive 
-  * For headless servers, use [[distros:opensuse_tumbleweed_server|openSUSE TW (Server)]] 
- 
-===== Automatic Updates ===== 
- 
-==== Service ==== 
- 
-  sudo -e '/etc/systemd/system/suse-up.service' 
- 
-<code> 
-[Service] 
-Type=oneshot 
-ExecStartPre='/usr/bin/zypper' clean --all 
-ExecStart='/usr/bin/zypper' --non-interactive refresh --force --services 
-ExecStart='/usr/bin/zypper' --non-interactive dist-upgrade --auto-agree-with-licenses --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change 
-ExecStartPost='/usr/bin/sync' 
-ExecStartPost='/usr/bin/systemctl' reboot</code> 
- 
-==== Timer ==== 
- 
-  * 06:00 Oak 
- 
-  sudo -e '/etc/systemd/system/suse-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'suse-up.timer' --now 
- 
-<code> 
-[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</code> 
- 
-====== Notable Folders and Commands ====== 
- 
-===== Extract ISO ===== 
- 
-  * ''D'' is the destination you want the extracted files to go 
-  * ''x'' is the ISO you want to extract files from 
-  * No space after the ''-o'' flag is intentional 
-  * This is primarily useful for copying Windows ISO images to a FAT32 flash drive 
- 
-  7z x -o'D' -y x 
- 
-  7z x -o'/run/media/espionage724/LTSC 2019' -y '/home/espionage724/Downloads/en_windows_10_enterprise_ltsc_2019_x64_dvd_be3c8ffb.iso' && sync && sync 
- 
-===== youtube-dl ===== 
- 
-  * https://ytdl-org.github.io/youtube-dl/index.html 
- 
-==== Download ==== 
- 
-**** 
- 
-  rm -f '/tmp/youtube-dl' && wget -O '/tmp/youtube-dl' 'https://yt-dl.org/downloads/latest/youtube-dl' && chmod +x '/tmp/youtube-dl' 
- 
-==== Show Formats ==== 
- 
-  * Change ''x'' to a URL 
- 
-  '/tmp/youtube-dl' --list-formats x 
- 
-==== Download Media ==== 
- 
-  * Change ''x'' to a URL 
-  * ''bestaudio'' can be changed to ''bestvideo'' for just video, or ''best'' for best video with audio 
- 
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' x 
- 
-=== M4A Audio === 
- 
-  * Ideally for if iOS devices will be involved 
- 
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'm4a' x 
- 
-=== MP3 Audio === 
- 
-**** 
- 
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'mp3' x 
- 
-===== Shortcuts ===== 
- 
-  /usr/share/applications 
- 
-  ~/.local/share/applications 
- 
-===== Icons ===== 
- 
-  /usr/share/icons/hicolor 
- 
-  ~/.local/share/icons/hicolor 
- 
-===== Zypper ===== 
- 
-==== Find Orphans ==== 
- 
-**** 
- 
-  zypper packages --orphaned 
- 
-==== Remove Package and Deps ==== 
- 
-**** 
- 
-  sudo zypper remove --clean-deps 'x' 
- 
-==== Show Installed Patterns ==== 
- 
-**** 
- 
-  sudo zypper patterns --installed-only 
- 
-==== Folder ==== 
- 
-**** 
- 
-  ls '/etc/zypp/repos.d' 
- 
-==== List ==== 
- 
-**** 
- 
-  zypper repos --priority 
- 
-===== GPG Keys ===== 
- 
-==== Check Keys ==== 
- 
-**** 
- 
-  rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' 
- 
-==== Remove Keys ==== 
- 
-**** 
- 
-  sudo rpm -e x 
- 
-===== Re-generate Thumbnails ===== 
- 
-**** 
- 
-  rm -Rf ~/'.cache/thumbnails' 
- 
-===== List GNOME gsettings ===== 
- 
-  * Change ''x'' to schema or omit it to show all settings 
- 
-  gsettings list-recursively 'x' 
- 
-===== GNOME Software Maintenance ===== 
- 
-**** 
- 
-  pkcon -c '1' refresh && pkcon update 
- 
-===== GNOME Monitors Reset ===== 
- 
-**** 
- 
-  rm -f ~/'.config/monitors.xml' ~/'.config/monitors.xml~' 
- 
-===== PulseAudio Reset ===== 
- 
-**** 
- 
-  rm -f ~/'.config/pulse/'* 
- 
-===== Xorg Debug ===== 
- 
-  journalctl -e _COMM='gdm-x-session' 
- 
-  gio open ~/'.local/share/xorg/Xorg.1.log' 
- 
-===== GpuTest ===== 
- 
-  * https://www.geeks3d.com/gputest/ 
- 
-==== Execute ==== 
- 
-=== HDTV === 
- 
-  * 1280x720 
- 
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720' 
- 
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720' 
- 
-  /fullscreen /benchmark /benchmark_duration_ms='15000' 
- 
-=== FHD === 
- 
-  * 1920x1080 
- 
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1920' /height='1080' 
- 
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1920' /height='1080' 
- 
-  /fullscreen /benchmark /benchmark_duration_ms='15000' 
- 
-=== UHDTV1 === 
- 
-  * 3840x2160 
- 
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='3840' /height='2160' 
- 
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='3840' /height='2160' 
- 
-  /fullscreen /benchmark /benchmark_duration_ms='15000' 
- 
-==== Cleanup ==== 
- 
-**** 
- 
-  rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync 
- 
-===== Show Sensors ===== 
- 
-**** 
- 
-  sudo watch -n0.5 sensors 
- 
-===== Show CPU Frequency ===== 
- 
-  grep 'MHz' '/proc/cpuinfo' 
- 
-  watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo' 
- 
-===== Partition Information ===== 
- 
-  * Both commands present the same information 
- 
-  df -hT 
- 
-  df --human-readable --print-type 
- 
-===== Privacy ===== 
- 
-==== Clear Terminal History ==== 
- 
-**** 
- 
-  history -cw 
- 
-==== Create 7z Password Archive ==== 
- 
-  * Change ''7ZIPNAME'' in ''7ZIPNAME.7z'' to the desired archive name 
-  * Change ''PASS'' in ''-pPASS'' to the desired password 
-  * Change ''x'' to the file or folder to add to the archive 
- 
-  sudo apt install 'p7zip-full' 
- 
-  7za a '7ZIPNAME.7z' -p'PASS' 'x' 
- 
-  7za a 'x.7z' -p'x' 'x' 
- 
-==== Remove EXIF data ==== 
- 
-  sudo apt install 'libimage-exiftool-perl' 
- 
-  exiftool -all= *.* -overwrite_original 
/var/www/wiki/data/attic/distros/ubuntu_desktop_test.1632674101.txt.gz · Last modified: 2021/09/26 12:35 by Sean Rhone