Skip to content

Instantly share code, notes, and snippets.

@tosin2013
Last active November 30, 2023 15:57
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
curl 'https://vim-bootstrap.com/generate.vim' --data 'editor=vim&langs=javascript&langs=go&langs=html&langs=ruby&langs=python' > ~/.vimrc
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