diff --git a/conf/.config/ducks.jpg b/conf/.config/ducks.jpg new file mode 100644 index 0000000..d47fb9d Binary files /dev/null and b/conf/.config/ducks.jpg differ diff --git a/conf/.config/openbox/autostart.sh b/conf/.config/openbox/autostart.sh index a7f21cd..f713463 100644 --- a/conf/.config/openbox/autostart.sh +++ b/conf/.config/openbox/autostart.sh @@ -1 +1,2 @@ tint2 & +feh --bg-fill ~/.config/ducks.jpg & diff --git a/conf/etc/mosquitto/mosquitto.conf b/conf/etc/mosquitto/mosquitto.conf index 2492289..942ee39 100644 --- a/conf/etc/mosquitto/mosquitto.conf +++ b/conf/etc/mosquitto/mosquitto.conf @@ -1,4 +1,4 @@ allow_anonymous true listener 9001 protocol websockets -listener 1883 ip +listener 1883 diff --git a/conf/etc/openbox/rc.xml.patch b/conf/etc/openbox/rc.xml.patch new file mode 100644 index 0000000..eb0adac --- /dev/null +++ b/conf/etc/openbox/rc.xml.patch @@ -0,0 +1,14 @@ +--- rc.old.xml 2022-10-23 14:08:21.960000000 +0200 ++++ rc.xml 2022-10-23 14:04:13.124000000 +0200 +@@ -307,6 +307,11 @@ + + scrot + ++ ++ ++ xfce4-terminal ++ ++ + + + diff --git a/conf/late_command.sh b/conf/late_command.sh new file mode 100644 index 0000000..a6147c0 --- /dev/null +++ b/conf/late_command.sh @@ -0,0 +1,21 @@ +cp conf/pcc/bash_profile /target/home/pcc/.bash_profile +in-target chown pcc:pcc /home/pcc/.bash_profile +cp conf/etc/apt/sources.list /target/etc/apt/sources.list +cp conf/etc/openbox/rc.xml.patch /target/tmp +in-target patch /etc/xdg/openbox/rc.xml -i /tmp/rc.xml.patch +cp -R conf/.config /target/home/pcc/ +in-target chown -R pcc:pcc /home/pcc/.config +mkdir -p /target/etc/mosquitto +cp conf/etc/mosquitto/mosquitto.conf /target/etc/mosquitto/ +cp conf/pcc/pcc.sh /target/home/pcc/ +in-target chown pcc:pcc /home/pcc/pcc.sh +wget -q -P /target/tmp https://www.mongodb.org/static/pgp/server-6.0.asc +in-target apt-key add /tmp/server-6.0.asc +cp conf/etc/apt/sources.list.d/mongodb-org-6.0.list /target/etc/apt/sources.list.d/mongodb-org-6.0.list +in-target curl -sL https://deb.nodesource.com/setup_16.x > /target/tmp/setup.sh +chmod +x /target/tmp/setup.sh +/target/tmp/setup.sh +wget -P /target/tmp wget https://downloads.mongodb.com/compass/mongodb-compass_1.28.1_amd64.deb +in-target apt-get update +in-target apt-get install -y nodejs mongodb-org /tmp/mongodb-compass_1.28.1_amd64.deb +in-target systemctl enable mongod diff --git a/preseed.cfg b/preseed.cfg index f395ed3..2e4d148 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -56,7 +56,37 @@ d-i passwd/user-default-groups string audio cdrom video sudo d-i pkgsel/run_tasksel boolean false # Individual additional packages to install -d-i pkgsel/include string openssh-server build-essential vim xorg openbox menu sudo psmisc mosquitto tint2 arandr network-manager-gnome wget +d-i pkgsel/include string openssh-server \ + build-essential \ + vim \ + xorg \ + openbox \ + menu \ + sudo \ + psmisc \ + mosquitto \ + tint2 \ + arandr \ + network-manager-gnome \ + wget \ + curl \ + git \ + feh \ + libdbus-1-dev \ + pkg-config \ + libssl-dev \ + htop \ + xfce4-terminal \ + libglib2.0-dev \ + libatk1.0-dev \ + libpango1.0-dev \ + libgdk-pixbuf2.0-dev \ + libsoup2.4-dev \ + libjavascriptcoregtk-4.0-dev \ + libgtk-3-dev \ + libwebkit2gtk-4.0-dev \ + apache2 \ + npm # Whether to upgrade packages after debootstrap. d-i pkgsel/upgrade select safe-upgrade @@ -87,22 +117,9 @@ d-i finish-install/reboot_in_progress note d-i debian-installer/exit/reboot boolean true d-i preseed/late_command string \ -cp conf/pcc/bash_profile /target/home/pcc/.bash_profile; \ -in-target chown pcc:pcc /home/pcc/.bash_profile; \ -cp conf/etc/apt/sources.list /target/etc/apt/sources.list; \ -cp -R conf/.config /target/home/pcc/; \ -in-target chown -R pcc:pcc /home/pcc/.config; \ -mkdir -p /target/etc/mosquitto; \ -cp conf/etc/mosquitto/mosquitto.conf /target/etc/mosquitto/; \ -cp conf/pcc/pcc.sh /target/home/pcc/; \ -in-target chown pcc:pcc /home/pcc/pcc.sh; \ -wget -q -P /target/tmp https://www.mongodb.org/static/pgp/server-6.0.asc; \ -in-target apt-key add /tmp/server-6.0.asc; \ -cp conf/etc/apt/sources.list.d/mongodb-org-6.0.list /target/etc/apt/sources.list.d/mongodb-org-6.0.list; \ -in-target apt-get update; \ -in-target apt-get install -y mongodb-org; \ -in-target systemctl enable mongod - +chmod +x conf/late_command.sh; \ +./conf/late_command.sh; \ +cp /var/log/syslog /target/home/pcc #### Advanced options ### Running custom commands during the installation # d-i preseeding is inherently not secure. Nothing in the installer checks