Compare commits
3
Commits
ad7b7077bb
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
662b519193 | ||
|
|
484fdcf94d | ||
|
|
919deeb191 |
No files matched your search
@@ -0,0 +1,51 @@
|
||||
## Added
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string US
|
||||
d-i debian-installer/locale string en_US.UTF-8
|
||||
d-i localechooser/shortlist select US
|
||||
d-i localechooser/preferred-locale select en_US.UTF-8
|
||||
d-i localechooser/languagelist select en
|
||||
d-i keyboard-configuration/xkb-keymap select us
|
||||
|
||||
# %Loading additional Components%
|
||||
|
||||
d-i netcfg/choose_interface select auto
|
||||
# To pick a particular interface instead:
|
||||
#d-i netcfg/choose_interface select eth1
|
||||
# TODO: Setup WPA
|
||||
d-i netcfg/get_hostname string lindsay
|
||||
d-i netcfg/get_domain string hacdc.org
|
||||
d-i netcfg/wireless_wep string
|
||||
|
||||
d-i mirror/country string manual
|
||||
d-i mirror/http/hostname string http.kali.org
|
||||
d-i mirror/http/directory string /kali
|
||||
d-i mirror/http/proxy string
|
||||
|
||||
d-i passwd/user-fullname string hacdc
|
||||
d-i passwd/username string hacdc
|
||||
d-i passwd/user-password password HDCPW
|
||||
d-i passwd/user-password-again password HDCPW
|
||||
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string US/Eastern
|
||||
d-i clock-setup/ntp boolean true
|
||||
|
||||
d-i partman-auto/method string lvm
|
||||
d-i partman-auto-lvm/guided_size string max
|
||||
d-i partman-auto/choose_recipe select atomic
|
||||
d-i partman-partitioning/confirm_write_new_label boolean true
|
||||
cryptsetup-nuke-password cryptsetup-nuke-password/password HDCPW
|
||||
cryptsetup-nuke-password cryptsetup-nuke-password/password-again HDCPW
|
||||
d-i partman/choose_partition select finish
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
d-i partman-md/confirm boolean true
|
||||
|
||||
tasksel tasksel/first multiselect standard,core,desktop-xfce,meta-default
|
||||
|
||||
d-i grub-installer/only_debian boolean true
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
d-i grub-installer/bootdev string /dev/sda
|
||||
|
||||
d-i finish-install/reboot_in_progress note
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
read -p "HacDC Password: " HCD_PASSWORD
|
||||
cp blank_preseed.cfg preseed.cfg
|
||||
sed -i "s/HDCPW/$HCD_PASSWORD/g" preseed.cfg
|
||||
python3 -m http.server 1337
|
||||
+17
-10
@@ -15,6 +15,9 @@ if [ "$(id -u)" -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#Default repo hits load balancer backend error, so we manually replace it
|
||||
sed -i 's/http:\/\/http\.kali\.org\/kali/https:\/\/kali.mirror.rafal.ca\/kali/g'
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export NEEDRESTART_MODE=a
|
||||
|
||||
@@ -33,18 +36,19 @@ apt-get install -yqm "$PACKAGE_LIST"
|
||||
|
||||
apt autoremove -y
|
||||
|
||||
cat ${HDOS_ROOT}/dotfiles/rc_addition >> /home/hacdc/.zshrc
|
||||
cat ${HDOS_ROOT}/dotfiles/rc_addition >>/home/hacdc/.zshrc
|
||||
groupadd --gid 1900 classroom
|
||||
usermod -aG classroom hacdc
|
||||
useradd -m -s /usr/bin/zsh -G dialout,cdrom,floppy,audio,video,wireshark,classroom guest
|
||||
cp /home/hacdc/.zshrc /home/guest/.zshrc
|
||||
chown guest:guest /home/guest/.zshrc
|
||||
|
||||
sudo -u hacdc curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
|
||||
sudo -u hacdc curl -fsSL https://pyenv.run | bash
|
||||
|
||||
sudo -u guest curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
|
||||
sudo -u guest curl -fsSL https://pyenv.run | bash
|
||||
echo "guest:h4cdch4cdch4cdc" | chpasswd
|
||||
# TODO: fix this to actually run as each user
|
||||
# sudo -u hacdc curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
|
||||
# sudo -u hacdc curl -fsSL https://pyenv.run | bash
|
||||
#
|
||||
# sudo -u guest curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
|
||||
# sudo -u guest curl -fsSL https://pyenv.run | bash
|
||||
|
||||
# Generate GPG framework
|
||||
sudo -u hacdc gpg --list-keys
|
||||
@@ -58,15 +62,15 @@ flatpak update -y
|
||||
|
||||
while read P; do
|
||||
flatpak install -y --noninteractive "$P"
|
||||
done < ${HDOS_ROOT}/lists/flatpak-packages
|
||||
done <${HDOS_ROOT}/lists/flatpak-packages
|
||||
|
||||
# Setup Shared Directory
|
||||
SHARED_DIR=/mnt/gibson
|
||||
if [ ! -d ${SHARED_DIR} ]; then
|
||||
mkdir -p ${SHARED_DIR}
|
||||
cat ${HDOS_ROOT}/dotfiles/gibson > /etc/gibson
|
||||
cat ${HDOS_ROOT}/dotfiles/gibson >/etc/gibson
|
||||
chmod 600 /etc/gibson
|
||||
cat ${HDOS_ROOT}/dotfiles/fstab >> /etc/fstab
|
||||
cat ${HDOS_ROOT}/dotfiles/fstab >>/etc/fstab
|
||||
chmod 766 ${SHARED_DIR}
|
||||
sed -i "s/password=/password=${GIBSON_PASS}/" /etc/gibson
|
||||
systemctl daemon-reload
|
||||
@@ -81,9 +85,12 @@ fi
|
||||
# Set login wallpaper
|
||||
cp ${HDOS_ROOT}/dotfiles/htown.png /usr/share/backgrounds/htown.png
|
||||
chmod 755 /usr/share/backgrounds/htown.png
|
||||
# TODO: Change this to lightdm
|
||||
sed -i 's/^background=.*$/background=\/usr\/share\/backgrounds\/htown.png/' /usr/share/sddm/themes/*/theme.conf.user
|
||||
rm /usr/share/backgrounds/kali-16x9/default
|
||||
ln -s /usr/share/backgrounds/htown.png /usr/share/backgrounds/kali-16x9/default
|
||||
# Didn't change it for hacdc login
|
||||
# worked for guest
|
||||
|
||||
mksquashfs /home/guest ${HDOS_ROOT}/guest.sqfs
|
||||
cp ${HDOS_ROOT}/scripts/restore-home /usr/sbin/restore-home
|
||||
|
||||
Reference in new issue
Block a user