Exposed Defaults for Root, nutzername and nutzerpasswort
This commit is contained in:
parent
5a30c9be5f
commit
936f477cb1
2 changed files with 18 additions and 16 deletions
24
base.sh
24
base.sh
|
@ -87,21 +87,21 @@ done
|
||||||
# exit 1
|
# exit 1
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
read -r -p "Passwort für Root :" rootpw
|
read -r -p "Passwort für Root (Default: test) :" rootpw
|
||||||
: "${rootpw:=test}"
|
: "${rootpw:=test}"
|
||||||
if [[ $rootpw == "" ]]; then
|
if [[ $rootpw == "" ]]; then
|
||||||
echo "Kein Passwort für Root vergeben, breche ab"
|
echo "Kein Passwort für Root vergeben, breche ab"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -r -p "Nutzername: " nutzername
|
read -r -p "Nutzername (Default: eichehome): " nutzername
|
||||||
: "${nutzername:=eichehome}"
|
: "${nutzername:=eichehome}"
|
||||||
if [[ $nutzername == "" ]]; then
|
if [[ $nutzername == "" ]]; then
|
||||||
echo "Kein Nutzername eingegeben, breche ab"
|
echo "Kein Nutzername eingegeben, breche ab"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -r -p "Passwort für $nutzername: " nutzerpw
|
read -r -p "Passwort für $nutzername (Default: testen): " nutzerpw
|
||||||
: "${nutzerpw:=testen}"
|
: "${nutzerpw:=testen}"
|
||||||
if [[ $rootpw == "" ]]; then
|
if [[ $rootpw == "" ]]; then
|
||||||
echo "Kein Passwort für $nutzername vergeben, breche ab"
|
echo "Kein Passwort für $nutzername vergeben, breche ab"
|
||||||
|
@ -190,26 +190,27 @@ if [[ $configuration == 1 ]]; then
|
||||||
# Ethernet
|
# Ethernet
|
||||||
echo "Ethernet"
|
echo "Ethernet"
|
||||||
#ethernet_network=$(find / -type f -name 20-ethernet.network | grep configs)
|
#ethernet_network=$(find / -type f -name 20-ethernet.network | grep configs)
|
||||||
cp "$(find "${PWD}" -type f -name )" /etc/systemd/network/
|
cp "$(find "${PWD}" -type f -name 20-ethernet.network)" /etc/systemd/network/
|
||||||
# Wlan
|
# Wlan
|
||||||
echo "WLAN"
|
echo "WLAN"
|
||||||
#wlan_network=$(find / -type f -name 20-wlan.network | grep configs)
|
#wlan_network=$(find / -type f -name 20-wlan.network | grep configs)
|
||||||
cp "$(find "${PWD}" -type f -name )" /etc/systemd/network/
|
cp "$(find "${PWD}" -type f -name 20-wlan.network)" /etc/systemd/network/
|
||||||
# Wwan (Mobilefunk)
|
# Wwan (Mobilefunk)
|
||||||
echo "Mobilfunk"
|
echo "Mobilfunk"
|
||||||
#wwan_network=$(find / -type f -name 20-wwan.network | grep configs)
|
#wwan_network=$(find / -type f -name 20-wwan.network | grep configs)
|
||||||
cp "$(find "${PWD}" -type f -name )" /etc/systemd/network/
|
cp "$(find "${PWD}" -type f -name 20-wwan.network)" /etc/systemd/network/
|
||||||
elif [[ $configuration == 2 ]]; then
|
elif [[ $configuration == 2 ]]; then
|
||||||
pacman -S gnome gdm fwupd networkmanager modemmanager avahi bluez bluez-utils sshfs pipewire pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pipewire-zeroconf pipewire-v4l2 wireplumber gstreamer gst-plugin-pipewire gst-libav gst-plugins-good gst-plugins-base gst-plugins-vaapi gnome-software-packagekit-plugin xdg-desktop-portal-gnome festival networkmanager-openconnect networkmanager-openvpn networkmanager-pptp networkmanager-vpnc power-profiles-daemon
|
pacman -S fwupd networkmanager modemmanager avahi bluez bluez-utils sshfs pipewire pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pipewire-zeroconf pipewire-v4l2 wireplumber gstreamer gst-plugin-pipewire gst-libav gst-plugins-good gst-plugins-base gst-plugins-vaapi gnome-software-packagekit-plugin xdg-desktop-portal-gnome festival networkmanager-openconnect networkmanager-openvpn networkmanager-pptp networkmanager-vpnc power-profiles-daemon
|
||||||
|
pacman -S gnome gdm
|
||||||
|
|
||||||
systemctl enable NetworkManager
|
systemctl enable NetworkManager
|
||||||
# Configure IWD as Backend for Networkmanager
|
# Configure IWD as Backend for Networkmanager
|
||||||
#wifi_backend_conf=$(find / -type f -name wifi_backend.conf | grep configs)
|
#wifi_backend_conf=$(find / -type f -name wifi_backend.conf | grep configs)
|
||||||
cp "$(find "${PWD}" -type f -name )" /etc/NetworkManager/conf.d/
|
cp "$(find "${PWD}" -type f -name wifi_backend.conf)" /etc/NetworkManager/conf.d/
|
||||||
# Disable MulticastDNS in systemd-resolved
|
# Disable MulticastDNS in systemd-resolved
|
||||||
#disable_multicastDNS_conf=$(find / -type f -name disable-multicastDNS.conf | grep configs)
|
#disable_multicastDNS_conf=$(find / -type f -name disable-multicastDNS.conf | grep configs)
|
||||||
mkdir -p /etc/systemd/resolved.conf.d
|
mkdir -p /etc/systemd/resolved.conf.d
|
||||||
cp "$(find "${PWD}" -type f -name )" /etc/systemd/resolved.conf.d/
|
cp "$(find "${PWD}" -type f -name disable-multicastDNS.conf)" /etc/systemd/resolved.conf.d/
|
||||||
systemctl enable avahi-daemon
|
systemctl enable avahi-daemon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -252,8 +253,11 @@ fi
|
||||||
bootctl install
|
bootctl install
|
||||||
|
|
||||||
# Bootloaderconfig
|
# Bootloaderconfig
|
||||||
|
scriptpfad="${PWD}-${0}"
|
||||||
|
scriptpfad="${scriptpfad//-.}"
|
||||||
|
scriptpfad="${scriptpfad//base.sh}"
|
||||||
#loader_conf=$(find / -type f -name loader.conf | grep configs)
|
#loader_conf=$(find / -type f -name loader.conf | grep configs)
|
||||||
cp "$(find "${PWD}" -type f -name loader.conf)" /boot/loader/
|
cp "$(find "${scriptpfad}" -type f -name loader.conf)" /boot/loader/
|
||||||
|
|
||||||
#$selectedKernel="linux linux-lts linux-zen"
|
#$selectedKernel="linux linux-lts linux-zen"
|
||||||
entry_conf=$(find "${PWD}" -type f -name entry.conf)
|
entry_conf=$(find "${PWD}" -type f -name entry.conf)
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# iwctl station wlan0 get-networks
|
||||||
#variable=$(dialog --title "" 3>&1 1>&2 2>&3 3>&-)
|
# iwctl station wlan0 connect"<SSID>"
|
||||||
|
# ip addr
|
||||||
#pacman -S dialog
|
# curl -O https://git.sp-codes.de/eichehome/archinstall/raw/branch/main/prep-BTRFS-UEFI-Encrypted.sh
|
||||||
#device_to_install_to=$(dialog --title "Device" --inputbox "Write the Path to the device to install to (eg. /dev/vda)" 3>&1 1>&2 2>&3 3>&-)
|
|
||||||
|
|
||||||
localectl set-keymap de-latin1-nodeadkeys
|
localectl set-keymap de-latin1-nodeadkeys
|
||||||
|
|
||||||
timedatectl set-timezone Europe/Berlin
|
timedatectl set-timezone Europe/Berlin
|
||||||
|
|
Loading…
Reference in a new issue