This commit is contained in:
Marcus 2023-05-01 08:01:56 +02:00
parent 94bb5ff3c8
commit 4318a93c4a

View file

@ -107,15 +107,22 @@ apt install -y \\
arandr \\ arandr \\
zenity \\ zenity \\
/tmp/xdgmenumaker*.deb || error /tmp/xdgmenumaker*.deb || error
message "set hostname in hosts"
sed -i 's/localhost/localhost nanodesk/g' /etc/hosts
### set root password ### set root password
message "set root password to debian" message "set root password to debian"
echo -e "debian\ndebian" | (passwd root) echo -e "debian\ndebian" | (passwd root)
### add debian user ### add debian user
message "create user debian" message "create user debian"
useradd -m -U -s /bin/bash debian useradd -m -U -s /bin/bash debian
### set password ### set password
message "set password debian for user debian" message "set password debian for user debian"
echo -e "debian\ndebian" | (passwd debian) echo -e "debian\ndebian" | (passwd debian)
### Configure timezone and locale ### Configure timezone and locale
#dpkg-reconfigure locales #dpkg-reconfigure locales
#dpkg-reconfigure console-data #dpkg-reconfigure console-data
@ -129,9 +136,11 @@ echo "Europe/Berlin" > /etc/timezone && \\
dpkg-reconfigure --frontend=noninteractive locales && \\ dpkg-reconfigure --frontend=noninteractive locales && \\
locale-gen en_US.UTF-8 && \\ locale-gen en_US.UTF-8 && \\
update-locale LANG=en_US.UTF-8 update-locale LANG=en_US.UTF-8
### clean cache ### clean cache
message "apt clean" message "apt clean"
apt clean apt clean
### but fetch packages for grub and kernel, so we do not need to download them ### but fetch packages for grub and kernel, so we do not need to download them
### in case nanodesk get installed to diska ### in case nanodesk get installed to diska
message "apt --download linux-image and grub packages to have them in cache for installation by user" message "apt --download linux-image and grub packages to have them in cache for installation by user"