Skip to content

Instantly share code, notes, and snippets.

@tosin2013
Last active June 18, 2025 16:31
Show Gist options
  • Save tosin2013/695835751174d725ac196582f3822137 to your computer and use it in GitHub Desktop.
Save tosin2013/695835751174d725ac196582f3822137 to your computer and use it in GitHub Desktop.
configure-rhel9.x.sh
#!/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
sudo dnf module list nodejs
sudo dnf module enable nodejs:20 -y
sudo dnf install -y nodejs
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 .
@tosin2013
Copy link
Author

tosin2013 commented May 2, 2025

http://gist.githubusercontent.com/tosin2013/695835751174d725ac196582f3822137/raw/f59ef5187e74f7a23a94613c1366dbe983dac7e6/configure-rhel9.x.sh
chmod +x configure-rhel9.x.sh
./configure-rhel9.x.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment