Merge branch 'test' into develop

This commit is contained in:
Samuel Vermeulen 2022-11-22 00:38:04 +01:00
commit ef24b302cd
23 changed files with 90 additions and 48 deletions

View File

@ -1,16 +1,19 @@
# svpro_gnu
# SVPROGNU
Système d'exploitation x64 - 100% GNU basé sur Debian 11 (Bullseye)
Système d'exploitation x64 - 100% GNU basé sur Debian
## Installation (root)
### Générer ISO seule
```
curl https://git.weblib.re/svpro/svpro_gnu/raw/branch/develop/build_svprognu | bash
```
### Créer clef usb + persistence
**Attention ! La clef ne doit pas être montée par un autre processus (explorateur de fichiers, utilitaire d'auto-mount...)
* Si vous avez déjà téléchatgé l'image ISO, dans le même répertoire :
```
curl https://git.weblib.re/svpro/svpro_gnu/raw/branch/develop/build_svprognu | bash -s -- -d /dev/sdX
curl https://git.weblib.re/svpro/svprognu/raw/branch/develop/build_svprognu | bash -s -- -d /dev/sdX
```
* Ou récupérer l'image depuis le serveur :
```
curl https://git.weblib.re/svpro/svprognu/raw/branch/develop/build_svprognu | bash -s -- -r -d /dev/sdX
```
**La persistence sera configurée lors du 1er boot. Le démarrage peut prendre quelques minutes.
@ -19,7 +22,7 @@ Depuis le menu du live, choisir "Installation Graphique ou Experts"
## Build iso avec live-build (expoerts)
## Build iso avec live-build (experts)
Cloner le dépôt puis :
```
apt install live-build
@ -31,10 +34,3 @@ lb build
### Démo (Session Live via noVNC)
En ligne uniquement en journée
https://svprognu.weblib.re/
### ToDo
- [x] Installeur
- [x] Live Persistence
- [ ] Integration Yunohost

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 KiB

View File

@ -4,7 +4,7 @@ set -e
lb config noauto \
--bootloaders "syslinux,grub-efi" \
--distribution "buster" \
--distribution "bullseye" \
--architectures "amd64" \
--archive-areas "main contrib non-free" \
--apt-recommends "true" \
@ -16,8 +16,9 @@ lb config noauto \
--uefi-secure-boot "enable" \
--linux-flavours "amd64" \
--linux-packages "linux-image linux-headers" \
--iso-volume "SVPRO_GNU" \
--iso-application "SVPRO_GNU" \
--iso-volume "SVPROGNU-11" \
--iso-application "SVPROGNU-11" \
--backports "false" \
--updates "true" \
--security "true" \
"${@}"

View File

@ -1,37 +1,45 @@
#!/bin/bash
# Creation de la clef ./build_svprognu -d /dev/sdX
# Creation de l'iso seule ./build_svprognu
set -e
ISO="live_svpro_gnu-amd64.hybrid.iso"
ISO="live-svprognu-bullseye_amd64.iso"
# Recuperation iso
echo "Téléchargement de l'iso..."
sleep 5
wget -O ${ISO} https://www.weblib.re/dokuwiki/_media/svpro_gnu:live_svpro_gnu-amd64.hybrid.iso
wget -O ${ISO}.md5sum https://www.weblib.re/dokuwiki/_media/svpro_gnu:live_svpro_gnu-amd64.hybrid.iso.md5sum
echo "Vérification de l'image..."
if ! md5sum -c ${ISO}.md5sum
then
echo "ISO Corompue. Abandon !!"
rm -f ${ISO} ${ISO}.md5
exit 1
fi
while getopts ":r d:" opt; do
case $opt in
r)
# Recuperation iso
echo "Téléchargement de l'iso..."
sleep 5
wget -O ${ISO} https://www.weblib.re/dokuwiki/_media/svprognu:${ISO}
wget -O ${ISO}.md5sum https://www.weblib.re/dokuwiki/_media/svprognu:${ISO}.md5sum
echo "Vérification de l'image..."
if ! md5sum -c ${ISO}.md5sum
then
echo "ISO Corompue. Abandon !!"
rm -f ${ISO} ${ISO}.md5
exit 1
fi
;;
# Copie de l'image iso sur clé
while getopts ":d: " opt; do
case $opt in
d)
d)
echo "Transfert en cours..."
#Réinitialisation de la clé : Table DOS
printf 'o\nw' | fdisk $OPTARG
#Transfert
dd if=${ISO} of=$OPTARG bs=4M status=progress
sync
# Création de la partition dédiée à la persistence
echo "Création de la persistence..."
sleep 10
sleep 5
printf 'n\np\n\n\n\nw' | fdisk $OPTARG
echo "Formatage..."
sleep 10

View File

@ -41,7 +41,11 @@ LB_BUILD_WITH_CHROOT="true"
LB_DEBIAN_INSTALLER="live"
# Set debian-installer suite
<<<<<<< HEAD
LB_DEBIAN_INSTALLER_DISTRIBUTION="buster"
=======
LB_DEBIAN_INSTALLER_DISTRIBUTION="bullseye"
>>>>>>> test
# Set debian-installer preseed filename/url
LB_DEBIAN_INSTALLER_PRESEEDFILE=""
@ -59,7 +63,11 @@ LB_HDD_SIZE="auto"
LB_HDD_PARTITION_START=""
# Set iso author
<<<<<<< HEAD
LB_ISO_APPLICATION="SVPRO_GNU"
=======
LB_ISO_APPLICATION="SVPROGNU-11"
>>>>>>> test
# Set iso preparer
LB_ISO_PREPARER="live-build @LB_VERSION@; https://salsa.debian.org/live-team/live-build"
@ -68,7 +76,11 @@ LB_ISO_PREPARER="live-build @LB_VERSION@; https://salsa.debian.org/live-team/liv
LB_ISO_PUBLISHER="Debian Live project; https://wiki.debian.org/DebianLive; debian-live@lists.debian.org"
# Set iso volume (max 32 chars)
<<<<<<< HEAD
LB_ISO_VOLUME="SVPRO_GNU"
=======
LB_ISO_VOLUME="SVPROGNU-11"
>>>>>>> test
# Set jffs2 eraseblock size
LB_JFFS2_ERASEBLOCK=""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -24,8 +24,8 @@ fi
terminal_output gfxterm
insmod play
play 960 440 1 0 4 440 1
#insmod play
#play 960 440 1 0 4 440 1
# Live boot
LINUX_LIVE

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -2,6 +2,7 @@
# Select architecture to use
LB_ARCHITECTURE="amd64"
<<<<<<< HEAD
# Select distribution to use
LB_DISTRIBUTION="buster"
@ -24,6 +25,30 @@ LB_PARENT_DISTRIBUTION_BINARY="buster"
# Select parent distribution for debian-installer to use
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="buster"
=======
# Select distribution to use
LB_DISTRIBUTION="bullseye"
# Select parent distribution to use
LB_PARENT_DISTRIBUTION=""
# Select distribution to use in the chroot
LB_DISTRIBUTION_CHROOT="bullseye"
# Select parent distribution to use in the chroot
LB_PARENT_DISTRIBUTION_CHROOT="bullseye"
# Select distribution to use in the final image
LB_DISTRIBUTION_BINARY="bullseye"
# Select parent distribution to use in the final image
LB_PARENT_DISTRIBUTION_BINARY="bullseye"
# Select parent distribution for debian-installer to use
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="bullseye"
>>>>>>> test
# Select archive areas to use
LB_ARCHIVE_AREAS="main contrib non-free"

View File

@ -1,7 +1,7 @@
#!/bin/bash
wget https://linux-clients.seafile.com/seafile.asc -O /usr/share/keyrings/seafile-keyring.asc
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/seafile-keyring.asc] https://linux-clients.seafile.com/seafile-deb/buster/ stable main' > /etc/apt/sources.list.d/seafile.list
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/seafile-keyring.asc] https://linux-clients.seafile.com/seafile-deb/bullseye/ stable main' > /etc/apt/sources.list.d/seafile.list
apt update
apt install -y seafile-gui

View File

@ -6,4 +6,4 @@
|_____|
\r \v \n
Bienvenu !
Bullseye !

View File

@ -5,5 +5,6 @@
|____/ \_/ |_| |_| \_\\___/___\____|_| \_|\___/
|_____|
Bienvenu !
Bullseye !

View File

@ -1,7 +1,7 @@
PRETTY_NAME="Debian SVPRO_GNU"
NAME="SVPRO_GNU"
PRETTY_NAME="Debian SVPROGNU Bullseye"
NAME="SVPROGNU"
ID=svprognu
VERSION="1.0"
VERSION_ID=1.0
HOME_URL="https://git.weblib.re/svpro/svpro_gnu/wiki"
VERSION="11"
VERSION_ID=11
HOME_URL="https://www.weblib.re/dokuwiki/svpro_gnu"
SUPPORT_URL="https://git.weblib.re/svpro/svpro_gnu/"

View File

@ -1,6 +1,6 @@
#!/bin/bash
echo "GRUB_BACKGROUND=\"/usr/share/plymouth/themes/svpro_gnu/svprognu-splash.png\"" >> /etc/default/grub
echo "GRUB_BACKGROUND=\"/usr/share/plymouth/themes/svpro_gnu/svprognu-grub.png\"" >> /etc/default/grub
echo "GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"" >> /etc/default/grub
update-grub

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 614 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -62,7 +62,6 @@ chromium-l10n
# Education
gcompris
childsplay
# Virtualisation
spice-vdagent