Actualiser scripts/sandbox-install

This commit is contained in:
Régis Brouard 2024-09-03 16:34:46 +02:00
parent e141f51781
commit 12da17b88d

View File

@ -14,11 +14,11 @@ PACKAGES=(
"breezy" "python" "wireshark-qt" "wireshark-cli" "evince" "dbus" "mlocate" "gvfs" "breezy" "python" "wireshark-qt" "wireshark-cli" "evince" "dbus" "mlocate" "gvfs"
"strace" "net-tools" "postfix" "sudo" "gtksourceview3" "mplayer" "cronie" "optipng" "strace" "net-tools" "postfix" "sudo" "gtksourceview3" "mplayer" "cronie" "optipng"
"lib32-glibc" "libvirt" "qt5" "xterm" "graphviz" "vlc" "pulseaudio" "pulseaudio-alsa" "lib32-glibc" "libvirt" "qt5" "xterm" "graphviz" "vlc" "pulseaudio" "pulseaudio-alsa"
"tmux" "sleuthkit" "tk" "tcl" "xterm" "junit" "lightdm" "samba" "bind" "krb5" "tree" "tmux" "sleuthkit" "tk" "tcl" "junit" "lightdm" "samba" "bind" "krb5" "tree"
"time" "noto-fonts" "noto-fonts-cjk" "noto-fonts-emoji" "noto-fonts-extra" "numlockx" "time" "noto-fonts" "noto-fonts-cjk" "noto-fonts-emoji" "noto-fonts-extra" "numlockx"
"lightdm-gtk-greeter" "tigervnc" "xfce4-pulseaudio-plugin" "docker" "docker-compose" "lightdm-gtk-greeter" "tigervnc" "xfce4-pulseaudio-plugin" "docker" "docker-compose"
"android-tools" "opam" "jdk17-openjdk" "vde2" "shellcheck" "man-db" "man-pages" "android-tools" "opam" "jdk17-openjdk" "vde2" "shellcheck" "man-db" "man-pages"
"man-pages-fr" "duf" "eza" "bat" "clang" "socat" "man-pages-fr" "duf" "eza" "bat" "clang" "socat" "iputils" "termshark"
) )
PACKAGES_AUR=( PACKAGES_AUR=(
@ -32,21 +32,12 @@ PACKAGES_AUR=(
SERVICES=( SERVICES=(
"systemd-networkd.service" "systemd-resolved.service" "systemd-timesyncd.service" "systemd-networkd.service" "systemd-resolved.service" "systemd-timesyncd.service"
"fstrim.service" "docker.service" "ovs-vswitchd.service" "docker.service" "ovs-vswitchd.service"
) )
# Enable time synchronization # Enable time synchronization
timedatectl set-ntp true timedatectl set-ntp true
# Wait for the clock to be synchronized
while :; do
timedatectl status | grep "synchronized: yes" && break
sleep 1
done
# Wait a few seconds for everything to be ready
sleep 20
# Enable parallel downloads in pacman # Enable parallel downloads in pacman
sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 16/" /etc/pacman.conf sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 16/" /etc/pacman.conf
@ -54,15 +45,16 @@ sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 16/" /etc/pacman.conf
pacman -Sy --noconfirm archlinux-keyring pacman -Sy --noconfirm archlinux-keyring
# Install the base system # Install the base system
pacstrap -K /mnt "${PACKAGES[@]}" #pacstrap -K /mnt "${PACKAGES[@]}"
pacman -S "${PACKAGES[@]}"
# Generate the fstab file # Generate the fstab file
genfstab -U /mnt >>/mnt/etc/fstab #genfstab -U /mnt >>/mnt/etc/fstab
# Chroot into the new system # Chroot into the new system
arch-chroot /mnt /bin/bash <<EOF #arch-chroot /mnt /bin/bash <<EOF
# Disable history in the shell # Disable history in the shell
set +o history #set +o history
# Set the timezone # Set the timezone
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
@ -85,7 +77,7 @@ echo "KEYMAP=fr-latin1" > /etc/vconsole.conf
echo "salle222-" > /etc/hostname echo "salle222-" > /etc/hostname
# Install syslinux # Install syslinux
syslinux-install_update -iam #syslinux-install_update -iam
# Disable multicast DNS and LLMNR # Disable multicast DNS and LLMNR
sed -i 's/#LLMNR=no/LLMNR=no/g' /etc/systemd/resolved.conf sed -i 's/#LLMNR=no/LLMNR=no/g' /etc/systemd/resolved.conf