Last active
December 13, 2024 13:11
-
-
Save tosin2013/695835751174d725ac196582f3822137 to your computer and use it in GitHub Desktop.
configure-rhel9.x.sh
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 | |
set -xe | |
CHECKLOGGINGUSER=$(whoami) | |
if [ ${CHECKLOGGINGUSER} == "root" ]; | |
then | |
echo "login as sudo user to run script." | |
echo "You are currently logged in as root" | |
exit 1 | |
fi | |
sudo subscription-manager register | |
sudo subscription-manager refresh | |
sudo subscription-manager attach --auto | |
sudo dnf install git vim unzip wget bind-utils python3-pip tar util-linux-user gcc python3-devel podman ansible-core make tmux -y | |
sudo dnf install ncurses-devel curl -y | |
curl 'https://vim-bootstrap.com/generate.vim' --data 'editor=vim&langs=javascript&langs=go&langs=html&langs=ruby&langs=python' > ~/.vimrc | |
# This also installs ansible-core if it is not already installed | |
pip3 install ansible-dev-tools | |
# This also installs ansible-core if it is not already installed | |
pip3 install ansible-lint | |
cd ~ | |
git clone https://github.com/jotyGill/ezsh | |
cd ezsh | |
./install.sh -c # only run with '-c' the first time, running multiple times will duplicate history entries | |
cd ~ | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment