From 8740b69be0e786cf3e6d7d8fb156f525c6d372ae Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 8 Oct 2017 13:34:00 -0700 Subject: [PATCH] name fixes --- larbs.sh | 21 +++++++++++---------- larbs_user.sh | 2 +- pacaur.tar.gz | Bin 1012 -> 0 bytes 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 pacaur.tar.gz diff --git a/larbs.sh b/larbs.sh index 5a12f17..34e5638 100755 --- a/larbs.sh +++ b/larbs.sh @@ -6,24 +6,24 @@ red() { printf "\033[0;31m $* \033[0m\n" && (chmod 777 LARBS.log && echo ERROR: dialog --title "Welcome!" --msgbox "Welcome to Luke's Auto-Rice Bootstrapping Script!\n\nThis script will automatically install a fully-featured i3wm Arch Linux desktop, which I use as my main machine.\n\n-Luke" 10 60 -dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> name +dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> .name -dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> pass1 -dialog --no-cancel --passwordbox "Reype password." 10 60 2> pass2 +dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> .pass1 +dialog --no-cancel --passwordbox "Reype password." 10 60 2> .pass2 -while [ $(cat pass1) != $(cat pass2) ] +while [ $(cat .pass1) != $(cat .pass2) ] do - dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> pass1 - dialog --no-cancel --passwordbox "Reype password." 10 60 2> pass2 + dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> .pass1 + dialog --no-cancel --passwordbox "Reype password." 10 60 2> .pass2 done -NAME=$(cat name) +NAME=$(cat .name) useradd -m -g wheel -s /bin/bash $NAME -echo "$NAME:$(cat pass1)" | chpasswd +echo "$NAME:$(cat .pass1)" | chpasswd #I shred the password for safety's sake. -shred -u pass1 -shred -u pass2 +shred -u .pass1 +shred -u .pass2 cmd=(dialog --separate-output --checklist "Select additional packages to install with :" 22 76 16) options=(1 "LaTeX packages" off @@ -106,6 +106,7 @@ done #pacman --noconfirm --needed -S projectm-pulseaudio blue Downloading next portion of the script \(user.sh\)... +echo $NAME > /home/$NAME/.name && chmod 777 /home/$NAME/.name curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/user.sh > /home/$NAME/user.sh && blue Running user.sh script as $NAME... sudo -u $NAME bash /home/$NAME/user.sh || red Error when running user.sh... rm -f /home/$NAME/user.sh diff --git a/larbs_user.sh b/larbs_user.sh index 4a11f5a..4b1c1b1 100755 --- a/larbs_user.sh +++ b/larbs_user.sh @@ -3,7 +3,7 @@ blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;} red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;} -NAME=$(cat .firstrun) +NAME=$(cat .name) blue Changing directory to /home/$NAME... cd /home/$NAME diff --git a/pacaur.tar.gz b/pacaur.tar.gz deleted file mode 100644 index e9d383f9e714bdaff3a650a22578726d7144f653..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1012 zcmVBTQ|YC9R~6+`(z2C3um?s&)NuEZZ7*-oSQj8|0SbTHe|G1hG6rB}&Y}CC~HnklwNN-NXG);0_SU)0AbU zPX;a<42dJoid~^TvuP5=*_J3z@{fCadTYuYe;J%zBnjL)W^Wp2sleXU@5(d*ORC$3-O(4&f_ww0t3E0CQmW{ql$&O@{c)*Kow_yDZL~nENh~> znU0lSiWiKsf@M_H0W+Q`z0Etx|73hyz@EV7wm?)g-+qTMlwN?zqAF_jl9*3)-UVWk zJPYHw(i3^b342lSW*vL{fthUv47gdwdtSO@Sa@$JevZx?X2Vz$ z8U`>1YFpg_RO{{l!j|3e{#kZ|LQ8M|;$UQNx-_i`{-#Y-$8Z&#w-g6Q$0!aym7t0f zdhr&0R1knrq^>;Zon^IIDRMeUafWogD#H;Bf;E}->p3I|Qthh`&56(*&MKU!u+S7# zeYhG!snp*ZLp5|Aipika`)hA#V=06kPo-59PbxDHsYow<`#{qwBLH2FymeoBzD#6Vl&OT$@bKUh}p6Rda zddRMbFlQ!wBqJT}M3Jz%0On>Y_8zI;V{8;Rm3W=~S46oKktyPm>0yRU-{dDpI6D!r$RG34H1B2)z!5W2! zX-sHgtc6^QDlIOx-?5ejT9#-9Jf+4fO)NB#XoAD@V}i>#(@L%_quKcW)AtDek*rdG z@LV~;3G|)VydBT(Ce!KFyUEm4H+#iAOv^f-IVb^(k)FTYPM6;_Zw=BsV>R!;_Qy#= iLPA19LPA19LPA19LPA19LPA2~U*m7_tlQB5C;$Ktw)@fm