This commit is contained in:
QuackeR 2019-02-05 03:17:59 -05:00
parent 481ef8c6c6
commit a3eb651780
13 changed files with 24 additions and 43 deletions

View File

@ -1 +0,0 @@
options nvidia-drm modeset=1

View File

@ -1,4 +0,0 @@
#!/bin/bash
apt-mark showmanual > ~/.pkgsrc/pkgs_cur
diff --suppress-common-lines -y ~/.pkgsrc/pkgs_cur ~/.pkgsrc/pkgs_org

View File

@ -3,4 +3,4 @@ Description=undervolt
[Service]
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

View File

@ -2,8 +2,8 @@
Description=Wakeup fix
[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]
WantedBy=multi-user.target
WantedBy=multi-user.target

View File

@ -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

View File

@ -1,14 +1,20 @@
#!/bin/bash
echo "Setting up GnuPG..."
sudo dnf install -y gnupg
gpg -d id_ed25519.gpg > id_ed25519
echo "Installing keychain..."
sudo apt install keychain
sudo dnf install -y keychain
echo "Copying private key..."
cp id_op52 ~/.ssh/id_op52
cp id_op52.pub ~/.ssh/id_op52.pub
chmod 600 ~/.ssh/id_op52
chmod 644 ~/.ssh/id_op52.pub
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cp id_ed25519 ~/.ssh/
cp id_ed25519.pub ~/.ssh/
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub
echo "Configuring keychain..."
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

6
setup3_fedora_pkg.sh Executable file
View File

@ -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

View File

@ -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

View File

@ -1,7 +1,6 @@
#!/bin/bash
echo "Installing power-saving packages"
sudo apt install -y powertop tlp
sudo apt-get -y autoremove
sudo dnf install -y powertop tlp
echo "Edit /etc/default/tlp such that the default mode is BAT"
echo "Edit /etc/default/tlp such that the default mode is BAT"

View File

@ -1,8 +1,7 @@
#!/bin/bash
echo "Installing undervolt packages"
sudo apt install -y python-pip
sudo apt-get -y autoremove
sudo dnf install -y python-pip
sudo pip install undervolt

View File

@ -1,4 +0,0 @@
#!/bin/bash
sudo cp _nv_modeset /etc/modprobe.d/zz-nvidia-modeset.conf
sudo update-initramfs -u