generated from BlockchainCommons/secure-template
-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
installSpotbit_help.sh
50 lines (33 loc) · 1.35 KB
/
installSpotbit_help.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
#!/bin/bash
# Install Spotbit script help
# help definition
function help () {
bold=$(tput bold)
normal=$(tput sgr0)
underline=$(tput smul)
cat <<-END
---------------------------------
${bold}Blockchain Commons Spotbit Install Script${normal}
---------------------------------
Contributor: jodobear
The "installSpotbit.sh" script configures the system to run the Spotbit server. You can install it on any Debian based system.
--------------------------------------
${bold} Usage ${normal}
--------------------------------------
1. Edit the "installSpotbit.config" file. All the environment variables are defined there.
2. Run "installSpotbit.sh" file as root user like so: source installSpotbit.sh
NOTE: There is also a "installSpotbit.config.defaults" file which is used in case the "installSpotbit.config" is not present.
The script will do the following:
1. Setup the VPS Hostname, FQDN & Region if installing on VPS
2. Update system & set to autoupdate
3. Install ufw & gnupg2
4. Setup user "spotbit" with sudo access & set a password if probided.
5. Setup SSH keys & SSH IPs
6. Install & configure Tor & setup Hidden Service for Spotbit server.
7. Install Python 3.8 if not installed.
8. Install Python dependencies.
9. Copy spotbit config file to "~spotbit/.spotbit"
10. Move spotbit repo directory under user "spotbit"
END
}
help