Last active
June 19, 2021 11:48
-
-
Save ThomasBuchinger/57e2c423eb8481c4e0f21672d4b4d13d to your computer and use it in GitHub Desktop.
stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Set the battery charge threshold | |
After=multi-user.target | |
StartLimitBurst=0 | |
[Service] | |
Type=oneshot | |
Restart=on-failure | |
ExecStart=/bin/bash -c 'echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold' | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Set MTU and rx-buffer-timeout to fix Intel Ethernet on Startup | |
After=multi-user.target | |
StartLimitBurst=0 | |
[Service] | |
Type=oneshot | |
Restart=on-failure | |
ExecStart=/bin/fix-ethernet.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEV=enp0s31f6 | |
ip link set ${DEV} mtu 1492 | |
ethtool -C ${DEV} rx-usecs 512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LAN i219-v - rx errors | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixed in Kernel 5.12 | |
# remove incompatible wifi firmware | |
# mv /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm.xz /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm.xz.old | |
# reduce screen flashes | |
set Kernel Parameter "i915.enable_rc6=0 i915.enable_psr=0" | |
# System Config | |
dnf update | |
fprintd-enroll | |
# Install Battery optimaations | |
dnf install https://repo.linrunner.de/fedora/tlp/repos/releases/tlp-release.fc$(rpm -E %fedora).noarch.rpm | |
dnf install kernel-devel akmod-acpi_call akmod-tp_smapi tlp | |
echo "STOP_CHARGE_THRESH_BAT0=60" | |
systemctl enable --now tlp | |
# Limit battery charge | |
systemctl enable --now battery-charge-control.service | |
# Enable Fan Control | |
dnf install thinkfan | |
# edit /etc/thinkfan.conf | |
systemctl enable --now thinkfan | |
# Install Brave | |
sudo dnf install dnf-plugins-core | |
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/ | |
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc | |
sudo dnf install brave-browser | |
# Install VSCode | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' | |
sudo dnf install code | |
# Install ansible | |
python -m pip install --user ansible | |
# Install Steam | |
dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-34.noarch.rpm | |
dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-34.noarch.rpm | |
dnf install steam | |
# Install Printer | |
dnf install dcpj4110dwcupswrapper-3.0.1-1.i386.rpm dcpj4110dwlpr-3.0.1-1.i386.rpm | |
setsebool -P cups_execmem 1 | |
# Improve Ethernet | |
# vim /bin/fix-ethernet.sh and fix-ethernet.service | |
chmod 0755 /bin/fix-ethernet.sh | |
systemctl enable --now fix-ethernet.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment