Skip to content

Commit

Permalink
Merge pull request #18 from Linux-Academic-Group/tauri
Browse files Browse the repository at this point in the history
Tauri
  • Loading branch information
GPlaczek authored Oct 27, 2022
2 parents fc22e19 + 8ed77af commit 31910d5
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 18 deletions.
Binary file added conf/.config/ducks.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions conf/.config/openbox/autostart.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
tint2 &
feh --bg-fill ~/.config/ducks.jpg &
2 changes: 1 addition & 1 deletion conf/etc/mosquitto/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
allow_anonymous true
listener 9001
protocol websockets
listener 1883 ip
listener 1883
14 changes: 14 additions & 0 deletions conf/etc/openbox/rc.xml.patch
Original file line number Diff line number Diff line change
@@ -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 @@
<keybind key="Print">
<action name="Execute"><command>scrot</command></action>
</keybind>
+ <keybind key="C-A-t">
+ <action name="Execute">
+ <command>xfce4-terminal</command>
+ </action>
+ </keybind>
</keyboard>

<mouse>
21 changes: 21 additions & 0 deletions conf/late_command.sh
Original file line number Diff line number Diff line change
@@ -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
51 changes: 34 additions & 17 deletions preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31910d5

Please sign in to comment.