From 47bb90de9cbcc68aee82142203eca1fe6b9017fb Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 8 Aug 2024 19:55:22 -0500 Subject: [PATCH] misc minor updates and fixes, add device-specific stuff --- device-specific.sh | 9 +++++++++ do-everything.bash | 5 ++++- dotfiles | 2 +- install-stuff/install-librewolf.bash | 2 -- install-stuff/install-misc.sh | 6 +++++- install-stuff/install-rust.sh | 23 +++++++++++++++++++++++ 6 files changed, 42 insertions(+), 5 deletions(-) create mode 100755 device-specific.sh create mode 100755 install-stuff/install-rust.sh diff --git a/device-specific.sh b/device-specific.sh new file mode 100755 index 0000000..94523d1 --- /dev/null +++ b/device-specific.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +if grep -q "Shyvana" /sys/devices/virtual/dmi/id/product_name; then + cd /tmp/ + git clone https://github.com/WeirdTreeThing/chromebook-linux-audio --depth 1 + cd ./chromebook-linux-audio/ + ./setup-audio + cd - + rm -rf /tmp/chromebook-linux-audio/ +fi \ No newline at end of file diff --git a/do-everything.bash b/do-everything.bash index a360ac0..6f10672 100755 --- a/do-everything.bash +++ b/do-everything.bash @@ -17,6 +17,7 @@ chmod 700 ./*.bash ./install-librewolf.bash ./install-misc.sh ./install-qemu-libvirt.bash +./install-rust.sh ./install-steam.bash ./install-vs-code.bash ./install-fonts.bash @@ -31,7 +32,9 @@ chmod 700 restore.sh ./restore.sh cd .. +./device-specific.sh + if command_exists "rpm-ostree"; then read -p "Press enter to reboot" reboot -fi \ No newline at end of file +fi diff --git a/dotfiles b/dotfiles index 0bc78c1..3efec5e 160000 --- a/dotfiles +++ b/dotfiles @@ -1 +1 @@ -Subproject commit 0bc78c17d8ae261c0d53ca24827e654ae2e93fc7 +Subproject commit 3efec5e1415f31d5421f07f1a389b82c765c2338 diff --git a/install-stuff/install-librewolf.bash b/install-stuff/install-librewolf.bash index 95fe8e6..b22b806 100755 --- a/install-stuff/install-librewolf.bash +++ b/install-stuff/install-librewolf.bash @@ -29,8 +29,6 @@ elif command_exists "dnf"; then done cd - rm -rf ./tmp-openh264/ - echo -e "\nNow open LibreWolf, go to about:config, and set these to true:\n media.gmp-gmpopenh264.autoupdate\n media.gmp-gmpopenh264.enabled\n media.gmp-gmpopenh264.provider.enabled\n media.peerconnection.video.h264_enabled\n" - read -p "" elif command_exists "rpm-ostree"; then if ! command_exists "librewolf"; then sudo wget https://rpm.librewolf.net/librewolf-repo.repo -O /etc/yum.repos.d/librewolf.repo diff --git a/install-stuff/install-misc.sh b/install-stuff/install-misc.sh index 88d9e7f..45d8059 100755 --- a/install-stuff/install-misc.sh +++ b/install-stuff/install-misc.sh @@ -14,7 +14,11 @@ if command_exists "apt-get"; then sudo apt-get install kitty -y echo "Please install SchildiChat, nvim/neovim" elif command_exists "dnf"; then - sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy p7zip mosh krita podman podman-docker podman-compose gajim progress yt-dlp genisoimage zstd iperf3 keepassxc python3-pip ffmpegthumbnailer linuxconsoletools bind-tools hyfetch fastfetch ffmpeg nmap unrar-free restic gparted bsdtar android-tools httpd-tools digikam edid-decode hexchat htop -y + sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy 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 -y + sudo dnf install ffmpeg --allowerasing + + sudo dnf copr enable wezfurlong/wezterm-nightly + sudo dnf install wezterm # Install schildichat-desktop # should be in my repo, but this works as both a fallback, and is faster than downloading from my repo - updates will come from my repo, though diff --git a/install-stuff/install-rust.sh b/install-stuff/install-rust.sh new file mode 100755 index 0000000..3f665b7 --- /dev/null +++ b/install-stuff/install-rust.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +if [ $(whoami) == "root" ]; then + echo "Run as a normal user, not root" + exit 1 +fi + +command_exists() { type "$1" &>/dev/null; } + +if command_exists "yum"; then + sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo + sudo dnf install rustup -y + fish -c "rustup-init" +elif command_exists "rpm-ostree"; then + sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo + rpm-ostree install rustup -y + echo "run rustup-init yourself or update the script" +elif command_exists "yay"; then + yay -S rustup --noconfirm --needed +else + echo "figure out rustup yourself" + echo "enter to continue" + read -p "" +fi \ No newline at end of file