User Tools

Site Tools


distros:ubuntu_desktop_test2

This is an old revision of the document!


Information

  • Ubuntu 1)
  • Desktop 2)

Download

HOSTS

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

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://prerelease.keybase.io/keybase_amd64.rpm'

Game Controllers

  • Necessary for Xbox 360 controllers
  • Not necessary for a Steam Controller
kernel-modules-extra

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

  • :!: 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

1.1.1.1,1.0.0.1
2606:4700:4700::1111,2606:4700:4700::1001

VPN.AC

  • See VPN.AC
  • :!: If using this VPN, disable IPv6 from NetworkManager

Rhythmbox

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

mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample

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'
[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

Laptop Power Management

Secure Shell

  • See 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

  • :!: 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

  • 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

Xorg

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
  • :!: TODO: Test if this is necessary on Ubuntu 21.04+
sudo apt remove 'xserver-xorg-video-amdgpu' && sync

Mozilla Firefox

  • See Firefox if old configuration is needed, otherwise use Firefox Sync

Server

  • For workstations that run servers as a secondary directive
  • For headless servers, use Ubuntu Server

Automatic Updates

Service

sudo -e '/etc/systemd/system/ubuntu-up.service'
[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

Timer

  • 03:00 Oak
sudo -e '/etc/systemd/system/ubuntu-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'ubuntu-up.timer' --now
[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
/var/www/wiki/data/attic/distros/ubuntu_desktop_test2.1635551407.txt.gz ยท Last modified: 2021/10/29 19:50 by Sean Rhone