Compare commits
	
		
			13 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 00fe010192 | ||
|  | 8807f95e9f | ||
|  | 790d573aa5 | ||
|  | 805befc53d | ||
|  | f2fff55fb7 | ||
|  | d53b44b954 | ||
|  | c51c4d1d0f | ||
|  | 81e4a852ef | ||
|  | 1a7ca81f2e | ||
|  | 5b2adc37f5 | ||
|  | 7df50277a1 | ||
|  | 6d8bd4c135 | ||
|  | 777d508774 | 
| @@ -8,3 +8,9 @@ Système d'exploitation x64 - 100% GNU basé sur Debian | ||||
| lb config | ||||
| lb build | ||||
| ``` | ||||
|  | ||||
| ### ToDo | ||||
|  | ||||
| - [x] Installeur | ||||
| - [ ] Live Persistence | ||||
| - [ ] Yunohost | ||||
| @@ -10,7 +10,7 @@ lb config noauto \ | ||||
|         --apt-recommends "true" \ | ||||
|         --debian-installer-gui "true" \ | ||||
|         --debian-installer "live" \ | ||||
|         --bootappend-live "lang=fr_FR.UTF-8 locales=fr_FR.UTF-8 keyboard-layouts=fr splash timezone=Europe/Paris utc=yes keyboard-model=pc105 hostname=svprognu boot=live peristence components username=svpro_gnu" \ | ||||
|         --bootappend-live "lang=fr_FR.UTF-8 locales=fr_FR.UTF-8 keyboard-layouts=fr splash timezone=Europe/Paris utc=yes keyboard-model=pc105 hostname=svprognu boot=live persistence components username=svpro_gnu" \ | ||||
|         --bootappend-install "locales=fr_FR.UTF-8" \ | ||||
|         --binary-images "iso-hybrid" \ | ||||
| 	--uefi-secure-boot "enable" \ | ||||
|   | ||||
| @@ -10,7 +10,7 @@ LB_APT_INDICES="true" | ||||
|  | ||||
| # $LB_BOOTAPPEND_LIVE: set boot parameters | ||||
| # (Default: empty) | ||||
| LB_BOOTAPPEND_LIVE="lang=fr_FR.UTF-8 locales=fr_FR.UTF-8 keyboard-layouts=fr splash timezone=Europe/Paris utc=yes keyboard-model=pc105 hostname=svprognu boot=live peristence components username=svpro_gnu" | ||||
| LB_BOOTAPPEND_LIVE="lang=fr_FR.UTF-8 locales=fr_FR.UTF-8 keyboard-layouts=fr splash timezone=Europe/Paris utc=yes keyboard-model=pc105 hostname=svprognu boot=live persistence components username=svpro_gnu" | ||||
|  | ||||
| # $LB_BOOTAPPEND_INSTALL: set boot parameters | ||||
| # (Default: empty) | ||||
|   | ||||
| Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 134 KiB | 
							
								
								
									
										9
									
								
								config/hooks/live/0200-seafile.hook.chroot
									
									
									
									
									
										Executable file
									
								
							
							
						
						| @@ -0,0 +1,9 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| wget -O - http://linux-clients.seafile.com/seafile.key | apt-key add - | ||||
| echo 'deb [arch=amd64] http://linux-clients.seafile.com/seafile-deb/buster/ stable main' > /etc/apt/sources.list.d/seafile.list | ||||
|  | ||||
| apt update | ||||
| apt install -y seafile-gui | ||||
|  | ||||
| exit 0 | ||||
							
								
								
									
										6
									
								
								config/includes.chroot/usr/local/bin/grub_boot_splash
									
									
									
									
									
										Executable file
									
								
							
							
						
						| @@ -0,0 +1,6 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| echo "GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"" >> /etc/default/grub | ||||
| update-grub | ||||
|  | ||||
| exit 0 | ||||
| Before Width: | Height: | Size: 317 KiB After Width: | Height: | Size: 421 KiB | 
| Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 38 KiB | 
| @@ -1,58 +0,0 @@ | ||||
| ############ | ||||
| ## Global ############## | ||||
| # fr | ||||
| d-i debian-installer/language string fr | ||||
| #d-i debian-installer/country string FR | ||||
| #d-i debian-installer/locale string fr_FR.UTF-8 | ||||
| #d-i keymap select fr | ||||
| # suppression de la config réseau lors de l'installation | ||||
| d-i netcfg/enable boolean false | ||||
| # horloge matérielle sur UTC : | ||||
| #d-i clock-setup/utc boolean true | ||||
| # Vous pouvez mettre toute valeur acceptée pour $TZ. | ||||
| # Voyez ce que contient /usr/share/zoneinfo/ pour les valeurs possibles. | ||||
| #d-i time/zone string Europe/Paris | ||||
| ######################### | ||||
| ## gestion des comptes ## | ||||
| ######################### | ||||
| # Ne pas créer de compte root (l'utilisateur ordinaire utilisera sudo). | ||||
| d-i passwd/root-login boolean false | ||||
| # Le compte sera ajouté à certains groupes. | ||||
| d-i passwd/user-default-groups string audio cdrom video sudo netdev plugdev fuse users lp lpadmin | ||||
| # apt - no mirror | ||||
| d-i apt-setup/use_mirror boolean false | ||||
| # tout dans une seule partition | ||||
| d-i partman-auto/choose_recipe select atomic | ||||
| ################################# | ||||
| ## Commandes lors de l'install ## | ||||
| ################################# | ||||
| # La préconfiguration de l'installation n'est pas sécurisée. Rien dans | ||||
| # l'installateur ne vérifie que des dépassements de tampons ou des | ||||
| # exploitations quelconques des valeurs données dans ce fichier n'ont pas lieu. | ||||
| # N'utilisez que les fichiers dont vous connaissez la provenance ! | ||||
| # Pour tout dire, et parce que c'est en général utile, voici un | ||||
| # moyen d'exécuter automatiquement une commande dans l'installateur. | ||||
| # La première commande est exécutée aussi tôt que possible, juste après | ||||
| # la lecture du fichier. | ||||
| #d-i preseed/early_command string anna-install some-udeb | ||||
| # Cette commande est exécutée juste avant que le partitionneur ne commence. Il peut être | ||||
| # utile de préconfigurer le partitionneur en fonction de l'état des disques | ||||
| # (qui ne sont peut-être pas visibles quand preseed/early_command est exécutée). | ||||
| #d-i partman/early_command \ | ||||
| # | ||||
| string debconf-set partman-auto/disk "$(list-devices disk | head -n1)" | ||||
| # Cette commande est exécutée juste avant que l'installation ne se termine, | ||||
| # mais quand le répertoire /target est encore utilisable. Vous pouvez exécuter | ||||
| # chroot /target et utiliser cet environnement directement ; ou bien vous | ||||
| # pouvez utiliser les commandes apt-install et in-target pour installer des | ||||
| # paquets et lancer des commandes dans le répertoire target. | ||||
| #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh | ||||
| # Grub | ||||
| # Auto install grub if this is the only one system. | ||||
| d-i grub-installer/only_debian boolean true | ||||
| # suppression de la fenêtre de fin d'install | ||||
| #d-i finish-install/reboot_in_progress note | ||||
| # sources.list | ||||
| d-i preseed/late_command string \ | ||||
| in-target /usr/local/bin/debian_perso_preseed ;\ | ||||
| in-target rm -f /usr/local/bin/debian_perso_preseed ; | ||||
| Before Width: | Height: | Size: 18 KiB | 
| @@ -2,16 +2,16 @@ | ||||
| ## Global ############## | ||||
| # fr | ||||
| d-i debian-installer/language string fr | ||||
| #d-i debian-installer/country string FR | ||||
| #d-i debian-installer/locale string fr_FR.UTF-8 | ||||
| #d-i keymap select fr | ||||
| d-i debian-installer/country string FR | ||||
| d-i debian-installer/locale string fr_FR.UTF-8 | ||||
| d-i keymap select fr | ||||
| # suppression de la config réseau lors de l'installation | ||||
| d-i netcfg/enable boolean false | ||||
| d-i netcfg/enable boolean true | ||||
| # horloge matérielle sur UTC : | ||||
| #d-i clock-setup/utc boolean true | ||||
| # Vous pouvez mettre toute valeur acceptée pour $TZ. | ||||
| # Voyez ce que contient /usr/share/zoneinfo/ pour les valeurs possibles. | ||||
| #d-i time/zone string Europe/Paris | ||||
| d-i time/zone string Europe/Paris | ||||
| ######################### | ||||
| ## gestion des comptes ## | ||||
| ######################### | ||||
| @@ -53,6 +53,6 @@ d-i grub-installer/only_debian boolean true | ||||
| # suppression de la fenêtre de fin d'install | ||||
| #d-i finish-install/reboot_in_progress note | ||||
| # sources.list | ||||
| #d-i preseed/late_command string \ | ||||
| #in-target /usr/local/bin/debian_perso_preseed ;\ | ||||
| #in-target rm -f /usr/local/bin/debian_perso_preseed ; | ||||
| d-i preseed/late_command string \ | ||||
| in-target /usr/local/bin/grub_boot_splash ;\ | ||||
| in-target rm -f /usr/local/bin/grub_boot_splash ; | ||||
|   | ||||
| Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 11 KiB | 
| @@ -18,3 +18,8 @@ plymouth-themes | ||||
| scribus | ||||
| inkscape | ||||
| vlc | ||||
| curl | ||||
| git | ||||
| sshfs | ||||
| wget | ||||
| net-tools | ||||
|   | ||||
							
								
								
									
										43
									
								
								stick_build
									
									
									
									
									
										Executable file
									
								
							
							
						
						| @@ -0,0 +1,43 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # stick_build /dev/sdX | ||||
|  | ||||
| set -e | ||||
|  | ||||
| ISO="live-svpro_gnu-amd64.iso" | ||||
|  | ||||
| # Recuperation iso | ||||
| echo "Téléchargement de l'iso..." | ||||
| sleep 5 | ||||
| wget -O ${ISO} https://nuage.svnet.fr/f/0566c7a699eb4960b2ef/?dl=1 | ||||
| wget -O ${ISO}.md5 https://nuage.svnet.fr/f/06d1ae10101949bc84d9/?dl=1 | ||||
| echo "Vérification de l'image..." | ||||
|  | ||||
| if ! md5sum -c ${ISO}.md5 | ||||
| 	then | ||||
| 	echo "ISO Corompue. Abandon !!" | ||||
| 	rm -f ${ISO} ${ISO}.md5 | ||||
| 	exit 1 | ||||
| fi | ||||
|  | ||||
| # Copie de l'image iso sur clé | ||||
| echo "Transfert en cours..." | ||||
| dd if=${ISO} of=$1 bs=4M status=progress | ||||
| sync | ||||
|  | ||||
| # Création de la partition dédiée à la persistence | ||||
| echo "Création de la persistence..." | ||||
| sleep 5 | ||||
| printf 'n\np\n\n\n\nw' | fdisk $1 | ||||
| mkfs.ext4 -L persistence ${1}3 | ||||
|  | ||||
| # Configuratio de la partition | ||||
| mount ${1}3 /mnt | ||||
| echo / union > /mnt/persistence.conf | ||||
| umount /mnt | ||||
|  | ||||
| # Fin | ||||
| echo "Terminé ! Vous pouvez booter sur la clé USB, la persistence sera auto-configurée lors du premier Boot !" | ||||
|  | ||||
|  | ||||
| exit 0 | ||||