Skip to content

Instantly share code, notes, and snippets.

@tosin2013
Last active June 30, 2026 15:04
Show Gist options
  • Select an option

  • Save tosin2013/e226c3f335ae587ad969cbce9d89e776 to your computer and use it in GitHub Desktop.

Select an option

Save tosin2013/e226c3f335ae587ad969cbce9d89e776 to your computer and use it in GitHub Desktop.
configure-centos10.x.sh
#!/bin/bash
source /etc/os-release
OS_ID="${ID:-unknown}"
OS_VERSION="${VERSION_ID%%.*}"
sudo dnf install -y bash tar gzip which coreutils findutils xz procps glibc libstdc++ libatomic
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
sudo dnf install 'dnf-command(config-manager)'
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh --repo gh-cli -y
sudo dnf install -y gcc-c++ make python3-devel
cd $HOME
git clone https://github.com/tosin2013/mcp-adr-analysis-server.git
git clone https://github.com/tosin2013/documcp.git
cd $HOME/mcp-adr-analysis-server
npm install
npm run build
cd $HOME/documcp
npm install
npm run build
cd $HOME
curl -OL https://raw.githubusercontent.com/tosin2013/openshift-4-deployment-notes/master/pre-steps/configure-openshift-packages.sh
chmod +x configure-openshift-packages.sh
./configure-openshift-packages.sh -i
sudo tee /etc/yum.repos.d/google-cloud-sdk.repo <<EOF
[google-cloud-sdk]
name=Google Cloud SDK
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el9-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
sudo dnf install google-cloud-cli -y
curl -OL https://gist.githubusercontent.com/tosin2013/3d53e4ab3f9d090174fb2f8e2dc9ca2f/raw/ff9962345e4e36b9a9337fce119d1f7afba2ff81/configure-aws-cli.sh
chmod +x configure-aws-cli.sh
./configure-aws-cli.sh -h
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-4
chmod 700 get_helm.sh
./get_helm.sh
sudo chmod 755 /usr/local/bin/helm
if [[ "$OS_VERSION" == "10" && ( "$OS_ID" == "rhel" || "$OS_ID" == "centos" || "$OS_ID" == "centos-stream" ) ]]; then
echo "Detected ${PRETTY_NAME}. Running CentOS/RHEL 10 PMB setup..."
if ! command -v curl >/dev/null 2>&1; then
sudo dnf install -y curl
fi
curl -OL https://gist.githubusercontent.com/tosin2013/cddf61d19cb1bca8c44e0e9eeaa4502c/raw/62ab8c3568a7ec121499a69073166f0cdacec5b4/pmb_centos10_setup.sh
chmod +x pmb_centos10_setup.sh
sudo ./pmb_centos10_setup.sh
exit 0
fi
#curl -OL https://raw.githubusercontent.com/tosin2013/openshift-demos/master/quick-scripts/deploy-gitea.sh
#chmod +x deploy-gitea.sh
#./deploy-gitea.sh
@tosin2013

tosin2013 commented Jun 5, 2026

Copy link
Copy Markdown
Author
https://gist.githubusercontent.com/tosin2013/e226c3f335ae587ad969cbce9d89e776/raw/7841eae897c223f7234301c016c89807e8393a73/configure-centos10.x.sh
chmod +x configure-centos10.x.sh
./configure-centos10.x.sh

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