Skip to content

Avnish-web/Linux-Scripts

Repository files navigation

Linux-Scripts

A collection of versatile Bash scripts designed to automate and streamline various Linux system administration tasks, including AWS infrastructure provisioning, user management, and web server deployment.

πŸ“‚ Repository Contents

  • AWScli_KP_SG_EC2-Terraform-userdata_NGINX-userdata(Full_Automation).sh: Automates the setup of AWS CLI, EC2 instances, Terraform, and NGINX with user data.
  • User_Management_system.sh: Facilitates the creation, deletion, and management of user accounts on Linux systems.

βš™οΈ Prerequisites

Ensure the following are installed on your system:

  • Linux-based OS (Ubuntu/Debian/CentOS recommended)
  • Bash Shell (default on most Linux distributions)
  • AWS CLI (for AWS-related scripts)
  • Terraform (for infrastructure provisioning)
  • curl (for downloading scripts and packages)

πŸš€ Usage

1. Clone the Repository

git clone https://github.com/Avnish-web/Linux-Scripts.git
cd Linux-Scripts

2. Execute a Script

chmod +x <script_name>.sh
./<script_name>.sh

3. Follow On-Screen Prompts

Each script provides interactive prompts to guide you through the process.

πŸ› οΈ Script Details

AWScli_KP_SG_EC2-Terraform-userdata_NGINX-userdata(Full_Automation).sh

Automates the following tasks:

  • Installs AWS CLI if not already installed.
  • Creates an AWS EC2 key pair.
  • Sets up a security group with SSH and HTTP access.
  • Launches an EC2 instance with Terraform.
  • Configures NGINX with a custom user data script.

User_Management_system.sh

Simplifies user account management:

  • Create new users with optional SSH keys.
  • Delete existing users.
  • Modify user details like home directory and shell.
  • List all system users.

πŸ” Security Considerations

  • Always review scripts before execution.
  • Ensure proper permissions are set on sensitive files.
  • Use SSH keys for secure authentication.

πŸ“¬ Contact

For issues or contributions, please open an issue or submit a pull request. For direct communication, email com.avnish@gmail.com.

About

Linux Scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages