forked from shermand100/PiNodeXMR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall-PiNode-XMR.sh
72 lines (66 loc) · 2.38 KB
/
Install-PiNode-XMR.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
##To run me on cmd line wget -O - https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/master/Install-PiNode-XMR.sh | bash
echo -e "\e[32mPreparing Menu...\e[0m"
sleep 2
#Check user has whiptail - required to display menu
sudo apt-get install whiptail -y
CHOICE=$(whiptail --title "Welcome to the PiNode-XMR Project" --menu "For correct installation select your OS. \nBuild PiNodeXMR on top of..." 20 60 5 \
"1)" "Ubunutu Server 22.04/5 LTS (current 32/64bit)" \
"2)" "Armbian Debian (Bullseye - Discontinued)" \
"3)" "Armbian Debian (Buster - Discontinued)" \
"4)" "Raspberry Pi OS (Discontinued)" \
"5)" "Exit" 3>&2 2>&1 1>&3
)
case $CHOICE in
"1)")
#Commands for Ubuntu Server LTS (current)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/ubuntuServer-20.04/ubuntu-installer.sh
echo -e "\e[32mPiNode-XMR Ubuntu configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/ubuntu-installer.sh
sleep 2
./ubuntu-installer.sh
exit 1
;;
"2)")
#Commands for Armbian Bullseye (discontinued)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/Armbian-install/armbian-bullseye-installer.sh
echo -e "\e[32mPiNode-XMR Armbian configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/armbian-bullseye-installer.sh
sleep 2
./armbian-bullseye-installer.sh
exit 1
;;
"3)")
#Commands for Armbian Buster (end of life)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/Armbian-install/armbian-installer.sh
echo -e "\e[32mPiNode-XMR Armbian configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/armbian-installer.sh
sleep 2
./armbian-installer.sh
exit 1
;;
"4)")
#Commands for Raspberry Pi OS
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/monero-ecosystem/PiNode-XMR/Raspbian-install/raspbian.sh
echo -e "\e[32mPiNode-XMR Raspbian configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 /home/pi/raspbian.sh
sleep 2
./raspbian.sh
exit 1
;;
"5)") exit
;;
esac
exit