User Tools

Site Tools


distros:ubuntu_desktop_test2

Differences

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

Link to this comparison view

Next revision
Previous revision
distros:ubuntu_desktop_test2 [2021/10/29 19:50] – created Sean Rhonedistros:ubuntu_desktop_test2 [2022/06/08 22:07] (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/ 
-  * 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 
- 
-===== GNU nano ===== 
- 
-  * Installs ''nano'' 
-  * Sets ''VISUAL'' and ''EDITOR'' to ''nano'' via environment variable 
-  * Sets ''nowrap'' for current user 
- 
-  sudo dnf install 'nano' -y && export 'VISUAL=nano' && export 'EDITOR=nano' && echo -e 'export VISUAL=nano\nexport EDITOR=nano' | sudo tee '/etc/profile.d/editor-nano.sh' > '/dev/null' && cat '/etc/profile.d/editor-nano.sh' && mkdir -p ~/'.config/nano' && echo 'set nowrap' | tee ~/'.config/nano/nanorc' > '/dev/null' && cat ~/'.config/nano/nanorc' 
- 
-===== RPM Fusion Initial ===== 
- 
-  * https://rpmfusion.org/Configuration 
-  * Covers AppStream data and missing Multimedia packages 
- 
-  sudo dnf groupupdate 'core' && sudo dnf groupupdate 'multimedia' --setop='install_weak_deps=False' --exclude='PackageKit-gstreamer-plugin' && sudo dnf groupupdate 'sound-and-video' && sync 
- 
-===== General ===== 
- 
-**** 
- 
-  sudo dnf install evolution filezilla gimp keepassxc transmission-gtk aria2 hdparm htop lm_sensors p7zip p7zip-plugins unar wget irqbalance xfsprogs-xfs_scrub  
- 
-===== RPM Fusion ===== 
- 
-==== free ==== 
- 
-  * ''ffmpeg'' was needed for ''youtube-dl'' to correct DASH containers 
- 
-  mpv youtube-dl 
- 
-==== nonfree ==== 
- 
-  steam 
- 
-  akmod-nvidia 
- 
-===== Keybase ===== 
- 
-  * https://keybase.io 
-  * :!: Run ''run_keybase'' in a Terminal after installation 
- 
-  'https://prerelease.keybase.io/keybase_amd64.rpm' 
- 
-===== Game Controllers ===== 
- 
-  * Necessary for Xbox 360 controllers 
-  * Not necessary for a Steam Controller 
- 
-  kernel-modules-extra 
- 
-===== ckb-next ===== 
- 
-  * https://github.com/ckb-next/ckb-next 
- 
-  ckb-next 
- 
-===== Wine ===== 
- 
-**** 
- 
-  wine winetricks 
- 
-===== Tor Browser ===== 
- 
-**** 
- 
-  torbrowser-launcher 
- 
-===== Google Chrome ===== 
- 
-**** 
- 
-  sudo rpm --import 'https://dl-ssl.google.com/linux/linux_signing_key.pub' && sudo dnf install 'https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm' 
- 
-====== Settings ====== 
- 
-===== Keyboard Shortcuts ===== 
- 
-  gnome-terminal 
- 
-  bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'" 
- 
-  gnome-terminal --command "sudo sh -c 'dnf clean 'all' && dnf distro-sync -y && sync && flatpak update && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && restorecon -F -I -R '/etc/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''" 
- 
-==== Keys ==== 
- 
-  * Listed respectively to above 
- 
-  * Ctrl + Alt + T 
-  * Ctrl + Alt + Z 
-  * Pause or F7 
- 
-===== Printer ===== 
- 
-  * http://localhost:631/admin 
- 
-  * :!: ''driverless, cups-filters'' 
-  * Administration -> Set As Server Default 
- 
-  socket://192.168.1.164:9100 
- 
-===== gedit ===== 
- 
-  * 4 Tab width 
-  * Insert Spaces for Tab mode 
- 
-===== Network ===== 
- 
-==== Cloudflare ==== 
- 
-  * https://1.1.1.1/dns/ 
-  * See [[notes:dns_servers|DNS servers]] for other DNS servers 
- 
-<code>1.1.1.1,1.0.0.1</code> 
- 
-<code>2606:4700:4700::1111,2606:4700:4700::1001</code> 
- 
-==== VPN.AC ==== 
- 
-  * See [[information:vpn.ac|VPN.AC]] 
-  * :!: If using this VPN, disable IPv6 from NetworkManager 
- 
-===== Rhythmbox ===== 
- 
-  * See [[Information:Internet Radio|Internet Radio]] 
- 
-===== Terminal ===== 
- 
-  * 10-notch Transparency 
- 
-===== GRUB ===== 
- 
-==== Config ==== 
- 
-**** 
- 
-  sudo -e '/etc/default/grub' && sudo update-grub 
- 
-==== amdgpu ==== 
- 
-  * Allows use of Overdrive options for overclocking and notably increasing the Power Limit 
- 
-  amdgpu.ppfeaturemask=0xffffffff 
- 
-=== Verify === 
- 
-**** 
- 
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295' 
- 
-===== GNOME ===== 
- 
-==== Settings ==== 
- 
-=== All-in-one === 
- 
-  * Last updated: 2021/10/29 
- 
-   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' 
- 
-  gsettings reset 'org.gnome.shell' 'app-picker-layout' 
- 
-=== Individual === 
- 
-  * Last updated: 2021/10/29 
- 
-  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' 
- 
-== Other == 
- 
-  * The first depend on GNOME Software existing 
-  * The second needs GNOME 40+ and isn't applicable on Ubuntu 21.04 
- 
-  gsettings set 'org.gnome.software' 'download-updates' 'false' 
- 
-  gsettings reset 'org.gnome.shell' 'app-picker-layout' 
- 
-===== Hostname ===== 
- 
-  * Change ''x'' to computer name 
- 
-  hostnamectl set-hostname 'x' 
- 
-===== Keybase ===== 
- 
-  * :!: Run after initial install 
- 
-  run_keybase 
- 
-===== 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 -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> 
- 
-===== Laptop Power Management ===== 
- 
-  * See [[notes:laptop_power_management|Laptop Power Management]] 
- 
-===== Secure Shell ===== 
- 
-  * See [[clients:secure_shell|Client]] notes to generate/restore public key 
- 
-===== 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]] 
-  * :!: This is only necessary if XFS is being used on any persistent drives, and requires ''xfsprogs'' to be installed 
- 
-  sudo apt install 'xfsprogs' -y && sync 
- 
-  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]] 
- 
-===== Nightwane ===== 
- 
-  * :!: With Fedora 34 as of 2021/05/12, the ''amdgpu'' Xorg DDX driver has the screen more warm/yellowish and breaks calibration 
-  * :!: This doesn't happen with ''modesetting'' on Xorg, nor at all with GNOME on Wayland 
-  * Since ''amdgpu'' is installed and used by-default on Xorg, removing it causes ''modesetting'' to be used instead 
-  * [[http://www.lagom.nl/lcd-test/contrast.php|Contrast - Lagom LCD test]] 
- 
-  * :!: TODO: Test if this is necessary on Ubuntu 21.04+ 
- 
-<code>sudo apt remove 'xserver-xorg-video-amdgpu' && sync</code> 
- 
-====== 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:ubuntu_server|Ubuntu Server]] 
- 
-===== Automatic Updates ===== 
- 
-==== Service ==== 
- 
-  sudo -e '/etc/systemd/system/ubuntu-up.service' 
- 
-<code> 
-[Service] 
-Type=oneshot 
-ExecStartPre='/usr/bin/apt' clean 
-ExecStart='/usr/bin/apt' update 
-ExecStart='/usr/bin/apt' full-upgrade -y 
-ExecStart='/usr/bin/apt' autoremove -y 
-ExecStartPost='/usr/bin/sync' 
-ExecStartPost='/usr/bin/systemctl' reboot</code> 
- 
-===== Timer ===== 
- 
-  * 03:00 Oak 
- 
-  sudo -e '/etc/systemd/system/ubuntu-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'ubuntu-up.timer' --now 
- 
-<code> 
-[Unit] 
-Description=Software Package Maintenance and Updater 
-After=network-online.target 
-Wants=network-online.target 
- 
-[Timer] 
-OnCalendar=*-*-* 03:00:00 
-Persistent=true 
- 
-[Install] 
-WantedBy=timers.target</code> 
  
/var/www/wiki/data/attic/distros/ubuntu_desktop_test2.1635551407.txt.gz · Last modified: 2021/10/29 19:50 by Sean Rhone