Skip to content

Instantly share code, notes, and snippets.

View gmgale's full-sized avatar

George Gale gmgale

  • Slovenia
View GitHub Profile
@sr-tamim
sr-tamim / Linux-server-setup-script.md
Last active March 24, 2026 20:11
A bash script which automates the initial setup process for a new Linux server

Linux Server Setup Script

This script automates the initial setup process for a new Linux server, focusing on basic security and maintenance tasks. It is designed to save time and ensure consistency when configuring multiple servers.

Why Use This Script?

Manually setting up a Linux server can be time-consuming and prone to errors. This script automates the essential steps, ensuring that your server is configured securely and efficiently. It covers:

  1. Updating and upgrading system packages
  2. Creating a new user and granting sudo privileges