From f2912fbfa190cdcdd8cf7c58fdd1635b090ace77 Mon Sep 17 00:00:00 2001 From: Jake Pullen Date: Fri, 7 Nov 2025 07:50:03 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20More=20fedora=20set=20up=20?= =?UTF-8?q?tweaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- set_up_dev/fedora.sh | 63 +++++++++++++++++++++--------------- set_up_dev/lm_studio_grab.sh | 7 ++-- 2 files changed, 42 insertions(+), 28 deletions(-) diff --git a/set_up_dev/fedora.sh b/set_up_dev/fedora.sh index b7cf885..9806fd2 100755 --- a/set_up_dev/fedora.sh +++ b/set_up_dev/fedora.sh @@ -9,6 +9,32 @@ # chmod +x fedora-setup.sh # sudo ./fedora-setup.sh # ------------------------------------------------------------ +# list all packages we want from dnf +package_list=( + "kitty" + "fastfetch" + "zsh" + "btop" + "steam" + "code" + "just" + ) +# list all the platpaks we want to install +flatpacks_to_install=( + "com.discordapp.Discord" + "com.spotify.Client" + "app.zen_browser.zen" +) +# list all the folders we want to link from our dotifles foler to our .config folder +folders_to_link=( + # "alacritty" + "git" + "zsh" + "kitty" + "starship.toml" + ) + +# ------------------------------------------------- set -euo pipefail # safer shell behaviour shopt -s expand_aliases # if you use aliases inside the script @@ -24,16 +50,9 @@ sudo dnf install \ https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \ -y -# list all packages we want from dnf -package_list=( - "kitty" - "fastfetch" - "zsh" - "btop" - "steam" - "code" - "just" - ) +# prep for vs-code install +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null # Create a string of packages package_string=$(IFS=' ' ; echo "${package_list[@]}") @@ -49,13 +68,12 @@ if ! command -v flatpak &>/dev/null; then fi echo "==> Adding Flathub repository..." -flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo +sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo +flatpack_string=$(IFS=' ' ; echo "${flatpacks_to_install[@]}") # 6. Install Flatpak Apps echo "==> Installing Discord..." -flatpak install -y flathub com.discordapp.Discord -flatpak install -y flathub com.spotify.Client -flatpak install -y flathub app.zen_browser.zen +flatpak install -y flathub $flatpack_string # 7. Install stuff from around the web that we want # UV for Python Dev @@ -71,13 +89,6 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl -sS https://starship.rs/install.sh | sh # sim link config -folders_to_link=( - # "alacritty" - "git" - "zsh" - "kitty" - "starship.toml" # not a folder, but should still work - ) for folder in "${folders_to_link[@]}"; do config_path="$HOME/dotfiles/$folder" target_path="$HOME/.config/$folder" @@ -89,17 +100,17 @@ ln -s $HOME/dotfiles/git/gitconfig $HOME/.gitconfig ln -s $HOME/dotfiles/.justfile $HOME/.justfile # untested zshrc sym link -sudo rm /etc/zshrc +sudo rm -f /etc/zshrc sudo ln -s /etc/zshrc $HOME/dotfiles/zsh/.zshrc # nvim set up likely needs work -# git clone https://github.com/Jake-Pullen/kickstart.nvim.git $HOME/.config/nvim +git clone https://github.com/Jake-Pullen/kickstart.nvim.git $HOME/.config/nvim + +chsh -s /bin/zsh # 9. Clean up (optional) echo "==> Cleaning up package cache..." sudo dnf clean all echo "====================================================" -echo "All done! Your Fedora system is now ready to go." -echo "You can run 'flatpak list' to see Flatpak apps or 'dnf list installed' for rpm packages." - +echo "All done! Give the system a reboot!" \ No newline at end of file diff --git a/set_up_dev/lm_studio_grab.sh b/set_up_dev/lm_studio_grab.sh index 98583df..9ae685d 100755 --- a/set_up_dev/lm_studio_grab.sh +++ b/set_up_dev/lm_studio_grab.sh @@ -1,9 +1,12 @@ # first remove the old lm studio (keeping one old version copy) +echo Removing old backup +rm -f ~/AppImages/LM-Studio.AppImage.old -rm ~/AppImages/LM-Studio.AppImage.old - +echo Making new backup mv ~/AppImages/LM-Studio.AppImage ~/AppImages/LM-Studio.AppImage.old +echo Bringing in new App mv ~/Downloads/LM-Studio*.AppImage ~/AppImages/LM-Studio.AppImage +echo Making it executable chmod +x ~/AppImages/LM-Studio.AppImage \ No newline at end of file