fedora
This commit is contained in:
parent
481ef8c6c6
commit
a3eb651780
|
@ -1 +0,0 @@
|
||||||
options nvidia-drm modeset=1
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
apt-mark showmanual > ~/.pkgsrc/pkgs_cur
|
|
||||||
diff --suppress-common-lines -y ~/.pkgsrc/pkgs_cur ~/.pkgsrc/pkgs_org
|
|
|
@ -3,4 +3,4 @@ Description=undervolt
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/local/bin/undervolt -v --core -125 --cache -125 --uncore -125 --analogio -125 --gpu -50
|
ExecStart=undervolt -v --core -125 --cache -125 --uncore -125 --analogio -125 --gpu -50
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
Description=Wakeup fix
|
Description=Wakeup fix
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -c '/bin/echo XHC > /proc/acpi/wakeup; /bin/echo LID0 > /proc/acpi/wakeup; /bin/echo PBTN > /proc/acpi/wakeup; /bin/echo deep > /sys/power/mem_sleep'
|
ExecStart=/bin/sh -c '/bin/echo XHC > /proc/acpi/wakeup; /bin/echo deep > /sys/power/mem_sleep'
|
||||||
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# create apt snapshot and script for manually installed packages
|
|
||||||
echo "Creating APT snapshot..."
|
|
||||||
mkdir ~/.pkgsrc
|
|
||||||
apt-mark showmanual > ~/.pkgsrc/pkgs_org
|
|
||||||
echo "Creating APT script..."
|
|
||||||
cp ./_show_pkgs ~/show_pkgs
|
|
||||||
chmod +x ~/show_pkgs
|
|
||||||
|
|
|
@ -1,14 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Setting up GnuPG..."
|
||||||
|
sudo dnf install -y gnupg
|
||||||
|
gpg -d id_ed25519.gpg > id_ed25519
|
||||||
|
|
||||||
echo "Installing keychain..."
|
echo "Installing keychain..."
|
||||||
sudo apt install keychain
|
sudo dnf install -y keychain
|
||||||
|
|
||||||
echo "Copying private key..."
|
echo "Copying private key..."
|
||||||
cp id_op52 ~/.ssh/id_op52
|
mkdir -p ~/.ssh
|
||||||
cp id_op52.pub ~/.ssh/id_op52.pub
|
chmod 700 ~/.ssh
|
||||||
chmod 600 ~/.ssh/id_op52
|
cp id_ed25519 ~/.ssh/
|
||||||
chmod 644 ~/.ssh/id_op52.pub
|
cp id_ed25519.pub ~/.ssh/
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
chmod 644 ~/.ssh/id_ed25519.pub
|
||||||
|
|
||||||
echo "Configuring keychain..."
|
echo "Configuring keychain..."
|
||||||
echo "# Configured for keychain" >> ~/.bashrc
|
echo "# Configured for keychain" >> ~/.bashrc
|
||||||
echo "eval \`keychain --quiet --eval --agents ssh id_op52\`" >> ~/.bashrc
|
echo "eval \`keychain --quiet --eval --agents ssh id_ed25519\`" >> ~/.bashrc
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/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
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "Installing packages"
|
|
||||||
sudo add-apt-repository -y -u ppa:snwh/ppa
|
|
||||||
sudo add-apt-repository -y ppa:graphics-drivers
|
|
||||||
sudo apt-get -y update
|
|
||||||
sudo apt-get -y upgrade
|
|
||||||
sudo apt install -y vim arc-theme gnome-tweak-tool paper-icon-theme ibus-pinyin clang lld qemu nasm grub-pc-bin bochs bochs-sdl xorriso git dconf-editor
|
|
||||||
sudo apt-get -y autoremove
|
|
||||||
ibus restart
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Installing power-saving packages"
|
echo "Installing power-saving packages"
|
||||||
sudo apt install -y powertop tlp
|
sudo dnf install -y powertop tlp
|
||||||
sudo apt-get -y autoremove
|
|
||||||
|
|
||||||
echo "Edit /etc/default/tlp such that the default mode is BAT"
|
echo "Edit /etc/default/tlp such that the default mode is BAT"
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Installing undervolt packages"
|
echo "Installing undervolt packages"
|
||||||
sudo apt install -y python-pip
|
sudo dnf install -y python-pip
|
||||||
sudo apt-get -y autoremove
|
|
||||||
sudo pip install undervolt
|
sudo pip install undervolt
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo cp _nv_modeset /etc/modprobe.d/zz-nvidia-modeset.conf
|
|
||||||
sudo update-initramfs -u
|
|
Loading…
Reference in New Issue