Compare commits

..
10 Commits
Author SHA1 Message Date
Elizabeth Cray e64cefe4ec NRF Util Install 2026-11-18 01:54:20 +00:00
Elizabeth Cray 4ca62fa9d3 OOps, missed ONE character 2026-11-09 17:24:30 -05:00
Elizabeth Cray 5351ac99f5 Fix pyenv 2026-11-09 17:15:05 -05:00
Elizabeth Cray 860d69bbbe Add flatpak bootstraper 2026-11-09 17:11:04 -05:00
Elizabeth Cray 77fefb0835 Fixed ap install 2026-11-09 16:58:58 -05:00
Elizabeth Cray 1a4c0778bc Fix apt update 2026-11-09 15:53:51 -05:00
Elizabeth Cray dc52b18552 Pyenv 2026-10-30 16:07:51 -04:00
Elizabeth Cray 662b519193 Fix Guest acct 2026-10-24 17:39:13 -04:00
Elizabeth Cray 484fdcf94d Add preseed hosting 2026-10-23 07:54:55 -04:00
Elizabeth Cray 919deeb191 Add preseed hosting 2026-10-23 07:54:54 -04:00
7 changed files with 134 additions and 29 deletions

No files matched your search

+5 -15
View File
@@ -1,6 +1,5 @@
airspy
aisleriot
apt-xapian-index
arduino
autoconf
automake
@@ -14,6 +13,7 @@ bison
bleachbit
build-essential
bzip2
cifs-utils
cmake
cowsay
cubicsdr
@@ -24,8 +24,8 @@ dos2unix
dvb-apps
exiftool
ffmpeg
flatpak
firefox-esr
flatpak
flex
fortune
gawk
@@ -34,7 +34,6 @@ gimp
gimp-data-extras
git
gnome-terminal
gnss-sdr
gnuplot
gnuplot-doc
gnuplot-x11
@@ -42,10 +41,7 @@ gnuradio
gnuradio-doc
gpredict
gqrx-sdr
gr-gsm
gr-osmosdr
gr-radar
gr-radar-doc
gr-satellites
gtkterm
hackrf
@@ -53,6 +49,7 @@ hacktv
hamradio-satellite
horst
htop
hyfetch
imagemagick
imview
inspectrum
@@ -63,7 +60,6 @@ make
meson
mplayer
nautilus
neofetch
ninja-build
octave
octave-arduino
@@ -77,18 +73,14 @@ octave-io
octave-jsonlab
octave-mapping
octave-miscellaneous
octave-missing-functions
octave-nan
octave-plplot
octave-signal
octave-sockets
octave-splines
octave-statistics
octave-strings
octave-symbolic
octave-zenity
osmo-sdr
ostinato
packeth
patch
pcapfix
@@ -96,10 +88,9 @@ pdfgrep
pkg-config
plzip
previsat
pyenv-runtime
python3-all
quisk
rclone
squashfs-tools
rtl-sdr
screen
sed
@@ -109,19 +100,18 @@ soapysdr-module-osmosdr
soapysdr-module-remote
soapysdr-module-rtlsdr
soapysdr-tools
squashfs-tools
stellarium
supertux
supertuxkart
synaptic
tar
tcptrace
teeworlds
texinfo
tmux
tty-solitaire
tvtime
udav
cifs-utils
vlc
vlc-plugin-access-extra
welle.io
+51
View File
@@ -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
+12
View File
@@ -0,0 +1,12 @@
#!/bin/baash
apt install -yqq $(tr '\n' ' ' < /opt/hdos/lists/apt-packages)
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo --system
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo --system
flatpak update -y
while read P; do
flatpak install -y --noninteractive "$P" --system
done <${HDOS_ROOT}/lists/flatpak-packages
reboot
+6
View File
@@ -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
+21 -14
View File
@@ -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' /etc/apt/sources.list.d/kali.sources
export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_MODE=a
@@ -28,23 +31,24 @@ apt update
apt full-upgrade -yqq
PACKAGE_LIST=$(cat ${HDOS_ROOT}/lists/apt-packages)
PACKAGE_LIST=$(tr '\n' ' ' < ${HDOS_ROOT}/lists/apt-packages)
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
@@ -52,21 +56,21 @@ sudo -u guest gpg --list-keys
gpg --list-keys
# Setup Flatpak
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo --system
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo --system
flatpak update -y
while read P; do
flatpak install -y --noninteractive "$P"
done < ${HDOS_ROOT}/lists/flatpak-packages
flatpak install -y --noninteractive "$P" --system
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
+37
View File
@@ -0,0 +1,37 @@
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
cat <<EOF > /lib/udev/rules.d/71-nrf.rules
ACTION!="add", SUBSYSTEM!="usb_device", GOTO="nrf_rules_end"
# Set /dev/bus/usb/*/* as read-write for all users (0666) for Nordic Semiconductor devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", MODE="0666"
# Flag USB CDC ACM devices, handled later in 99-mm-nrf-blacklist.rules
# Set USB CDC ACM devnodes as read-write for all users
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1915", MODE="0666", ENV{NRF_CDC_ACM}="1"
LABEL="nrf_rules_end"
EOF
cat <<EOF > /lib/udev/rules.d/99-mm-nrf-blacklist.rules
# 99-modemmmanager-acm-fix.rules
# Previously flagged nRF USB CDC ACM devices shall be ignored by ModemManager
ENV{NRF_CDC_ACM}=="1", ENV{ID_MM_CANDIDATE}="0", ENV{ID_MM_DEVICE_IGNORE}="1"
EOF
if [ -x /bin/systemctl ]; then
systemctl reload systemd-udevd.service || true
else
udevadm control --reload-rules || true
fi
udevadm trigger || true
cat <<EOF
Now install nrfutil from https://www.nordicsemi.com/Products/Development-tools/nRF-Util/Download#infotabs
as well as J-Link from https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack
EOF
+2
View File
@@ -0,0 +1,2 @@
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash