From 87cc52e8a302e9cc8728bff647bcb55e02603797 Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Tue, 13 Jul 2021 09:20:02 -0400 Subject: [PATCH] Add Readme, cleanup gnome packages, add wifi credentials --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ firstboot.sh | 2 +- input.cfg | 5 +++++ passwd.cfg | 1 + 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..67ab96f --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ + +# CLC Debian + +A preseed file and simple server to configure a Debian 10 installation. + + +## Usage/Examples + +1. Copy the passwd cfg file to .passwd.cfg. + +```bash +cp passwd.cfg .passwd.cfg +``` + +2. Edit the .passwd.cfg file with crypt(3) hashes for the root and user passwords + +EX. +```bash +mkpasswd NotARealPassword + +#OUTPUT +12E0SEasyb0vk + +#.passwd.cfg +roothash=12E0SEasyb0vk +userhash=12E0SEasyb0vk +``` + +3. Run the preseedserver.sh file + +This requires root to put the python http server on port 80 + +```bash +sudo ./preseedserver.sh +``` + +4. Run the Debian installer on your target system and point the auto installer to http://YOURSERVERIP/preseed.cfg + diff --git a/firstboot.sh b/firstboot.sh index 846d0a7..df7d5e0 100644 --- a/firstboot.sh +++ b/firstboot.sh @@ -11,7 +11,7 @@ doasuser () { echo "Cleaning up default Gnome Install." #clean up gnome things -apt purge -y gnome-games xterm +apt purge -y gnome-games xterm gnome-documents gnome-todo gnome-music gnome-maps rhythmbox totem apt autoremove -y echo "Installing base applications." diff --git a/input.cfg b/input.cfg index d4ba088..e9763e8 100644 --- a/input.cfg +++ b/input.cfg @@ -30,6 +30,11 @@ d-i netcfg/wireless_wep string # change to false to disable asking. d-i hw-detect/load_firmware boolean true +### Wifi settings +d-i netcfg/wireless_essid CLC-Guest +d-i netcfg/wireless_security_type wpa +d-i netcfg/wireless_wpa OneChurch! + ### Mirror settings # If you select ftp, the mirror/country string does not need to be set. #d-i mirror/protocol string ftp diff --git a/passwd.cfg b/passwd.cfg index 053a087..b079292 100644 --- a/passwd.cfg +++ b/passwd.cfg @@ -1,3 +1,4 @@ #EXAMPLE PASSWD config file +#rename to .passwd.cfg and add a crypt(3) hash password rootpassword=notarealpassword userpasswort=12345 \ No newline at end of file