Browse Source

rename setup mode

#146
-k 6 years ago
parent
commit
ca3e551a26
No known key found for this signature in database GPG Key ID: 98C677C84A2340C1
  1. 4
      README.md
  2. 2
      home.admin/00infoLCD.sh
  3. 8
      home.admin/00mainMenu.sh
  4. 8
      home.admin/20initDialog.sh
  5. 2
      home.admin/70initLND.sh
  6. 2
      home.admin/90finishSetup.sh

4
README.md

@ -53,7 +53,7 @@ If you organizing an educational event where you want to support people learning
*There are two ways to start:*
### Scenario 1: “At a Hackathon/Event”
If you are at an event, ask for a ready-2-go set or if you have your own hardware ask for assistance to prepare your SD-Card and HDD. Then you are all set and and you can proceed with "SetUp your RaspiBlitz".
If you are at an event, ask for a ready-2-go set or if you have your own hardware ask for assistance to prepare your SD-Card and HDD. Then you are all set and and you can proceed with "Setup your RaspiBlitz".
### Scenario 2 “Start at Home”
You got all the hardware of the shopping list above and you have no further assistance. Then you need to prepare your SD-Card yourself .. this scenario is still experimental, feedback needed and can take some time.
@ -221,7 +221,7 @@ Already integrated features of the RaspiBlitz are/willbe listed as part of the m
## Educational Tutorials
*Once the SetUp Process is done, the learning and building should begin ... more detailed educational content should be added in this section in the future.*
*Once the Setup Process is done, the learning and building should begin ... more detailed educational content should be added in this section in the future.*
A good way to start for now is to get some Testnet coins, connect to other peers and make your first transactions. You find tutorials for this at the original RaspiBolt guide: https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_40_lnd.md#get-some-testnet-bitcoin

2
home.admin/00infoLCD.sh

@ -60,7 +60,7 @@ if [ "$USER" = "pi" ]; then
l1="Login to your RaspiBlitz with:\n"
l2="ssh admin@${localip}\n"
l3="Use your Password A\n"
dialog --backtitle "RaspiBlitz - SetUp Mode" --infobox "$l1$l2$l3" 5 34
dialog --backtitle "RaspiBlitz - Setup Mode" --infobox "$l1$l2$l3" 5 34
sleep 10
fi

8
home.admin/00mainMenu.sh

@ -18,19 +18,19 @@ fi
if [ ${setupState} -eq 0 ]; then
# start setup
BACKTITLE="RaspiBlitz - SetUp"
BACKTITLE="RaspiBlitz - Setup"
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
MENU="\nYou need to setup and init Bitcoin and Lightning services: \n "
OPTIONS+=(1 "Start the SetUp of your RaspiBlitz")
OPTIONS+=(1 "Start the Setup of your RaspiBlitz")
HEIGHT=10
elif [ ${setupState} -lt 100 ]; then
# continue setup
BACKTITLE="RaspiBlitz - SetUp"
BACKTITLE="RaspiBlitz - Setup"
TITLE="⚡ Welcome to your RaspiBlitz ⚡"
MENU="\nContinue setup and init of Bitcoin and Lightning services: \n "
OPTIONS+=(1 "Continue SetUp of your RaspiBlitz")
OPTIONS+=(1 "Continue Setup of your RaspiBlitz")
HEIGHT=10
else

8
home.admin/20initDialog.sh

@ -7,7 +7,7 @@ while [ ${#result} -eq 0 ]
do
l1="Please enter the name of your new RaspiBlitz:\n"
l2="one word, keep characters basic & not too long"
dialog --backtitle "RaspiBlitz - SetUp" --inputbox "$l1$l2" 11 52 2>$_temp
dialog --backtitle "RaspiBlitz - Setup" --inputbox "$l1$l2" 11 52 2>$_temp
result=`cat $_temp`
shred $_temp
done
@ -20,7 +20,7 @@ sed -i "7s/.*/alias=$result/" ./assests/lnd.conf
echo $result >> /home/admin/.hostname
# show password info dialog
dialog --backtitle "RaspiBlitz - SetUp" --msgbox "RaspiBlitz uses 4 different passwords.
dialog --backtitle "RaspiBlitz - Setup" --msgbox "RaspiBlitz uses 4 different passwords.
Referenced as password A, B, C and D.
A) Master User Password
@ -33,7 +33,7 @@ Write them down & store them in a safe place.
" 14 52
# ask user for new password A
dialog --backtitle "RaspiBlitz - SetUp"\
dialog --backtitle "RaspiBlitz - Setup"\
--inputbox "Please enter your Master/Admin Password A:\n!!! This is new password to login per SSH !!!" 10 52 2>$_temp
# get user input
@ -62,7 +62,7 @@ dialog --backtitle "RaspiBlitz" --msgbox "OK - password changed to '$result'\nfo
result=""
while [ ${#result} -lt 8 ]
do
dialog --backtitle "RaspiBlitz - SetUp"\
dialog --backtitle "RaspiBlitz - Setup"\
--inputbox "Enter your RPC Password B (min 8 chars):" 9 52 2>$_temp
result=`cat $_temp`
shred $_temp

2
home.admin/70initLND.sh

@ -175,5 +175,5 @@ fi
# set SetupState (scan is done - so its 80%)
echo "80" > /home/admin/.setup
###### finishSetUp
###### finishSetup
./90finishSetup.sh

2
home.admin/90finishSetup.sh

@ -38,7 +38,7 @@ echo "Setting new network hostname '$hostname'"
sudo hostnamectl set-hostname ${hostname}
# show info to user
dialog --backtitle "RaspiBlitz - SetUp" --title " RaspiBlitz Setup is done :) " --msgbox "
dialog --backtitle "RaspiBlitz - Setup" --title " RaspiBlitz Setup is done :) " --msgbox "
Press OK for a final reboot.
Remember: After every reboot

Loading…
Cancel
Save