Initial commit

This commit is contained in:
Jan Schär 2024-05-09 22:45:53 +02:00
commit 968d09e362
88 changed files with 2323 additions and 0 deletions

View file

@ -0,0 +1,2 @@
# Fasttrack is needed for VirtualBox.
deb https://fasttrack.debian.net/debian-fasttrack/ @DISTRIBUTION@-fasttrack main contrib

View file

@ -0,0 +1 @@
ethdetect

View file

@ -0,0 +1,7 @@
#!/bin/bash
set -eu
# Install the noauth PAM profile.
groupadd noauth
pam-auth-update --enable noauth

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -eu
echo "inventory-hostname" >> .disk/udeb_include

View file

@ -0,0 +1,2 @@
[org/gnome/login-screen]
logo = '/usr/local/share/images/login-screen-logo.svg'

View file

@ -0,0 +1,3 @@
user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

View file

@ -0,0 +1,9 @@
// Connecting to a WiFi in the gnome-shell quick settings prompts for an admin
// password without this rule.
// https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7378
polkit.addRule(function (action, subject) {
if (action.id === "org.freedesktop.NetworkManager.settings.modify.system") {
return polkit.Result.YES;
}
});

View file

@ -0,0 +1,17 @@
#!/bin/sh
set -eu
# Set up apt lists.
cp -rT /usr/local/share/target-sources /etc/apt/sources.list.d
rm /etc/apt/sources.list
USERNAME=soi
USER_FULLNAME="SOI"
# Password: soi
USER_PASSWORD='$y$j9T$h5VhMd4KkdmbxdZD1gO0N/$1hvwZgO8pQw13Xd6jaNXbtkbqVOC4W/ia/KXOcCGYvB'
# Create user.
adduser --disabled-password --gecos "$USER_FULLNAME" "$USERNAME"
usermod -p "$USER_PASSWORD" "$USERNAME"
adduser "$USERNAME" noauth

View file

@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-260 -20 520 40" width="1300" height="100">
<title>Swiss Olympiad in Informatics</title>
<circle r="13.75" fill="none" stroke="#101010" stroke-width="2.5"/>
<path fill="none" stroke="#1eadf5" stroke-width="2" d="M7.6121 0 0 -7.6121 13.2727 -15.7298M-7.6121 0 7.6121 0 0 7.6121 -7.6121 0 -14.3693 13.5411"/>
<g fill="#1862ff">
<circle r="3" cy="7.6121"/>
<circle r="3" cx="7.6121"/>
<circle r="3" cy="-7.6121"/>
<circle r="3" cx="-7.6121"/>
<circle r="3" cx="13.2727" cy="-15.7298"/>
<circle r="3" cx="-14.3693" cy="13.5411"/>
</g>
<g style="font-family: 'DejaVu Sans'; font-size: 5px; fill: #fff;">
<text x="40" y="-9">This laptop is property of the Swiss Olympiad in Informatics. Contact: info@soi.ch</text>
<text x="40" y="1">Dieser Laptop ist Eigentum der Schweizer Informatikolympiade. Kontakt: info@soi.ch</text>
<text x="40" y="11">Software version: @date@</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 937 B

View file

@ -0,0 +1,11 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb deb-src
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

View file

@ -0,0 +1,6 @@
Name: Accept noauth users without any authentication
Default: yes
Priority: 512
Auth-Type: Primary
Auth:
[success=end default=ignore] pam_succeed_if.so user ingroup noauth

View file

@ -0,0 +1,6 @@
#!/bin/sh
# Disable mountmedia, because that can make the cdrom mount fail.
# Not sure why there are two conflicting mounting mechanisms in Debian Installer
# (mountmedia with /media and cdrom-detect with /cdrom).
exit 1

View file

@ -0,0 +1,28 @@
#_preseed_V1
d-i debian-installer/language string en
d-i debian-installer/country string CH
d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select ch
d-i hw-detect/load_firmware boolean false
d-i netcfg/enable boolean false
d-i netcfg/get_domain string
d-i passwd/root-login boolean false
d-i passwd/user-fullname string Admin
d-i passwd/username string superstofl
d-i passwd/user-password-crypted password @install_admin_password@
d-i partman-auto/method string regular
d-i partman-auto/init_automatically_partition select some_device
d-i partman-auto/choose_recipe select atomic
d-i partman/choose_partition select finish
d-i apt-setup/use_mirror boolean false
d-i grub-installer/only_debian boolean true
d-i preseed/late_command string in-target /usr/local/bin/install-config

View file

@ -0,0 +1,3 @@
# This file overrides a default list to remove live-config.
# For the installer, we don't need any live packages,
# they would just be removed again by the installer.

View file

@ -0,0 +1,16 @@
sudo
# Make Secure Boot work
grub-efi-amd64-signed
# Firmware updates through gnome-software
fwupd fwupd-signed
# Low battery charge notifications, battery info
gnome-power-manager
# Run virtual machines with Gnome Boxes
gnome-boxes qemu-system-x86 qemu-utils libvirt-daemon-system
# Run virtual machines with VirtualBox
virtualbox-qt