Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00fe010192 | ||
|
|
8807f95e9f | ||
|
|
790d573aa5 | ||
|
|
805befc53d |
|
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
|
||||||
|
Before Width: | Height: | Size: 317 KiB After Width: | Height: | Size: 421 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 11 KiB |
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
|
||||||