User Tools

Site Tools


distros:fedora_workstation_gnome

Table of Contents

Information

  • Fedora Workstation 1)
  • 27

Download

Workstation

Updated Live Images

Installation Notes

  • EFI/fedora/shimx64.efi 2)
  • Remove /home, set /boot and / to use XFS, expand /

Software Settings

Disable PackageKit

  • This breaks GNOME Software Center
sudo systemctl mask 'packagekit' && sudo rm -Rf '/var/cache/PackageKit' && sync

DNF Settings

  • Disables Delta RPMs
  • Downloads packages from fastest mirror
echo 'deltarpm=false' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null' && echo 'fastestmirror=true' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null'

Repositories

RawhideKernelNodebug

  • Last checked to be issue free: 2018/02/13 4.16.0-0.rc1.git0.1.fc28.x86_64
sudo dnf config-manager --add-repo='http://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo'

RPM Fusion

Free

sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-27' && sync && sudo dnf install 'https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-27.noarch.rpm' -y

negativo17

Nvidia driver, CUDA tools and libraries

sudo rpm --import 'http://negativo17.org/repos/RPM-GPG-KEY-slaanesh'
sudo dnf config-manager --add-repo='http://negativo17.org/repos/fedora-nvidia.repo'

Software

Update

sudo dnf clean 'all' && sudo dnf update -y && sync

GNU nano

  • Installs nano
  • Sets as system-wide default editor
  • Sets nowrap and nonewlines for current user
sudo dnf install 'nano' -y && export 'EDITOR=nano' && echo 'Defaults editor = /usr/bin/nano' | sudo tee '/etc/sudoers.d/nano' > '/dev/null' && echo 'set nowrap' | tee --append ~/'.nanorc' > '/dev/null' && echo 'set nonewlines' | tee --append ~/'.nanorc' > '/dev/null'

General

  • biosdevname, busybox, and dmraid only stop Dracut from complaining about them being missing
sudo dnf install filezilla keepassxc perl-Image-ExifTool p7zip unar aria2 gimp transmission-gtk hdparm nano htop wget oathtool irqbalance epiphany biosdevname busybox dmraid

RPM Fusion

  • gstreamer1-libav and gstreamer1-plugins-ugly are needed to generate video thumbnails for more media
  • youtube-dl needs ffmpeg to correct DASH containers or something like that
mpv ffmpeg-libs gstreamer1-libav gstreamer1-plugins-ugly ffmpeg youtube-dl

VA-API

libva-intel-driver gstreamer1-vaapi libva-utils

VDPAU

mesa-vdpau-drivers vdpauinfo

Keybase

'https://prerelease.keybase.io/keybase_amd64.rpm'

Wine

  • libtxc_dxtn requires RPM Fusion repo
wine winetricks
libtxc_dxtn libtxc_dxtn.i686

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

SELinux

  • When installing the 4.16 kernel as of 2018/02/18, there will be a SELinux-related bool issue that can be fixed with the following command
sudo setsebool -P 'domain_kernel_load_modules' '1'

Keyboard Shortcuts

  • gnome-shell --replace doesn't work on Wayland session
gnome-terminal
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
gnome-shell --replace
gnome-terminal --command "bash -c 'sudo dnf clean 'all' && sudo dnf update -y && sudo rm -Rfv '/usr/lib64/firefox/browser/features' && sync && read -n1'"

gedit

  • 4 Tab width
  • Insert Spaces for Tab mode

Network

Google Public DNS

IPv4

8.8.8.8,8.8.4.4

IPv6

2001:4860:4860::8888,2001:4860:4860::8844

Nautilus

  • Sort folders before files
  • 2GB File Previews

Rhythmbox

Terminal

  • 10-notch Transparency

Dracut

Compression

echo 'compress="gzip --best"' | sudo tee '/etc/dracut.conf.d/99-compress-gzip-best.conf' > '/dev/null' && sudo dracut --force -v --regenerate-all

GRUB

Anaconda Blacklist

  • nouveau may get automatically blacklisted; check this file and comment it out if it is
sudo -e '/etc/modprobe.d/anaconda-blacklist.conf'

UEFI

sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/efi/EFI/fedora/grub.cfg'

Legacy

sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'

GRUB

GRUB_TIMEOUT=1

blk_mq

scsi_mod.use_blk_mq='y' dm_mod.use_blk_mq='y'

PCI-E ASPM

  • pcie_aspm can be off if ASPM causes problems
pcie_aspm='force' pcie_aspm.policy='powersupersave'

Available Policies

cat '/sys/module/pcie_aspm/parameters/policy'

Intel HDA

snd_hda_intel.power_save='1' snd_hda_intel.enable_msi='1'

Linux

acpi_osi='Linux'

i915

  • GuC firmware loading/submission requires PAVP to be enabled in BIOS
i915.enable_dc='2' i915.enable_fbc='1' i915.fastboot='1' i915.nuclear_pageflip='1' i915.enable_guc_loading='2' i915.enable_guc_submission='2'

Kernel 4.16

  • As of 4.16-rc1, some options have changed
  • No more semaphores or enable_rc6 options
  • GuC firmware load/submission options merged and changed to bitmask value
i915.enable_dc='2' i915.enable_fbc='1' i915.fastboot='1' i915.nuclear_pageflip='1' i915.enable_guc='3'

radeon

General

  • If HDMI or DisplayPort audio is wanted, set radeon.audio to 1
radeon.audio='0' radeon.msi='1' radeon.deep_color='1'

Power-saving

radeon.dynclks='1' radeon.bapm='1' radeon.dpm='1' radeon.aspm='1' radeon.runpm='1'

Experimental

radeon.auxch='1' radeon.mst='1'
radeon.si_support='1' radeon.cik_support='1'

nouveau

nouveau.runpm='1' nouveau.atomic='1'

Blacklist

  • iTCO_wdt controls watchdog on some Intel platforms
  • sp5100_tco controls watchdog on some AMD platforms
  • nowatchdog disables both soft and hard generic watchdogs
modprobe.blacklist='iTCO_wdt,sp5100_tco' nowatchdog

DRM Debug

drm.debug='0xe'

GDM

Disable Wayland

sudo sed -i 's/'#WaylandEnable'/'WaylandEnable'/g' '/etc/gdm/custom.conf'

GNOME

Notes

  • If using external monitor primarily, monitor configuration must be complete before copying config to GDM
  • If keyboard shortcuts were set in Xorg session, they may not work in the Wayland session; remove the shortcuts in the Xorg session and then re-set them in Wayland 3)

Root GUI Apps in Wayland

  • Run this before running GUI applications requiring root
  • This needs re-ran after session restart
xhost +LOCAL:

Settings

All-in-one

  • Last updated: 2018/02/18
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.software' 'download-updates' 'false'

Individual

  • Last updated: 2018/02/18
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.software' 'download-updates' 'false'

Extensions

Alternate Tab

gnome-shell-extension-tool -e 'alternate-tab@gnome-shell-extensions.gcampax.github.com'

Top Panel Workspace Scroll

wget -O '/tmp/gnome-shell-scroll-workspaces-master.zip' 'https://github.com/timbertson/gnome-shell-scroll-workspaces/archive/master.zip' && unzip '/tmp/gnome-shell-scroll-workspaces-master.zip' -d '/tmp' && rm -Rf ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' && mkdir -p ~/'.local/share/gnome-shell/extensions' && mv '/tmp/gnome-shell-scroll-workspaces-master/scroll-workspaces' ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' && rm -R '/tmp/gnome-shell-scroll-workspaces-master.zip' '/tmp/gnome-shell-scroll-workspaces-master' && restorecon -R -F ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' && gnome-shell-extension-tool -e 'scroll-workspaces@gfxmonk.net' && sync

I/O Schedulers

Check

  • Replace sda if necessary
  • If using blk-mq, non-mq schedulers aren't present 4)
  • NVMe drives should be none
cat '/sys/block/sda/queue/scheduler'
cat '/sys/block/nvme0n1/queue/scheduler'

BFQ

  • TODO: Re-verify this works
  • Good for average workloads and responsiveness
  • Requires blk_mq and kernel 4.12+

Module Enable

echo 'bfq' | sudo tee '/etc/modules-load.d/bfq.conf' > '/dev/null'
sudo modprobe 'bfq'

Module Disable

sudo rm -f '/etc/modules-load.d/bfq.conf'
sudo modprobe -r 'bfq'

udev Rule

echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/scheduler}="bfq"' | sudo tee '/etc/udev/rules.d/60-scheduler.rules' > '/dev/null' && sudo udevadm control --reload && sudo udevadm trigger

none

  • If I/O load causes hitching/stuttering, this should not be used
echo 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/scheduler}="none"' | sudo tee '/etc/udev/rules.d/60-scheduler.rules' > '/dev/null' && sudo udevadm control --reload && sudo udevadm trigger

KeePassXC

Secret

secret-tool store --label='KeePass' 'keepass' 'default'

Kernel Options

sudo -e '/etc/sysctl.d/99-custom.conf'
kernel.dmesg_restrict = 1
kernel.kptr_restrict = 1
kernel.sysrq = 1

mpv

  • Add opengl-backend if using Wayland session

VA-API

  • For GPUs using the intel kernel module
mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
hwdec='vaapi'
hwdec-codecs='all'
vo='vaapi'
ao='pulse'

VDPAU

  • For GPUs using the radeon, amdgpu, nouveau, or NVIDIA kernel module
mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
hwdec='vdpau'
hwdec-codecs='all'
vo='vdpau'
ao='pulse'

NetworkManager

  • wifi.powersave can be 2 for disabled, or 3 for enabled
sudo -e '/etc/NetworkManager/conf.d/99-custom.conf'
[device-mac-randomization]
wifi.scan-rand-mac-address=yes

[connection-mac-randomization]
ethernet.cloned-mac-address=random
wifi.cloned-mac-address=random

[connection]
wifi.powersave=3

PulseAudio

SoX Resampling

echo 'resample-method = soxr-vhq' | tee ~/'.config/pulse/daemon.conf' > '/dev/null'

Secure Shell

systemd

sudo mkdir -p '/etc/systemd/journald.conf.d' && sudo -e '/etc/systemd/journald.conf.d/logging.conf'
[Journal]
SystemMaxUse=50M
RuntimeMaxUse=50M

TRIM

Swap

  • Add discard after defaults for the swap mountpoint 5)
sudo -e '/etc/fstab'
discard

Service

sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l

Environment Variables

Mutter

  • This allows use of Wayland session on multi-graphics computers
echo 'export MUTTER_ALLOW_HYBRID_GPUS=1' | sudo tee --append '/etc/environment' > '/dev/null'

Wine Staging

sudo -e '/etc/profile.d/wine-staging.sh'
export STAGING_SHARED_MEMORY=1
export STAGING_WRITECOPY=1
export STAGING_RT_PRIORITY_SERVER=90

Realtime Priority Permissions

  • For Wine to be able to use the STAGING_RT_PRIORITY_SERVER environment variable
sudo -e '/etc/security/limits.d/99-custom.conf' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/security/limits.d/99-custom.conf'
@CHANGEME - rtprio 90
@CHANGEME - nice -10

Timezone

echo 'export TZ=:/etc/localtime' | sudo tee '/etc/profile.d/tz.sh' > '/dev/null'

NVIDIA

sudo -e '/etc/profile.d/nvidia.sh'
export __GL_FSAA_MODE=0
export __GL_ALLOW_FXAA_USAGE=0
export __GL_LOG_MAX_ANISO=0
export __GL_SYNC_TO_VBLANK=0
export __GL_YIELD=NOTHING
export __GL_THREADED_OPTIMIZATIONS=0
export __GL_SHADER_DISK_CACHE=1
export __GL_ConformantBlitFramebufferScissor=0
export __GL_GSYNC_ALLOWED=0
export __GL_IGNORE_GLSL_EXT_REQS=1

Computer-specific

Spinesnap

Open-Source Graphics

intel + nouveau

  • Don't use this if using an external monitor primarily and the laptop display is shut, assuming the display port used is wired to the NVIDIA dGPU 6)
sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
    Identifier  "Intel iGPU"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "DRI"           "3"
    Option      "TearFree"      "0"
EndSection

Section "Device"
    Identifier  "NVIDIA dGPU"
    Driver      "nouveau"
    BusID       "PCI:1:0:0"
    Option      "DRI"           "3"
    Option	"NoAccel"	"1"
EndSection

modesetting

sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
    Identifier  "Optimus"
    Driver      "modesetting"
EndSection

Proprietary Graphics

Notes

Software

sudo dnf install nvidia-driver nvidia-settings nvidia-driver-libs.i686 dkms-nvidia kernel-devel && sync

MSR

  • Not necessary to be ran, only here for reference
  • Requires msr-tools

Enable Intel Speed Shift Technology

  • 0x770 needs to report 1
sudo rdmsr --all --decimal '0x770'
sudo wrmsr --all '0x770' '1'

Disable BD-PROCHOT

  • 0x1FC needs to be set to whatever it reports
  • TODO: See if this is still needed; BIOS presents an option to disable it, but is it even a good idea to be disabling this?
sudo rdmsr --all --decimal '0x1FC'
sudo wrmsr --all '0x1FC' 'x'

Updated QCA6174 Firmware

  • This doesn't solve anything as far as I'm aware, but it doesn't hurt either

Update

sudo wget -O '/usr/lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin' 'https://github.com/kvalo/ath10k-firmware/raw/master/QCA6174/hw3.0/board-2.bin' && sudo wget -O '/usr/lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin' 'https://github.com/kvalo/ath10k-firmware/raw/master/QCA6174/hw3.0/4.4.1.c1/firmware-6.bin_RM.4.4.1.c1-00037-QCARMSWP-1'
Verify
  • firmware-version should report the firmware version of firmware-6.bin
  • wlp2s0 may change
sudo ethtool -i 'wlp2s0'

Revert

sudo dnf reinstall 'linux-firmware' -y && sync

Various AMD

Open-Source Graphics

radeon

sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
    Identifier  "AMD GPU"
    Driver      "radeon"
    Option      "AccelMethod"   "EXA"
#    Option      "AccelMethod"   "glamor"
    Option      "DRI"           "3"
    Option      "TearFree"      "0"
EndSection

Steven Black's Unified Hosts File

Service

sudo -e '/etc/systemd/system/hosts-up.service'
[Service]
Type=oneshot
WorkingDirectory=/tmp
ExecStartPre='/usr/bin/rm' -Rf '/tmp/master.zip' '/tmp/hosts-master'
ExecStartPre='/usr/bin/wget' 'https://github.com/StevenBlack/hosts/archive/master.zip' -O '/tmp/master.zip'
ExecStartPre='/usr/bin/unzip' '/tmp/master.zip' -d '/tmp'
ExecStart='/usr/bin/python3' '/tmp/hosts-master/updateHostsFile.py' --auto --replace --flush-dns-cache --extensions 'gambling' 'fakenews'
ExecStartPost='/usr/bin/rm' -Rf '/tmp/master.zip' '/tmp/hosts-master'
ExecStartPost='/usr/bin/sync'

Timer

sudo -e '/etc/systemd/system/hosts-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'hosts-up.timer' --now && sudo systemctl start 'hosts-up' && sudo systemctl status 'hosts-up' -l
[Unit]
Description=Steven Black's Unified Hosts File Sources Updater
After=network-online.target
Wants=network-online.target

[Timer]
OnCalendar=weekly
Persistent=true

[Install]
WantedBy=timers.target

Mozilla Firefox

  • Use Disconnect.me strict protection Block List

Remove Default Extensions

sudo rm -Rfv '/usr/lib64/firefox/browser/features'

YouTube HTML5

user.js

  • Last updated: 2018/02/09
cd ~/'.mozilla/firefox/'*'.default' && nano 'user.js' && cd ~
user_pref("layout.frame_rate.precise", true);
user_pref("mousewheel.min_line_scroll_amount", 40);
user_pref("browser.sessionstore.interval", 300000);
user_pref("extensions.pocket.enabled", false);
user_pref("loop.enabled", false);
user_pref("reader.parse-on-load.enabled", false);
user_pref("network.captive-portal-service.enabled", false);
user_pref("network.cookie.cookieBehavior", 1);
user_pref("browser.sessionstore.privacy_level", 2);
user_pref("browser.cache.disk.enable", false);
user_pref("privacy.popups.disable_from_plugins", 3);
user_pref("dom.battery.enabled", false);
user_pref("media.peerconnection.ice.default_address_only", true);
user_pref("toolkit.telemetry.enabled", false);
user_pref("privacy.donottrackheader.enabled", true);
user_pref("geo.enabled", false);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", false);
user_pref("browser.safebrowsing.downloads.enabled", false);
user_pref("webgl.disabled", true);
user_pref("network.cookie.lifetimePolicy", 2);
user_pref("browser.display.use_document_fonts", 0);
user_pref("network.http.referer.userControlPolicy", 2);
user_pref("dom.webaudio.enabled", false);
user_pref("dom.webnotifications.enabled", false);
user_pref("gfx.canvas.azure.accelerated", true);
user_pref("layers.acceleration.force-enabled", true);
user_pref("browser.tabs.remote.autostart", true);
user_pref("browser.tabs.remote.force-enable", true);
user_pref("extensions.screenshots.system-disabled", true);
user_pref("datareporting.policy.dataSubmissionEnabled", false);
user_pref("media.autoplay.enabled", false);
user_pref("browser.tabs.drawInTitlebar", true);
user_pref("accessibility.force_disabled", 1);
user_pref("signon.rememberSignons", true);
user_pref("privacy.firstparty.isolate", false);
user_pref("layout.css.servo.chrome.enabled", true);
user_pref("layers.omtp.enabled", true);
user_pref("privacy.resistFingerprinting", true);

Extensions

  • privacy.resistFingerprinting needs to be temporarily set to false in about:config or else extensions download pages won't allow downloading

Download

  • 7 extensions
gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/versions' && gio open 'https://www.eff.org/https-everywhere' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/cookie-autodelete/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/https-by-default/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/canvasblocker/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/privacy-settings/versions'
  • Enable Active Mode
  • Don't Log Total Number Of Cookies Deleted
  • Don't Show Notification After Cookie CleanUp
  • Clean Cookies from Open Tabs on StartUp

Privacy Settings

  • Full Privacy

uBlock Origin

  • Enable Advanced Mode
  • Uncheck EasyPrivacy
  • Uncheck EasyList
  • Check MVPS HOSTS
  • Check hpHost's Ad and tracking servers
  • Check Dan Pollock's hosts file

Custom 3rd-party filters

  • Last updated: 2018/02/07 7)
https://secure.fanboy.co.nz/fanboy-problematic-sites.txt
https://secure.fanboy.co.nz/r/fanboy-ultimate.txt
https://secure.fanboy.co.nz/fanboy-antifacebook.txt
https://secure.fanboy.co.nz/fanboy-antifonts.txt
https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/fanboy-cookiemonster.txt
https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/popads-domains-list.txt
https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/fake-news.txt
https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/enhancedstats-addon.txt

My filters

  • Last updated: 2018/02/07 8)
! Facebook 2017/11/10
www.facebook.com###sideNav > div
www.facebook.com###rightCol
www.facebook.com###fbDockChatBuddylistNub > .fbNubButton
www.facebook.com###feedx_sprouts_container

! Reddit 2017/11/10
www.reddit.com##.trending-subreddits
www.reddit.com###chat
www.reddit.com##.initialized.listing-chooser
www.reddit.com##.listingsignupbar.infobar
www.reddit.com##.menuarea
www.reddit.com##.create.sidebox
www.reddit.com##.hohoho.sidebox

! Imgur 2017/11/10
imgur.com###right-content
imgur.com##.caption-create
imgur.com##.post-action
imgur.com##.comments-info
imgur.com###topbar
imgur.com##.spotlight-container

! Phoronix 2017/11/10
www.phoronix.com##.restore.notice
www.phoronix.com###breadcrumbs
www.phoronix.com###widget_6
www.phoronix.com###notices
www.phoronix.com###channel-subtabbar
www.phoronix.com###widget_152
www.phoronix.com###widget_153
www.phoronix.com###widget_2
www.phoronix.com###widget_151
www.phoronix.com###widget_9
www.phoronix.com###widget_7
www.phoronix.com###widget_4
www.phoronix.com###footer-tabbar
www.phoronix.com###footer-copyright
www.phoronix.com###ui-id-1
www.phoronix.com###sidebar
www.phoronix.com###footer

! My Digital Life Forums 2017/11/10
forums.mydigitallife.net##.noticeContent.baseHtml
forums.mydigitallife.net##footer
forums.mydigitallife.net##.persistentFooterButton__bar--spaceHolder
forums.mydigitallife.net##.element.concealed

! Gfycat 2017/11/10
gfycat.com###header-container
gfycat.com###video-details-container
gfycat.com##.right

Notable Folders and Commands

youtube-dl

Show Formats

  • Change x to a URL
youtube-dl -F x

Download Audio-only

  • Download the m4a audio only format shown from the above command
  • The format code is likely 140
  • Change x to a URL
youtube-dl -f 140 x

Shortcuts

/usr/share/applications
~/.local/share/applications

Icons

/usr/share/icons/hicolor
~/.local/share/icons/hicolor

Anaconda Module Blacklists

sudo -e '/etc/modprobe.d/anaconda-blacklist.conf'

YUM/DNF Repos

gio open '/etc/yum.repos.d'

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

fstrim

sudo fstrim -v --all

SELinux Re-label

sudo touch '/.autorelabel'

Xorg Debug

journalctl -e _COMM='gdm-x-session'

Verify DRI3

LIBGL_DEBUG='verbose' glxinfo | grep 'libgl'

Show CPU Frequency

grep 'MHz' '/proc/cpuinfo'
watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'

Partition Information

df -hT

Encryption Information

sudo cryptsetup -v status '/dev/dm-0'

hdparm Secure Erase

sudo dnf install 'hdparm' -y && sync
sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda'
sudo hdparm --user-master u --security-erase 'x' '/dev/sda'
sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda'

NVMe Erase

sudo dnf install 'nvme-cli' -y && sync
sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync

Clean EFI Variables

  • This works fine on a few Acer and Dell laptops, but could potentially cause a brick with bad platform implementations, use at own risk
  • Safer way is to use efibootmgr to remove boot entries
sudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v

RAID Controller Details

sudo mdadm --detail-platform

VGA Switcheroo Power States

sudo cat '/sys/kernel/debug/vgaswitcheroo/switch'

Intel GuC Firmware

sudo cat '/sys/kernel/debug/dri/0/i915_guc_info'
sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status'

Hyper-threading Information

grep -e "processor" -e "core id" -e "^$" /proc/cpuinfo

Optimal GCC compiler flags

gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'

Privacy

oathtool

  • x is a secret without &digits=6
oathtool --totp -b 'x'

Remove EXIF data

exiftool -all= *.* -overwrite_original
2)
EFI file to boot and in the case of Acer laptops, add to SecureBoot trust; doesn't matter if SecureBoot is enabled or not
4)
no noop, cfq nor deadline
5)
defaults,discard
6)
this causes the external display to render on the NVIDIA chip, and since nouveau can't currently re-clock, performance is awful
7) , 8)
not really, but need some kind of date reference
distros/fedora_workstation_gnome.txt · Last modified: 2018/02/20 08:49 by Sean Rhone