schm1d / AwesomeArchLinux

A collection of my shell scripts with hardened Arch Linux configuration, security tweaks and more.
MIT License
19 stars 6 forks source link

Arch Linux Secure AF Wallpaper: https://www.reddit.com/user/alienpirate5/

Awesome Arch Linux

A collection of shell scripts for hardened Arch Linux installation, configuration, and security enhancements. The aim is to make this repository a reliable and curated reference for Arch Linux hardened installation setups and configurations.

The encryption method used in the installation script is LVM on LUKS with encrypted boot partition (Full disk encryption (GRUB) for UEFI systems).

The script will prepare everything for you. No need to worry about partitioning or the encryption process. It will also configure GRUB to use the encryption keys. All you have to do is change the variable values according to your system, provide a password to encrypt the disk and specify the username and hostname. If you are using NVIDIA GPUs, the script will also install the appropriate drivers. 🙂

You will get a very clean, solid, and secure base installation.

Features

Installation

First, download the Arch Linux ISO here.

Method 1

Boot the media on the target device where you want to install Arch Linux.

If Git is not installed, you can install it with:

pacman -Sy git

Then, on the live system, do the following:

git clone https://github.com/schm1d/AwesomeArchLinux.git
cd AwesomeArchLinux/base
chmod +x *.sh
./archinstall.sh

Method 2

Boot the media on the target device where you want to install Arch Linux.

Download the scripts on another machine and copy them to a removable media (e.g., USB drive).

To run the base scripts on your target machine, all you need to do is:

  1. Copy both archinstall.sh and chroot.sh to the same directory on the live system.

  2. Make them executable:

    chmod +x archinstall.sh chroot.sh
  3. Run archinstall.sh:

    ./archinstall.sh

Hardening Techniques Implemented

Full Disk Encryption

Secure Boot Configuration

PAM Configuration

Password Policies

Account Lockout Policies

Firewall Configuration

Service Hardening

System Auditing and Monitoring

Kernel Hardening

File System Permissions

SSH and Network Security

Disabling Unnecessary Protocols and Services

Additional Security Enhancements

Customization

Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve the scripts, add new features, or enhance the documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Note: Arch Linux is a highly customizable, lightweight, and rolling-release distribution suitable for experienced users who want complete control over their system. These scripts aim to automate the installation and hardening process, but reviewing and understanding the configurations is essential to ensure they meet your security requirements.