Skip to content

Instantly share code, notes, and snippets.

View ryza-dytalabs-io's full-sized avatar

ryza-dytalabs-io

View GitHub Profile
@ryza-dytalabs-io
ryza-dytalabs-io / ubuntu-build.sh
Last active April 4, 2025 19:31
secure installation of ubuntu
#!/bin/bash
# Ubuntu Installation Script with LUKS-encrypted BTRFS, systemd-boot, and Secure Boot
# Author: Claude (modified and improved with apt speed enhancements)
# Usage: sudo bash script.sh [install_device] [username] [hostname] [locale] [language] [timezone]
# Passwords can be provided via environment or will be prompted securely.
set -euo pipefail
# Log file for the installation process
LOGFILE="/var/log/ubuntu_install_script.log"