From b88f433a8e434b3f531c61310c07c8897bc8595a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Nov 2015 16:54:43 +0000 Subject: [PATCH] Password in large letters --- src/freedombone-image-customise | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 3c011d6b..5b129db1 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -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 <