diff --git a/_perf_mode b/_perf_mode new file mode 100644 index 0000000..2687dc0 --- /dev/null +++ b/_perf_mode @@ -0,0 +1,9 @@ +[Unit] +Description=CPU Performance Mode + +[Service] +Type=simple +ExecStart=/bin/sh -c "echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor" + +[Install] +WantedBy=multi-user.target diff --git a/setup0_rpm.sh b/setup0_rpm.sh new file mode 100755 index 0000000..19c6ccf --- /dev/null +++ b/setup0_rpm.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +echo "Enabling workstation repos" +dnf install fedora-workstation-repositories +dnf config-manager --set-enabled google-chrome + +echo "Enabling RPMFusion..." +sudo rpm-ostree install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm + +echo "Enabling 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 update -y + +sudo dnf install -y vim \ + arc-theme \ + gnome-tweaks \ + paper-icon-theme \ + powerline-fonts \ + ibus-pinyin \ + clang \ + lld \ + nasm \ + cmake \ + bochs \ + qemu \ + xorriso \ + git \ + dconf-editor \ + steam \ + code \ + google-chrome-stable + +ibus restart + diff --git a/setup1_zsh.sh b/setup1_zsh.sh new file mode 100755 index 0000000..d604a35 --- /dev/null +++ b/setup1_zsh.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +echo "Installing zsh and fonts..." +sudo dnf install zsh powerline-fonts + +echo "Installing omzsh..." +sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" + +echo "Changing default shell..." +chsh /bin/zsh + +echo "Configuring zsh..." +cat ~/.zshrc | sed 's/SSH_KEY_PATH=.*/SSH_KEY_PATH=\"~\/.ssh\/id_ed25519\"/g' | sed 's/plugins=.*/plugins=\(git ssh-agent\)/g' | sed 's/ZSH_THEME=.*/ZSH_THEME=\"agnoster\"/g' > ~/.zshrc + +echo "Adding custom commands..." +echo "alias update-grub=\"sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg\"" >> ~/.zshrc +echo "alias remove-kern=\"sudo dnf remove \$(dnf repoquery --installonly --latest-limit=-1 -q)\"" >> ~/.zshrc + + diff --git a/setup3_fedora_pkg.sh b/setup3_fedora_pkg.sh deleted file mode 100755 index 76c73c9..0000000 --- a/setup3_fedora_pkg.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -echo "Installing packages" -sudo dnf upgrade -sudo dnf install -y vim arc-theme gnome-tweak-tool paper-icon-theme ibus-pinyin clang lld qemu nasm bochs xorriso git dconf-editor -ibus restart diff --git a/setupo_perf_mode.sh b/setupo_perf_mode.sh new file mode 100755 index 0000000..8e54a41 --- /dev/null +++ b/setupo_perf_mode.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo "Applying wakeup fix" +sudo cp _perf_mode /etc/systemd/system/perf_mode.service +sudo systemctl enable perf_mode +sudo systemctl start perf_mode +