2022-12-07 14:24:20 -07:00
|
|
|
#!/bin/bash
|
|
|
|
########################
|
2022-12-10 19:45:07 -07:00
|
|
|
# What this script is:
|
|
|
|
#
|
2023-07-15 21:22:27 -06:00
|
|
|
# An automatic installer for Debian Stable with the following features:
|
|
|
|
# 1. BTRFS with Grub Snapshots
|
|
|
|
# 2. Full-disk-encryption
|
|
|
|
# 3. Hibernation
|
|
|
|
# 4. GNOME or KDE Desktop
|
|
|
|
# 5. The ability to build a custom and deployable image onto any machine
|
|
|
|
# 6. Easily create a bootable USB drive
|
|
|
|
# 7. Automatic Partitioning
|
|
|
|
# 8. Bypass entering encrypted disk password at boot time if desired
|
2022-12-10 19:45:07 -07:00
|
|
|
#
|
2023-02-14 16:29:59 -07:00
|
|
|
# INSTRUCTIONS
|
2022-12-10 19:45:07 -07:00
|
|
|
#
|
2023-05-07 21:21:17 -06:00
|
|
|
# For new disk installs, initialize the disk to setup Encryption and partitions from the main menu.
|
2022-12-08 08:26:11 -07:00
|
|
|
#
|
2023-05-07 21:21:17 -06:00
|
|
|
# Before running the install, ensure that you have Internet access.
|
2022-12-09 09:49:37 -07:00
|
|
|
#
|
2023-05-07 21:21:17 -06:00
|
|
|
# Please be sure to change USER,USER_PASSWORD,DISK_PASSWORD, and ROOT_PASSWORD strings in this file
|
2022-12-08 08:26:11 -07:00
|
|
|
#
|
2023-05-07 21:21:17 -06:00
|
|
|
# To install a new OS to a disk, run debian.sh and choose option 1 from the main menu
|
2023-02-14 16:29:59 -07:00
|
|
|
#
|
2022-12-08 08:26:11 -07:00
|
|
|
########################
|
2022-12-07 14:24:20 -07:00
|
|
|
#Configure this section
|
|
|
|
########################
|
2022-12-07 20:05:53 -07:00
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
2022-12-07 22:12:26 -07:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2023-07-16 13:57:08 -06:00
|
|
|
TARGET='/install'
|
|
|
|
mkdir $TARGET
|
2022-12-07 14:24:20 -07:00
|
|
|
######################################
|
|
|
|
echo
|
2022-12-07 16:15:01 -07:00
|
|
|
HARD_DISK=$2
|
2022-12-07 14:24:20 -07:00
|
|
|
######################################
|
2023-05-07 21:21:17 -06:00
|
|
|
USER="user"
|
2022-12-07 14:24:20 -07:00
|
|
|
USER_PASSWORD="123456"
|
|
|
|
ROOT_PASSWORD="123456"
|
2023-02-10 14:54:48 -07:00
|
|
|
WIRELESS_PASSWORD='123456'
|
2023-05-08 08:04:15 -06:00
|
|
|
SSID='wifi'
|
2022-12-07 14:24:20 -07:00
|
|
|
WIRELESS_INTERFACE='wlan0'
|
2023-07-16 22:21:01 -06:00
|
|
|
DISK_PASSWORD='123456'
|
2023-07-16 19:59:04 -06:00
|
|
|
COMPRESSION='compress=zstd:10'
|
2023-02-09 10:40:38 -07:00
|
|
|
AUTO_DECRYPT='True'
|
2023-07-31 15:49:47 -06:00
|
|
|
FLATPAKS+=(io.exodus.Exodus)
|
2023-07-31 18:43:02 -06:00
|
|
|
DESKTOP="KDE"
|
2022-12-07 14:24:20 -07:00
|
|
|
|
|
|
|
#Packages
|
2023-08-02 17:04:12 -06:00
|
|
|
:x
|