EFI/fedora/shimx64.efi
3)/home
, set /boot
and /
to use XFS, expand /
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'
wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts' && sudo cp '/etc/hosts' '/etc/hosts-bak' && sudo mv '/tmp/hosts-tmp' '/etc/hosts' && sync
deltarpm=false
cat '/etc/dnf/dnf.conf' | grep 'deltarpm=false' || echo 'deltarpm=false' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null' && cat '/etc/dnf/dnf.conf'
sudo
timeout and re-prompt for the passwordsudo su
sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020' && sync && sudo dnf install 'https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-'$(rpm -E %fedora)'.noarch.rpm' -y && sync
sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-'$(rpm -E %fedora) && sync && sudo dnf install 'https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-'$(rpm -E %fedora)'.noarch.rpm' -y && sync
sudo dnf config-manager --add-repo='http://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo'
sudo dnf distro-sync -y && sync
sudo dnf autoremove
sudo dnf list --installed 'kernel'*
sudo dnf remove *5.3.7* && sync
sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose
flatpak update && sudo flatpak update
nano
VISUAL
and EDITOR
to nano
via environment variablenowrap
for current usersudo 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'
sudo dnf groupupdate core multimedia sound-and-video && sync
sudo dnf install evolution filezilla gimp keepassxc transmission-gtk aria2 flashrom hdparm htop irqbalance lm_sensors p7zip p7zip-plugins unar wget
ffmpeg
is for youtube-dl
to correct DASH containersffmpeg mpv
steam
akmod-nvidia
run_keybase
in a Terminal after installation'https://prerelease.keybase.io/keybase_amd64.rpm'
kernel-modules-extra
libva-intel-driver
requires the RPM Fusion free repointel-media-driver
is the newer VA-API solution for Intel HD graphicslibva-utils
provides vainfo
libva-intel-driver
intel-media-driver
libva-utils
libva-vdpau-driver
vdpauinfo
vdpauinfo | grep 'Information'
ckb-next
wine winetricks
torbrowser-launcher
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'
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 && rm -Rfv '/usr/lib64/firefox/browser/features' '/home/'*'/.mozilla/firefox/'*'/features' && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"
en, en
printer driversocket://192.168.1.164:9100
echo 'kernel.sysrq = 1' | sudo tee '/etc/sysctl.d/99-sysrq.conf' > '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf'
sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/efi/EFI/fedora/grub.cfg'
sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
args
grubby
sometimes existed on F31, where other times it didn'tsudo grubby --update-kernel='ALL' --args=''
amdgpu.ppfeaturemask=0xffffffff
cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295'
rm -Rf ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' '/tmp/gnome-shell-scroll-workspaces-master.zip' '/tmp/gnome-shell-scroll-workspaces-master' && 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' && 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' && gnome-extensions enable 'scroll-workspaces@gfxmonk.net' && sync
gnome-extensions disable 'scroll-workspaces@gfxmonk.net' && rm -Rf ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' && sync
cat '/etc/gdm/custom.conf' | grep '#WaylandEnable' > '/dev/null' && sudo sed -i 's/'#WaylandEnable'/'WaylandEnable'/g' '/etc/gdm/custom.conf' && cat '/etc/gdm/custom.conf' | grep 'WaylandEnable'
sudo -e '/etc/gdm/custom.conf'
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true' && 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.software' 'download-updates' 'false' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true'
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.software' 'download-updates' 'false'
gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
x
to computer namehostnamectl set-hostname 'x'
run_keybase
secret-tool store --label='KeePass' 'keepass' 'default'
sudo sensors-detect --auto
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
wifi.powersave
can be 2
for disabled, or 3
for enabledethernet.cloned-mac-address=random
breaks USB Tethering with iOS/iPhonessudo -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
sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
sudo timedatectl set-local-rtc '0'
timedatectl | grep local
modesetting
or amdgpu
should be usedMOZ_ACCELERATED
variable as wellecho -e 'export MOZ_ACCELERATED=1\nexport MOZ_WEBRENDER=1\nexport MOZ_USE_XINPUT2=1\nexport MOZ_X11_EGL=1' | sudo tee '/etc/profile.d/firefox-hwaccel.sh' > '/dev/null' && cat '/etc/profile.d/firefox-hwaccel.sh'
sudo -e '/etc/profile.d/firefox-hwaccel.sh'
rm -fv '/tmp/profiles.ini' && nano '/tmp/profiles.ini' && sed -i 's/'CHANGEME'/'$USER'/g' '/tmp/profiles.ini'
[General] StartWithLastProfile=1 [Profile0] Name=default IsRelative=1 Path=CHANGEME Default=1
media.peerconnection.enabled
disables WebRTCrm -fv '/tmp/user.js' && nano '/tmp/user.js'
/********************* * Hardware-specific * *********************/ user_pref("layout.frame_rate", 144); /************************* * Hardware Acceleration * *************************/ user_pref("layers.acceleration.force-enabled", true); user_pref("media.ffmpeg.vaapi.enabled", true); user_pref("media.ffvpx.enabled", false); /*********** * General * ***********/ user_pref("extensions.screenshots.disabled", true); user_pref("reader.parse-on-load.enabled", false); user_pref("media.mediasource.experimental.enabled", true); user_pref("media.mediasource.ignore_codecs", true); user_pref("media.autoplay.enabled", false); user_pref("media.av1.enabled", false); user_pref("media.hardware-video-decoding.force-enabled", true); user_pref("widget.wayland-dmabuf-vaapi.enabled", true); user_pref("webgl.disabled", true); user_pref("webgl.enable-webgl2", false); user_pref("accessibility.force_disabled", 1); user_pref("mousewheel.min_line_scroll_amount", 40); user_pref("browser.tabs.drawInTitlebar", true); user_pref("network.standard-url.escape-utf8", false); /*********** * Privacy * ***********/ user_pref("security.tls.version.min", 2); user_pref("security.OCSP.require", true); user_pref("security.cert_pinning.enforcement_level", 2); user_pref("security.ssl3.rsa_des_ede3_sha", false); user_pref("security.ssl.enable_false_start", false); user_pref("geo.enabled", false); user_pref("network.http.sendRefererHeader", false); user_pref("privacy.donottrackheader.enabled", true); user_pref("browser.safebrowsing.malware.enabled", false); user_pref("browser.safebrowsing.phishing.enabled", false); user_pref("browser.safebrowsing.downloads.enabled", false); user_pref("network.security.esni.enabled", true); user_pref("privacy.trackingprotection.enabled", true); user_pref("toolkit.telemetry.enabled", false); /******* * U2F * *******/ user_pref("security.webauth.u2f", true); /********** * Tweaks * **********/ user_pref("browser.cache.disk.enable", false); user_pref("browser.cache.memory.enable", true); user_pref("browser.cache.memory.enable", true); /******* * VPN * *******/ user_pref("network.dns.disableIPv6", true); user_pref("media.peerconnection.enabled", false); /******* * END * *******/
/************* * User Agent* *************/ user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 9.0; WOW64; Trident/7.0; rv:11.0) like Gecko");
Path
should report the current user's username, and the text Custom Stuff
should be visiblefirefox -p default
must be ran the first time Firefox is started after this commandls '/tmp/profiles.ini' '/tmp/user.js' && pkill -f 'firefox' && rm -Rfv ~/'.mozilla' && sync && mkdir -p ~/'.mozilla/firefox/'$USER && mv '/tmp/profiles.ini' ~/'.mozilla/firefox/profiles.ini' && mv '/tmp/user.js' ~/'.mozilla/firefox/'$USER'/user.js' && sync && cat ~/'.mozilla/firefox/profiles.ini' | grep $USER && cat ~/'.mozilla/firefox/'$USER'/user.js' | grep 'Custom Stuff' && sleep '1' && sync || firefox -p 'default'
gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/privacy-possum/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/cookie-autodelete/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions'
https://www.fanboy.co.nz/fanboy-problematic-sites.txt https://www.fanboy.co.nz/r/fanboy-ultimate.txt https://www.fanboy.co.nz/fanboy-antifacebook.txt https://www.fanboy.co.nz/fanboy-antifonts.txt https://www.fanboy.co.nz/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
D
is the destination you want the extracted files to gox
is the ISO you want to extract files from-o
flag is intentional7z 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
rm -f '/tmp/youtube-dl' && wget -O '/tmp/youtube-dl' 'https://yt-dl.org/downloads/latest/youtube-dl' && chmod +x '/tmp/youtube-dl'
x
to a URL'/tmp/youtube-dl' --list-formats x
x
to a URLbestaudio
can be changed to bestvideo
for just video, or best
for best video with audio'/tmp/youtube-dl' --extract-audio --format 'bestaudio' x
'/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'm4a' x
'/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'mp3' x
/usr/share/applications
~/.local/share/applications
/usr/share/icons/hicolor
~/.local/share/icons/hicolor
sudo -e '/etc/modprobe.d/anaconda-blacklist.conf'
gio open '/etc/yum.repos.d'
sudo dnf history
x
to a transaction ID found abovesudo dnf history undo x
rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
sudo rpm -e x
rm -Rf ~/'.cache/thumbnails'
x
to schema or omit it to show all settingsgsettings list-recursively 'x'
pkcon -c '1' refresh && pkcon update
sudo fstrim --verbose --all
sudo touch '/.autorelabel'
rm -f ~/'.config/monitors.xml' ~/'.config/monitors.xml~'
rm -f ~/'.config/pulse/'*
journalctl -e _COMM='gdm-x-session'
gio open ~/'.local/share/xorg/Xorg.1.log'
LIBGL_DEBUG='verbose' glxinfo | grep 'libgl'
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'
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_'* && __NV_PRIME_RENDER_OFFLOAD='1' __GLX_VENDOR_LIBRARY_NAME='nvidia' ./GpuTest /test='fur' /width='1280' /height='720'
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'
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'
rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync
sudo dnf install 'lm_sensors' -y && sudo sensors-detect --auto && sudo watch -n0.1 sensors
grep 'MHz' '/proc/cpuinfo'
watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'
openssl ciphers -v | awk '{print $2}' | sort | uniq
df -hT
df --human-readable --print-type
sudo cryptsetup -v status '/dev/dm-0'
hdparm
commands below assume actions to be performed on /dev/sda
sudo dnf install 'hdparm' && sync
sudo hdparm -I '/dev/sda'
sync && systemctl suspend
sudo blkdiscard --verbose '/dev/sda'
sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync
sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync
apt
commandsudo apt install 'nvme-cli' -y && sync
sudo dnf install 'nvme-cli' -y && sync
sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync
efibootmgr
to remove boot entries individuallysudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v
sudo mdadm --detail-platform
sudo mdadm --create '/dev/md0' --name='RAID' --level='0' --raid-devices='3' '/dev/sda' '/dev/sdb' '/dev/sdc' --verbose
sudo cat '/sys/kernel/debug/vgaswitcheroo/switch'
dsdt.dsl
, look for _OSI
values, along with Windows
and Linux
sudo dnf install 'acpica-tools'
sudo cp --force '/sys/firmware/acpi/tables/DSDT' ~/'dsdt.dat'
cd ~ && iasl -d ~/'dsdt.dat'
gio open ~/'dsdt.dsl'
sudo dnf remove 'acpica-tools' && sync
--reduced
only for LCD/Non-CRT displays, and only as-needed 8)horizontal
(width), vertical
(height) and refresh rate
cvt '3840' '2160' '60'
cvt --reduced '3840' '2160' '60'
--reduced
--newmode
are from the above generate command, and is everything after Modeline
xrandr --newmode "3840x2160R" 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
xrandr --addmode 'HDMI-A-0' '3840x2160R'
xrandr --output 'HDMI-A-0' --mode '3840x2160R'
xrandr --verbose | grep *current
Identifier
is the name of the port on the GPU the display is connected toModeline
is from the above generate command, including the text Modeline
PreferredMode
is the custom resolution name generatedSection "Monitor" Identifier "HDMI-A-0" Modeline x Option "PreferredMode" "3840x2160R" EndSection
/sys/class/backlight
intel_backlight
ls '/sys/class/backlight'
cat '/sys/class/backlight/'*'/brightness'
cat '/sys/class/backlight/'*'/max_brightness'
376
to desired brightnessmax_brightness
valueecho "376" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null'
echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null'
sudo cat '/sys/kernel/debug/dri/0/i915_guc_info'
sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status'
grep -e "processor" -e "core id" -e "^$" /proc/cpuinfo
gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'
history -cw
7ZIPNAME
in 7ZIPNAME.7z
to the desired archive namePASS
in -pPASS
to the desired passwordx
to the file or folder to add to the archive7za a '7ZIPNAME.7z' -p'PASS' 'x'
7za a 'x.7z' -p'x' 'x'
x
is a secret without &digits=6
sudo dnf install 'oathtool'
oathtool --totp -b 'x'
sudo dnf install 'perl-Image-ExifTool'
exiftool -all= *.* -overwrite_original
about:support
) and check Target Frame Rate