Tools Templates
Implementing DevOps principles to streamline development and operations.
Implementing DevOps principles to streamline development and operations.
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
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
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
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>