Compare commits
No commits in common. "93d744a8f8ad8f6cd3b2984d445d4d51ca4e3712" and "78f4b3f4556c927a0640b199158e49b17caf96b2" have entirely different histories.
93d744a8f8
...
78f4b3f455
2 changed files with 8 additions and 22 deletions
|
@ -6,12 +6,6 @@ if [ $(whoami) == "root" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo_remove_file_if_exists() {
|
|
||||||
if [ -f $1 ]; then
|
|
||||||
sudo rm $1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# only fedora is up-to-date
|
# only fedora is up-to-date
|
||||||
|
|
||||||
command_exists() { type "$1" &>/dev/null; }
|
command_exists() { type "$1" &>/dev/null; }
|
||||||
|
@ -20,20 +14,12 @@ if command_exists "apt-get"; then
|
||||||
sudo apt-get install kitty -y
|
sudo apt-get install kitty -y
|
||||||
echo "Please install SchildiChat, nvim/neovim"
|
echo "Please install SchildiChat, nvim/neovim"
|
||||||
elif command_exists "dnf"; then
|
elif command_exists "dnf"; then
|
||||||
# remove old zram stuff
|
sudo dnf remove zram-generator -y
|
||||||
echo '' | sudo crontab -
|
echo 'zram' | sudo tee /etc/modules-load.d/zram.conf
|
||||||
sudo_remove_file_if_exists /etc/modules-load.d/zram.conf
|
echo 'ACTION=="add", KERNEL=="zram0", ATTR{initstate}=="0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="48G", RUN="/usr/bin/mkswap -U clear %N", TAG+="systemd"' | sudo tee /etc/udev/rules.d/99-zram.rules
|
||||||
sudo_remove_file_if_exists /etc/udev/rules.d/99-zram.rules
|
zram_fstab='/dev/zram0 none swap defaults,discard,pri=160 0 0'
|
||||||
sudo sed -i 's/\/dev\/zram0 none swap defaults,discard,pri=160 0 0//g' /etc/fstab
|
if ! grep -q "$zram_fstab" /etc/fstab; then
|
||||||
|
echo "$zram_fstab" | sudo tee -a /etc/fstab
|
||||||
sudo dnf install zram-generator -y
|
|
||||||
# set up zram
|
|
||||||
if [ -f /usr/lib/systemd/zram-generator.conf ]; then
|
|
||||||
sudo rm /usr/lib/systemd/zram-generator.conf
|
|
||||||
fi
|
fi
|
||||||
if ! [ -d /usr/local/lib/systemd ]; then
|
echo '@reboot bash -c "mkswap -U clear /dev/zram0; swapon --discard --priority 160 /dev/zram0"' | sudo crontab -
|
||||||
sudo mkdir -p /usr/local/lib/systemd
|
|
||||||
fi
|
|
||||||
echo '[zram0]
|
|
||||||
zram-size = ram * 3' | sudo tee /usr/local/lib/systemd/zram-generator.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -12,7 +12,7 @@ if command_exists "apt-get"; then
|
||||||
sudo apt-get install kitty -y
|
sudo apt-get install kitty -y
|
||||||
echo "Please install SchildiChat, nvim/neovim"
|
echo "Please install SchildiChat, nvim/neovim"
|
||||||
elif command_exists "dnf"; then
|
elif command_exists "dnf"; then
|
||||||
sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup p7zip mosh krita podman podman-docker podman-compose gajim progress yt-dlp genisoimage zstd iperf3 keepassxc python3-pip ffmpegthumbnailer linuxconsoletools bind-utils hyfetch fastfetch nmap unrar-free restic gparted bsdtar android-tools httpd-tools digikam edid-decode hexchat htop minetest fuse-sshfs syncthing nasm sysstat openshot HandBrake HandBrake-gui electrum feather obs-studio fuse-libs pandoc wtype fedora-packager rpmdevtools createrepo_c iotop igt-gpu-tools power-profiles-daemon solaar -y
|
sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup p7zip mosh krita podman podman-docker podman-compose gajim progress yt-dlp genisoimage zstd iperf3 keepassxc python3-pip ffmpegthumbnailer linuxconsoletools bind-utils hyfetch fastfetch nmap unrar-free restic gparted bsdtar android-tools httpd-tools digikam edid-decode hexchat htop minetest fuse-sshfs syncthing nasm sysstat openshot HandBrake HandBrake-gui electrum feather obs-studio fuse-libs pandoc wtype fedora-packager rpmdevtools createrepo_c iotop igt-gpu-tools power-profiles-daemon -y
|
||||||
sudo dnf install ffmpeg --allowerasing
|
sudo dnf install ffmpeg --allowerasing
|
||||||
|
|
||||||
sudo systemctl enable --now syncthing@askiiart
|
sudo systemctl enable --now syncthing@askiiart
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue