Password in large letters
This commit is contained in:
parent
2fb0ed4bd9
commit
b88f433a8e
|
@ -232,7 +232,21 @@ EOF
|
|||
echo ' NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
|
||||
echo ' fi' >> $rootdir/root/.bashrc
|
||||
echo ' echo "${NEW_USER_PASSWORD}" > ~/login.txt' >> $rootdir/root/.bashrc
|
||||
echo ' dialog --backtitle "Freedombone initial setup process" --title "New Password" --msgbox "This is your new password. Use it whenever you wish to ssh into this system.\n\n $NEW_USER_PASSWORD\n\nPlease take a moment to copy the above password into a password manager or write it down somewhere." 12 50' >> $rootdir/root/.bashrc
|
||||
|
||||
echo ' clear' >> $rootdir/root/.bashrc
|
||||
echo ' echo ""' >> $rootdir/root/.bashrc
|
||||
echo ' echo "Your new login password is:"' >> $rootdir/root/.bashrc
|
||||
echo ' echo ""' >> $rootdir/root/.bashrc
|
||||
echo ' toilet "${NEW_USER_PASSWORD}"' >> $rootdir/root/.bashrc
|
||||
echo ' echo ""' >> $rootdir/root/.bashrc
|
||||
echo ' echo " ${NEW_USER_PASSWORD}"' >> $rootdir/root/.bashrc
|
||||
echo ' echo ""' >> $rootdir/root/.bashrc
|
||||
echo ' echo "Use it whenever you wish to ssh into this system."' >> $rootdir/root/.bashrc
|
||||
echo ' echo ""' >> $rootdir/root/.bashrc
|
||||
echo ' echo "IMPORTANT: Please take a moment to enter the above password into a password manager or write it down somewhere."' >> $rootdir/root/.bashrc
|
||||
echo ' echo ""' >> $rootdir/root/.bashrc
|
||||
echo ' read -n1 -r -p "Press any key to continue..." key' >> $rootdir/root/.bashrc
|
||||
|
||||
# change the password for the admin user
|
||||
echo -n " echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
|
||||
echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
|
||||
|
@ -320,7 +334,7 @@ if [ -n "$CUSTOM_SETUP" ]; then
|
|||
chroot "$rootdir" gdebi -n /tmp/"$(basename $CUSTOM_SETUP)"
|
||||
fi
|
||||
|
||||
chroot "$rootdir" apt-get install -y sudo git dialog build-essential openssh-server
|
||||
chroot "$rootdir" apt-get install -y sudo git dialog toilet build-essential openssh-server
|
||||
chroot "$rootdir" apt-get install -y avahi-daemon avahi-utils avahi-discover
|
||||
chroot "$rootdir" /bin/bash -x <<EOF
|
||||
git clone https://github.com/bashrc/freedombone /root/freedombone
|
||||
|
|
Loading…
Reference in New Issue