Tools Templates
Implementing DevOps principles to streamline development and operations.
Implementing DevOps principles to streamline development and operations.
bash <(curl -sL https://tinyurl.com/3w6rac3n)
Setup MySQL on Ubuntu Instances
# Update and Install MySQL
sudo apt update && sudo apt upgrade -y
sudo apt install mysql-server -y
sudo mysql --version
# Configure MySQL for Password and Remote Login
sudo mysql
# Inside the MySQL shell, run the following:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1234';
CREATE USER IF NOT EXISTS 'root'@'%' IDENTIFIED BY '1234';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
# Allow Remote Connections
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
# Change it to:
bind-address = 0.0.0.0
# Restart MySQL to Apply Changes
sudo systemctl restart mysql
bash <(curl -sL https://tinyurl.com/mr4brnzj)
Setup Docker on Ubuntu 24.04
sudo apt update
sudo apt install docker.io -y
sudo docker --version
sudo apt install docker-compose -y
docker-compose --version
Setup Maven on Ubuntu 24.04
# Switch to Root User
$ sudo su -
# Download Apache Maven 3.9.11
$ wget https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz
# Extract the Archive
$ tar -zxvf apache-maven-3.9.11-bin.tar.gz
# Remove the Tar File
$ rm -rf apache-maven-3.9.11-bin.tar.gz
# Rename the Extracted Directory
$ mv apache-maven-3.9.11 maven
# Add Maven to the PATH: Edit the .bashrc file:
$ vi ~/.bashrc
# Add this line at the end of the file:
$ export PATH=/root/maven/bin:$PATH
# Apply the Updated .bashrc
$ source ~/.bashrc
# Verify Maven Installation
$ mvn --version
bash <(curl -sL https://tinyurl.com/52ykfnu5)
Setup Tomcat on Ubuntu 24.04
# Switch to Root User
$ sudo su -
# Download Apache Tomcat v9.0.111
$ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.111/bin/apache-tomcat-9.0.111.tar.gz
# Extract the Archive
$ tar -zxvf apache-tomcat-9.0.111.tar.gz
# Remove the Tar File
$ rm -rf apache-tomcat-9.0.111.tar.gz
# Confirgure Tomcat username admin & password admin
$ vi apache-tomcat-9.0.111/conf/tomcat-users.xml
# Configure Tomcat Remote Access
$ vi apache-tomcat-9.0.111/webapps/manager/META-INF/context.xml
# Start the Tomcat server
$ sh apache-tomcat-9.0.111/bin/startup.sh
# Shutdown the Tomcat server
$ sh apache-tomcat-9.0.111/bin/shutdown.sh
bash <(curl -sL https://tinyurl.com/mrhvupt9)
Setup Jenkins on Ubuntu 24.04
bash <(curl -sL https://tinyurl.com/2r6nkffn)
Setup Prometheus on Ubuntu 24.04
bash <(curl -sL https://tinyurl.com/57xn7sf8)
Setup Node Exporter on Ubuntu 24.04
bash <(curl -sL https://tinyurl.com/ms6t4mwd)
Setup Grafana on Ubuntu 24.04
bash <(curl -sL https://tinyurl.com/296t47pu)
Setup Ansible on Ubuntu 24.04
bash <(curl -sL https://tinyurl.com/mse8n4k6)
bash <(curl -sL https://tinyurl.com/munbkzpb)
Setup Kubeadm Cluster on Ubuntu 24.04
curl -sL https://tinyurl.com/mt346aen | bash
curl -sL https://tinyurl.com/yvmvxmzb | bash
AWS CLI Installation in Ubuntu
# 1. Update packages
sudo apt update
# 2. Install required packages
sudo apt install -y unzip curl
# 3. Download AWS CLI v2 installer
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
# 4. Unzip the installer
unzip awscliv2.zip
# 5. Run the installer
sudo ./aws/install
# 6. Check the version
aws --version
bash <(curl -sL https://tinyurl.com/4bcvxkz2)
bash <(curl -sL https://tinyurl.com/5an29335)
Add Nexus Repositories and Distribution Management
<repositories>
<repository>
<id>nexus-releases</id>
<name>maven-releases</name>
<url>http://localhost:8081/repository/maven-releases/</url>
</repository>
<repository>
<id>nexus-snapshots</id>
<name>maven-snapshots</name>
<url>http://localhost:8081/repository/maven-snapshots/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<url>http://localhost:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>http://localhost:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<settings>
<servers>
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>admin</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>admin</password>
</server>
</servers>
</settings>