From 8e29c0ccd592531999155c15420b989d9975d6cf Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Sun, 25 Jan 2026 14:43:40 -0600 Subject: [PATCH] Fedora update --- README.md | 22 ---- TODO.txt | 45 --------- dotenv.sh | 256 +++++++++++++++++++---------------------------- dotenv_fedora.sh | 132 ------------------------ g14.sh | 27 ----- testing.sh | 1 - 6 files changed, 103 insertions(+), 380 deletions(-) delete mode 100644 README.md delete mode 100644 TODO.txt delete mode 100755 dotenv_fedora.sh delete mode 100755 g14.sh delete mode 100755 testing.sh diff --git a/README.md b/README.md deleted file mode 100644 index cdca078..0000000 --- a/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# TODO: -- Common / Third Party - - Ensure VSCode installation is compatible with ibus - - Qogir needs better automation - - S1mple cursors barely work - - I think iosevka isn't working 100% - - maliit -- Manjaro; - - Hide the manjaro news manager - - Clipboard needs to be disabled -- KDE; - - Fix the taskbar icons - - Fix the taskbar quick access - - Update the theme, icons, window settings, etc. -- Retroarch - - Configure retroarch in its entirety. -- Win600 - - Fix controller and shortcuts - -``` -git clone https://github.com/YourWishes/dotenv && cd dotenv && chmod +x ./dotenv.sh && ./dotenv.sh -``` \ No newline at end of file diff --git a/TODO.txt b/TODO.txt deleted file mode 100644 index 7767d19..0000000 --- a/TODO.txt +++ /dev/null @@ -1,45 +0,0 @@ - -TODO: Set cursor -TODO: Set Theme -pCloud -Don't do VSCode as an AUR -CTRL+F4 Default Shortcut -Default NumLock On -Install G14 Tools -Configure Google cloud -Parsec alternative -Better Calculator -Way to deal with Kernel updates -KDE Connect? -Yuzu / Cemu / Citra(?) / RCPS3 -SSH(?) -Emoji Picker? -TODO: Set window switcher to "Thumbnail Grid" -TODO: Organize Application Icons -TODO: Adjust power settings -TODO: Make Steam and pCloud launch with system start -TODO: Adjust what icons appear in the taskbar area (Both Near clock and in the launcher) -Some kind if post-pcloud script? -See if I can fix KDE Wallet (just remove the password) -Start in Wayland -Wallpaper -Spectacle Shortcuts -Discord audio screenshare -Fixing VLC's SMB access -Fixing Dolphin's crappy SMB access as well. -Virtual Keyboard, with controller support -VLC -Elisa -!FreeTube -!OpenRGB -Balena Etcher -See if I can stop the titlebars being so pixelly at 1.5x DPI - -Battery and Power scripts, mainly changing refresh rates for the G14 - - - - -Enable touch indicators -Maliit -Qogir icons and sddm \ No newline at end of file diff --git a/dotenv.sh b/dotenv.sh index efe3ac5..4f53729 100755 --- a/dotenv.sh +++ b/dotenv.sh @@ -1,123 +1,104 @@ #!/bin/bash -# Disable running as root. -if [[ "$EUID" -eq 0 ]]; then - echo "Please do not run as root" - exit 1 +# Is this fedora? +if [ -f /etc/fedora-release ]; then + echo "Fedora detected, continuing..." +else + echo "This script is intended for Fedora systems. Exiting." + exit 1 fi -echo -e "\n\n\nPerforming Upgrades\n\n\n" - -# Update, run twice incase of keychain updates -sudo pacman -Syuu -q --noconfirm -sudo pacman -Syuu -q --noconfirm - -flatpak update --assumeyes -flatpak update --assumeyes - -# Create directories I use. -echo -e "\n\n\nCreating directories\n\n\n" -mkdir -p ~/Applications -mkdir -p ~/htdocs -mkdir -p ~/.config/nvim - -# Install the tools I like to use in the CLI -echo -e "\n\n\nInstalling CLI Tools\n\n\n" -sudo pacman -S -q --noconfirm \ - base-devel \ - unrar \ +# Primary Package Installs +echo -e "\n\n\nInstalling Primary Packages\n\n\n" +sudo dnf update -y +sudo dnf install -y \ git \ - cmake \ - curl \ - wget \ - xdg-desktop-portal-kde \ - flatpak \ - neovim \ vim \ - fuse \ - arch-wiki-docs \ - ntfs-3g \ - p7zip \ - docker \ - docker-compose \ - exfatprogs \ - dosfstools + steam-devices \ + nvim \ + cmake \ + gcc \ + gcc-c++ \ + make \ + gdb \ + flatpak -# Desktop Programs -echo -e "\n\n\nInstalling Pacman Desktop Programs\n\n\n" -sudo pacman -S -q --noconfirm \ - gparted \ - zip \ - ttc-iosevka \ - bluedevil \ - noto-fonts \ - noto-fonts-cjk \ - noto-fonts-emoji \ - avahi \ - nss-mdns \ - kdeconnect \ - spectacle \ - shotgun \ - xclip \ - cups \ - print-manager \ - libpaper \ - ghostscript \ - sddm \ - gnome-keyring +# Add Flathub repo, and set as default +flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo +flatpak remote-modify --set-default flathub + +# Remove fedora flathub repo + +# Remove unwanted packages # Install programs using flatpak echo -e "\n\n\nInstalling FlatPak Desktop Programs\n\n\n" flatpak install \ - flathub \ - org.mozilla.firefox \ - com.usebottles.bottles \ - com.valvesoftware.Steam \ - com.bitwarden.desktop \ - com.obsproject.Studio \ - dev.vencord.Vesktop \ - org.libretro.RetroArch \ - # org.gnome.NetworkDisplays \ - # app.organicmaps.desktop \ - # org.gnome.gitlab.YaLTeR.VideoTrimmer \ - com.uploadedlobster.peek \ - com.github.PintaProject.Pinta \ - org.qbittorrent.qBittorrent \ - org.gnome.Cheese \ - org.filezillaproject.Filezilla \ - com.github.taiko2k.tauonmb \ - org.kde.knights \ - org.kde.kmines \ - org.kde.ksudoku \ - org.kde.kpat \ - fr.handbrake.ghb \ - org.audacityteam.Audacity \ - org.blender.Blender \ - org.mapeditor.Tiled \ - org.libreoffice.LibreOffice \ - org.kde.kalk \ - com.nextcloud.desktopclient.nextcloud \ - org.kde.kdenlive \ - com.github.tchx84.Flatseal \ - io.dbeaver.DBeaverCommunity \ - io.github.mightycreak.Diffuse \ - com.unity.UnityHub \ - com.github.k4zmu2a.spacecadetpinball \ - org.prismlauncher.PrismLauncher \ - net.rpcs3.RPCS3 \ - org.yuzu_emu.yuzu \ - info.cemu.Cemu \ - org.DolphinEmu.dolphin-emu \ - io.github.lime3ds.Lime3DS \ - org.kde.ksudoku \ - org.kde.krita \ - org.kde.gwenview \ - com.google.Chrome \ - org.godotengine.Godot \ - dev.goats.xivlauncher \ - re.chiaki.Chiaki \ - org.mozilla.Thunderbird \ - --assumeyes + flathub \ + org.audacityteam.Audacity \ + org.azahar_emu.Azahar \ + com.bambulab.BambuStudio \ + com.bitwarden.desktop \ + org.blender.Blender \ + com.usebottles.bottles \ + org.kde.kalk \ + info.cemu.Cemu \ + io.dbeaver.DBeaverCommunity \ + com.discordapp.Discord \ + org.DolphinEmu.dolphin-emu \ + org.kartkrew.RingRacers \ + org.filezillaproject.Filezilla \ + org.mozilla.firefox \ + com.github.tchx84.Flatseal \ + it.mijorus.gearlever \ + io.github.MakovWait.Godots \ + com.google.Chrome \ + fr.handbrake.ghb \ + org.kde.kamoso \ + org.kde.kblocks \ + org.kde.kdenlive \ + org.kde.kmines \ + org.kde.knights \ + org.kde.kpat \ + org.kde.krita \ + org.kde.ksudoku \ + org.libreoffice.LibreOffice \ + org.luanti.luanti \ + net.kuribo64.melonDS \ + org.musicbrainz.Picard \ + com.nextcloud.desktopclient.nextcloud \ + com.obsproject.Studio \ + io.openrct2.OpenRCT2 \ + app.organicmaps.desktop \ + tv.plex.PlexHTPC \ + com.pokemmo.PokeMMO \ + org.prismlauncher.PrismLauncher \ + org.qbittorrent.qBittorrent \ + org.libretro.RetroArch \ + net.rpcs3.RPCS3 \ + net.shadps4.shadPS4 \ + com.slack.Slack \ + com.github.k4zmu2a.spacecadetpinball \ + com.valvesoftware.Steam \ + com.github.taiko2k.tauonmb \ + org.mozilla.Thunderbird \ + org.mapeditor.Tiled \ + com.unity.UnityHub \ + rocks.shy.VacuumTube \ + org.videolan.VLC \ + dev.goats.xivlauncher \ + --assumeyes + +# VS Code +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' +dnf check-update +sudo dnf install code + +# Docker +sudo dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo +sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y +sudo systemctl enable --now docker # PIA echo -e "\n\n\nInstalling Private Internet Access\n\n\n" @@ -131,10 +112,8 @@ then rm ~/Downloads/pia.run fi -# YAY (AUR) -git clone https://aur.archlinux.org/yay.git -cd yay -makepkg -si +# Ollama +curl -fsSL https://ollama.com/install.sh | sh # Node JS / NVM echo -e "\n\n\nNodeJS\n\n\n" @@ -149,53 +128,24 @@ fi nvm install --lts npm i -g yarn -# VIM +# VIM (nvim) echo -e "\n\n\nVIM\n\n\n" echo "alias vim='nvim'" >> ~/.bashrc - +z sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' cp ./configs/vimrc-plugins ~/.config/nvim/init.vim nvim +"PlugInstall --sync" +qa cat ./configs/vimrc-config >> ~/.config/nvim/init.vim -# Begin Plasma Configurations -sudo systemctl enable bluetooth -sudo systemctl start bluetooth -sudo systemctl enable --now docker - -# Fix Dark Mode -gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' - -# Git Config -git config --global user.name Dominic Masters -git config --global user.email dominic@domsplace.com - -# Get .local DNS hostnames to work -sudo sed -i 's/hosts\: mymachines resolve/hosts: mymachines resolve mdns_minimal/g' /etc/nsswitch.conf -sudo systemctl stop avahi-daemon -sudo systemctl start avahi-daemon -sudo systemctl enable avahi-daemon - -# Printer -sudo systemctl enable --now cups - -# Enable plasma env vars -mkdir -p $HOME/.config/plasma-workspace/env/ -echo "#!/bin/bash" >> $HOME/.config/plasma-workspace/env/path.sh -echo "export MOZ_ENABLE_WAYLAND=1" >> $HOME/.config/plasma-workspace/env/path.sh - -# AUR Packages -yay -S --nodiffmenu \ - visual-studio-code-bin \ - git-credential-manager-core-extras - -# Setup VSCode to launch under wayland -#echo '--enable-features=WaylandWindowDecorations' >> ~/.config/code-flags.conf -#echo '--ozone-platform-hint=auto' >> ~/.config/code-flags.conf +# Iosevka font +sudo dnf copr enable peterwu/iosevka -y +sudo dnf install iosevka-fonts -y # Shopify stuff -curl -sSL https://get.rvm.io | bash -source $HOME/.rvm/scripts/rvm -rvm install 3.3 -rvm use 3.3 --default npm install -g @shopify/cli @shopify/theme + +# Open login to nextcloud in firefox +# echo -e "\n\n\nNextCloud Login Setup\n\n\n" +# flatpak run org.mozilla.firefox 'https://cloud.wish.moe' & +# echo "Generate a nextcloud token and paste here when ready:" +# read -r NEXTCLOUD_TOKEN \ No newline at end of file diff --git a/dotenv_fedora.sh b/dotenv_fedora.sh deleted file mode 100755 index 9f21560..0000000 --- a/dotenv_fedora.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/bash - -# Packages -sudo dnf install -y \ - git \ - vim \ - steam-devices \ - nvim - -# Install programs using flatpak -echo -e "\n\n\nInstalling FlatPak Desktop Programs\n\n\n" -flatpak install \ - flathub \ - com.usebottles.bottles \ - com.valvesoftware.Steam \ - com.bitwarden.desktop \ - com.discordapp.Discord \ - com.obsproject.Studio \ - org.libretro.RetroArch \ - org.qbittorrent.qBittorrent \ - org.filezillaproject.Filezilla \ - com.github.taiko2k.tauonmb \ - org.kde.knights \ - org.kde.kmines \ - org.kde.ksudoku \ - org.kde.kpat \ - fr.handbrake.ghb \ - org.audacityteam.Audacity \ - org.blender.Blender \ - org.mapeditor.Tiled \ - org.libreoffice.LibreOffice \ - org.kde.kalk \ - com.nextcloud.desktopclient.nextcloud \ - org.kde.kdenlive \ - com.github.tchx84.Flatseal \ - io.dbeaver.DBeaverCommunity \ - com.unity.UnityHub \ - com.github.k4zmu2a.spacecadetpinball \ - org.prismlauncher.PrismLauncher \ - net.rpcs3.RPCS3 \ - org.yuzu_emu.yuzu \ - info.cemu.Cemu \ - org.DolphinEmu.dolphin-emu \ - io.github.lime3ds.Lime3DS \ - org.kde.ksudoku \ - org.kde.krita \ - com.google.Chrome \ - dev.goats.xivlauncher \ - org.mozilla.Thunderbird \ - io.github.MakovWait.Godots \ - org.luanti.luanti \ - org.musicbrainz.Picard \ - rocks.shy.VacuumTube \ - io.openrct2.OpenRCT2 \ - com.pokemmo.PokeMMO \ - org.kartkrew.RingRacers \ - net.shadps4.shadPS4 \ - app.organicmaps.desktop \ - com.bambulab.BambuStudio \ - org.azahar_emu.Azahar \ - com.felipekinoshita.Kana \ - org.kde.kblocks \ - tv.plex.PlexHTPC \ - net.kuribo64.melonDS \ - org.kde.isoimagewriter \ - org.kde.kamoso \ - --assumeyes - -# VS Code -sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc -sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' -dnf check-update -sudo dnf install code - -# Docker -sudo dnf install dnf-plugins-core -sudo dnf config-manager addrepo --from-repofile="https://download.docker.com/linux/fedora/docker-ce.repo" -sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose -sudo systemctl start docker - -# PIA -echo -e "\n\n\nInstalling Private Internet Access\n\n\n" -if ! command -v piactl &> /dev/null -then - wget https://installers.privateinternetaccess.com/download/pia-linux-3.5.7-08120.run -O ~/Downloads/pia.run - chmod +x ~/Downloads/pia.run - mkdir -p ~/.config/privateinternetaccess - cp ./configs/pia-settings.json ~/.config/privateinternetaccess/clientsettings.json - ~/Downloads/pia.run - rm ~/Downloads/pia.run -fi - -# Ollama -curl -fsSL https://ollama.com/install.sh | sh - -# Node JS / NVM -echo -e "\n\n\nNodeJS\n\n\n" -if ! command -v nvm &> /dev/null -then - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash - NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" -fi - -nvm install --lts -npm i -g yarn - -# VIM -echo -e "\n\n\nVIM\n\n\n" -echo "alias vim='nvim'" >> ~/.bashrc -z -sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' -cp ./configs/vimrc-plugins ~/.config/nvim/init.vim -nvim +"PlugInstall --sync" +qa -cat ./configs/vimrc-config >> ~/.config/nvim/init.vim - -# Git Config -git config --global user.name Dominic Masters -git config --global user.email dominic@domsplace.com -git config --global credential.helper store - -# Iosevka font -sudo dnf copr enable peterwu/iosevka -y -sudo dnf install iosevka-fonts -y - -# Shopify stuff -# curl -sSL https://get.rvm.io | bash -# source $HOME/.rvm/scripts/rvm -# rvm install 3.7.5 -# rvm use 3.7.5 --default -npm install -g @shopify/cli @shopify/theme diff --git a/g14.sh b/g14.sh deleted file mode 100755 index f0c5f04..0000000 --- a/g14.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# Disable running as root. -if [[ "$EUID" -eq 0 ]]; then - echo "Please do not run as root" - exit 1 -fi - -if grep -q 'g14' "/etc/pacman.conf"; then - echo 'Pacman already contains G14 repo, skipping' -else - sudo pacman-key --recv-keys 8F654886F17D497FEFE3DB448B15A6B0E9A3FA35 - sudo pacman-key --finger 8F654886F17D497FEFE3DB448B15A6B0E9A3FA35 - sudo pacman-key --lsign-key 8F654886F17D497FEFE3DB448B15A6B0E9A3FA35 - sudo pacman-key --finger 8F654886F17D497FEFE3DB448B15A6B0E9A3FA35 - - wget "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8b15a6b0e9a3fa35" -O g14.sec - sudo pacman-key -a g14.sec - - echo '[g14]' | sudo tee -a /etc/pacman.conf - echo 'Server = https://arch.asus-linux.org' | sudo tee -a /etc/pacman.conf -fi - -sudo pacman -Syuu -sudo pacman -S -q --noconfirm asusctl supergfxctl rog-control-center -sudo systemctl enable --now power-profiles-daemon.service -sudo systemctl enable --now supergfxd \ No newline at end of file diff --git a/testing.sh b/testing.sh deleted file mode 100755 index cc1f786..0000000 --- a/testing.sh +++ /dev/null @@ -1 +0,0 @@ -#!/bin/bash \ No newline at end of file