add more to fedora
This commit is contained in:
parent
50511f2bf9
commit
2615d712be
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue