Last active
July 29, 2019 13:37
-
-
Save s1carii/bc33f33e8e96f343435e2a227d93d0e2 to your computer and use it in GitHub Desktop.
Fedora Environment Setup From Minimal Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Initial setup of new Fedora installation | |
# Check for root | |
if ! [ $(id -u) = 0 ]; then echo "Error: This script must be run with sudo or as root."; exit 1; fi | |
# Minimal KDE environment packages modified from https://github.com/Zer0CoolX/Fedora-KDE-Minimal-Install-Guide/blob/master/fedora-kde-min-packages.sh on 5/11/19 | |
KDE=( | |
NetworkManager-config-connectivity-fedora | |
adwaita-gtk2-theme | |
bluedevil | |
breeze-icon-theme | |
cagibi | |
colord-kde | |
cups-pk-helper | |
dolphin | |
firewall-config | |
glibc-all-langpacks | |
gnome-keyring-pam | |
kcm_systemd | |
kde-gtk-config | |
kde-partitionmanager | |
kde-print-manager | |
kde-settings-pulseaudio | |
kde-style-breeze | |
kdegraphics-thumbnailers | |
kdeplasma-addons | |
kdialog | |
kdnssd | |
kf5-akonadi-server | |
kf5-akonadi-server-mysql | |
kf5-baloo-file | |
kf5-kipi-plugins | |
khotkeys kinfocenter | |
kmenuedit | |
konsole5 | |
kscreen | |
kscreenlocker | |
ksshaskpass | |
ksysguard | |
kwalletmanager5 | |
kwebkitpart | |
kwin | |
pam-kwallet | |
phonon-qt5-backend-gstreamer | |
pinentry-qt | |
plasma-breeze | |
plasma-desktop | |
plasma-desktop-doc | |
plasma-drkonqi | |
plasma-nm | |
plasma-nm-l2tp | |
plasma-nm-openconnect | |
plasma-nm-openswan | |
plasma-nm-openvpn | |
plasma-nm-pptp | |
plasma-nm-vpnc | |
plasma-pa | |
plasma-user-manager | |
plasma-workspace | |
plasma-workspace-geolocation | |
polkit-kde | |
qt5-qtbase-gui | |
qt5-qtdeclarative | |
sddm | |
sddm-breeze | |
sddm-kcm | |
sni-qt | |
xorg-x11-drv-libinput | |
setroubleshoot | |
system-config-users | |
system-config-keyboard | |
system-config-language | |
libreoffice | |
@"Hardware Support" | |
@base-x | |
@Fonts | |
@"Common NetworkManager Submodules" | |
) | |
# Other useful things | |
USFL=( | |
vlc | |
gparted | |
remmina | |
firefox | |
usbutils | |
kernel-devel | |
wine | |
pavucontrol | |
) | |
# Install RPM Fusion Repos | |
echo "Installing RPMFusion repos..." | |
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
# Get snapd installed and set the symlink for later VSCode installation | |
echo "Configuring snapd..." | |
sudo dnf install -y snapd | |
sudo ln -s /var/lib/snapd/snap /snap | |
# Install KDE minimal and other useful packages | |
echo "Installing KDE and the like..." | |
sudo dnf install ${KDE[@]} ${USFL[@]} | |
# Install VSCode | |
echo "Trying to get VSCode to work..." | |
sudo snap install code --classic #this has failed in the past, may need to be run after reboot | |
# Setup the graphical interface for login and DE | |
sudo systemctl enable sddm | |
sudo systemctl set-default graphical.target | |
# Update system and reboot | |
sudo dnf update -y | |
echo "Rebooting..." | |
sudo reboot now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment