Created
May 13, 2019 01:34
-
-
Save ricosharp/7d4ce9e70f7b3d614ba2a7f54b9edb29 to your computer and use it in GitHub Desktop.
Post install Fedora 30 customizations
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
#!/bin/bash | |
echo "Enter the hostname:" | |
read HOSTNAME | |
hostnamectl set-hostname $HOSTNAME | |
# Download any updates | |
dnf upgrade -y | |
##### Install Additional Software ##### | |
## GCC Compiler | |
dnf install -y gcc | |
## Google Chrome | |
dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | |
## Virtual Machine Manager | |
dnf install -y virt-manager | |
## Vi-IMproved (vim) | |
dnf install -y vim-enhanced | |
## Visual Studio 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 | |
dnf install -y code | |
# Install GNS3. Currently broken in official repos. Using updates-testing repo which is working. under newer version | |
dnf install -y --enablerepo updates-testing gns3-server gns3-gui | |
# Install GNOME Tweaks | |
dnf install -y gnome-tweaks | |
####################################### | |
# Install dbus-x11 required for following gsettings commands | |
dnf install dbus-x11 -y | |
# Add minimize and maximize buttons | |
sudo -u $USERNAME gsettings set org.gnome.desktop.wm.preferences button-layout appmenu:minimize,maximize,close | |
# Make vi command use vim. This only takes effect after a reboot - need to fix this. | |
echo alias vi=vim >> /$HOME/.bashrc | |
# Customize Dash with preferred applications. This only takes effect after a reboot - need to fix this. | |
sudo -u $USERNAME gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', 'google-chrome.desktop', 'org.gnome.Terminal.desktop', 'code.desktop', 'virt-manager.desktop', 'gns3-gui.desktop', 'org.gnome.Screenshot.desktop', 'org.gnome.gedit.desktop']" | |
# Reboot system | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment