add *.cool.freenen.nl to hosts file

This commit is contained in:
Laila van Reenen 2024-12-11 19:08:08 +01:00
parent fd4ae2be09
commit 21de3bd3c2
Signed by: LailaTheElf
GPG Key ID: 1F4E6EE3E6DDF769
3 changed files with 10 additions and 4 deletions

View File

@ -8,4 +8,3 @@ SFDISK_FILE="./configs/elfDesktop.sfdisk"
UEFI_PARTITION="${UEFI_DISK}p1"
SWAP_PARTITION="${DISK}p2"
ROOT_PARTITION="${DISK}p3"

View File

@ -8,5 +8,3 @@ SFDISK_FILE="./configs/elfLaptop.sfdisk"
UEFI_PARTITION="${UEFI_DISK}1"
SWAP_PARTITION="${DISK}2"
ROOT_PARTITION="${DISK}3"
bash ./elf_os.sh

View File

@ -32,13 +32,22 @@ run root "enable NetworkMaanger" "systemctl enable NetworkManager.servic
run root "start NetworkMaanger" "systemctl start NetworkManager.service"
run root "wait for network" "while [[ 1 ]] ; do ping -c1 1.1.1.1 && break ; done"
run root "install base tools" "pacman -Sy --noconfirm \
usbutils dosfstools exfat-utils net-tools nmap libfido2 \
usbutils dosfstools exfat-utils net-tools bind nmap libfido2 \
base-devel vim curl ncdu neofetch btop git flatpak"
run root "install dev tools" "pacman -S --noconfirm ansible python3 gcc make cmake" # clangd
run root "install gnome" "pacman -S --noconfirm gnome"
run root "enable gnome" "systemctl enable gdm.service"
run root "install distrobox" "pacman -S --noconfirm docker distrobox"
run root "add $USERNAME to docker group" "usermod -aG docker $USERNAME"
HOME_IP="$(dig +short home.freenen.nl)"
run root "update hosts file" "cat >>/etc/hosts <<EOF
${HOME_IP} myadmin.cool.freenen.nl
${HOME_IP} grafana.cool.freenen.nl
${HOME_IP} zigbee.cool.freenen.nl
${HOME_IP} nodered.cool.freenen.nl
EOF
"
run root "create home dirs" "sudo -u $USERNAME mkdir -p \
/home/$USERNAME/.local/python-env \