forked from bulwark-crypto/shn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprepare.sh
49 lines (40 loc) · 1.01 KB
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/#!/usr/bin/env bash
clear
echo "Updating system..."
sleep 1
sudo apt-get update -y
sleep 1
echo "Upgrading system..."
sleep 1
sudo apt-get upgrade -y
sleep 1
echo "Running distupgrade..."
sleep 1
sudo apt-get dist-upgrade -y
sleep 1
echo "Downloading SHN installer..."
sleep 1
sudo wget https://raw.githubusercontent.com/KaneoHunter/shn/master/shn.sh
sudo chmod 777 shn.sh
echo "Expanding filesystem..."
sudo raspi-config nonint do_expand_rootfs
sleep 1
echo "Setting GPU memory..."
sudo raspi-config nonint do_memory_split 16
read -e -p "Would you like to set up your Secure Home Node with staking? [N/y] : " STAKING
if [[ ("$STAKING" == "y" || "$STAKING" == "Y") ]]; then
sudo wget https://raw.githubusercontent.com/KaneoHunter/shn/master/staking.sh
sudo chmod 777 staking.sh
clear
else
clear
fi
cat << EOL
In the next step, you will be asked to enter a new password and confirm it.
The password you type in will not be shown on screen, this is normal.
EOL
sudo passwd pi
clear
echo "Rebooting..."
sleep 1
sudo reboot