-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnode.sh
executable file
·626 lines (530 loc) · 66.2 KB
/
node.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
#!/usr/bin/env bash
tput setaf 6; echo '
░█████╗░██╗░░██╗░█████╗░███╗░░██╗██████╗░██████╗░░█████╗░ ░██████╗████████╗░█████╗░████████╗██╗░█████╗░███╗░░██╗
██╔══██╗██║░░██║██╔══██╗████╗░██║██╔══██╗██╔══██╗██╔══██╗ ██╔════╝╚══██╔══╝██╔══██╗╚══██╔══╝██║██╔══██╗████╗░██║
██║░░╚═╝███████║███████║██╔██╗██║██║░░██║██████╔╝███████║ ╚█████╗░░░░██║░░░███████║░░░██║░░░██║██║░░██║██╔██╗██║
██║░░██╗██╔══██║██╔══██║██║╚████║██║░░██║██╔══██╗██╔══██║ ░╚═══██╗░░░██║░░░██╔══██║░░░██║░░░██║██║░░██║██║╚████║
╚█████╔╝██║░░██║██║░░██║██║░╚███║██████╔╝██║░░██║██║░░██║ ██████╔╝░░░██║░░░██║░░██║░░░██║░░░██║╚█████╔╝██║░╚███║
░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝ ╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░╚════╝░╚═╝░░╚══╝
███╗░░██╗░█████╗░██████╗░███████╗ ███╗░░░███╗░█████╗░███╗░░██╗░█████╗░░██████╗░███████╗██████╗░
████╗░██║██╔══██╗██╔══██╗██╔════╝ ████╗░████║██╔══██╗████╗░██║██╔══██╗██╔════╝░██╔════╝██╔══██╗
██╔██╗██║██║░░██║██║░░██║█████╗░░ ██╔████╔██║███████║██╔██╗██║███████║██║░░██╗░█████╗░░██████╔╝
██║╚████║██║░░██║██║░░██║██╔══╝░░ ██║╚██╔╝██║██╔══██║██║╚████║██╔══██║██║░░╚██╗██╔══╝░░██╔══██╗
██║░╚███║╚█████╔╝██████╔╝███████╗ ██║░╚═╝░██║██║░░██║██║░╚███║██║░░██║╚██████╔╝███████╗██║░░██║
╚═╝░░╚══╝░╚════╝░╚═════╝░╚══════╝ ╚═╝░░░░░╚═╝╚═╝░░╚═╝╚═╝░░╚══╝╚═╝░░╚═╝░╚═════╝░╚══════╝╚═╝░░╚═╝'; tput sgr0
# Renders a text based list of options that can be selected by the
# user using up, down and enter keys and returns the chosen option.
#
# Arguments : list of options, maximum of 256
# "opt1" "opt2" ...
# Return value: selected index (0 for opt1, 1 for opt2 ...)
function select_option {
tput setaf 6;
# little helpers for terminal print control and key input
ESC=$( printf "\033")
cursor_blink_on() { printf "$ESC[?25h"; }
cursor_blink_off() { printf "$ESC[?25l"; }
cursor_to() { printf "$ESC[$1;${2:-1}H"; }
print_option() { printf " $1 "; }
print_selected() { printf " $ESC[7m $1 $ESC[27m"; }
get_cursor_row() { IFS=';' read -sdR -p $'\E[6n' ROW COL; echo ${ROW#*[}; }
key_input() { read -s -n3 key 2>/dev/null >&2
if [[ $key = $ESC[A ]]; then echo up; fi
if [[ $key = $ESC[B ]]; then echo down; fi
if [[ $key = "" ]]; then echo enter; fi; }
# initially print empty new lines (scroll down if at bottom of screen)
for opt; do printf "\n"; done
# determine current screen position for overwriting the options
local lastrow=`get_cursor_row`
local startrow=$(($lastrow - $#))
# ensure cursor and input echoing back on upon a ctrl+c during read -s
trap "cursor_blink_on; stty echo; printf '\n'; exit" 2
cursor_blink_off
local selected=0
while true; do
# print options by overwriting the last lines
local idx=0
for opt; do
cursor_to $(($startrow + $idx))
if [ $idx -eq $selected ]; then
print_selected "$opt"
else
print_option "$opt"
fi
((idx++))
done
# user key control
case `key_input` in
enter) break;;
up) ((selected--));
if [ $selected -lt 0 ]; then selected=$(($# - 1)); fi;;
down) ((selected++));
if [ $selected -ge $# ]; then selected=0; fi;;
esac
done
# cursor position back to normal
cursor_to $lastrow
printf "\n"
cursor_blink_on
tput sgr0
return $selected
}
#Choice Selection
echo "Select an OS using up/down keys and enter to confirm:"
function select_opt {
select_option "$@" 1>&2
local result=$?
echo $result
return $result
}
case `select_opt "Arch Linux" "Ubuntu" "Os is set up" "Quit"` in
#Arch
0) sudo pacman -Syyu aria2 atop autoconf automake base binutils bison bmon btrfs-progs btop clang cronie cryptsetup docker dstat fakeroot flex gcc git go gptfdisk groff grub haveged htop iftop iptraf-ng jq llvm lvm2 m4 make mdadm neovim net-tools nethogs openssh patch pkgconf python rsync rustup screen sudo texinfo unzip vi vim vnstat wget which xfsprogs hddtemp python-setuptools npm python-bottle python-docker python-matplotlib python-netifaces python-zeroconf python-pystache time nload nmon glances gtop bwm-ng bpytop duf go-ipfs fish pigz zerotier-one sysstat github-cli pm2 jq;;
#Ubuntu
1) sudo apt install -y tar unzip wget curl gcc make snap && sudo snap install go --classic && sudo snap install jq;;
#Already set up
2) ;;
#Quit
3) exit;;
esac
echo "Select a network option using up/down keys and enter to confirm:"
function select_opt {
select_option "$@" 1>&2
local result=$?
echo $result
return $result
}
case `select_opt "Akash" "Canto" "Chihuahua" "Comdex" "Evmos" "Gravity" "Kava" "Osmosis" "Passage" "Stride" "Cancel"` in
#AKASH = DONE
0) tput setaf 1; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 1; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 1; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_akash=$(curl -s https://akash.api.chandrastation.com/node_info)
export AKASH_VERSION=$(echo $response_akash | jq -r '.application_version.version')
git clone https://github.com/ovrclk/akash
cd akash/
git checkout v$AKASH_VERSION
make install
cp ~/go/bin/akash /usr/bin/
akash init $NAME --chain-id akashnet-2 --home $WORKINGDIRECTORY/.akash/
sed -i 's/seeds = ""/seeds ="[email protected]:26656"/g' $WORKINGDIRECTORY/.akash/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26603,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:12856,[email protected]:26656,[email protected]:12856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2020,[email protected]:26656,[email protected]:26656,[email protected]:39656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:46656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2020,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:12856,[email protected]:29656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26219,[email protected]:26656,[email protected]:26696,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"/g' $WORKINGDIRECTORY/.akash/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01uakt"/g' $WORKINGDIRECTORY/.akash/config/app.toml
chmod +x ../statesync/akash-statesync.sh
../statesync/akash-statesync.sh
sudo rm $WORKINGDIRECTORY/.akash/config/genesis.json
wget https://github.com/ovrclk/net/raw/master/mainnet/genesis.json -P $WORKINGDIRECTORY/.akash/config/
sudo cat << EOF > /etc/systemd/system/akash.service
[Unit]
Description=Akash Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/akash start --home $WORKINGDIRECTORY/.akash/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable akash
sudo systemctl start akash
tput setaf 1; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u akash -f --no-hostname -o cat`'; tput sgr0;;
#CANTO = DONE
1) tput setaf 2; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 2; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 2; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_canto=$(curl -s https://canto.api.chandrastation.com/node_info)
export CANTO_VERSION=$(echo $response_canto | jq -r '.application_version.version')
git clone https://github.com/Canto-Network/Canto
cd Canto/
git checkout v$CANTO_VERSION
make install
cp ~/go/bin/cantod /usr/bin/
sudo cantod init $NAME --chain-id canto_7700-1 --home $WORKINGDIRECTORY/.cantod/
sudo sed -i 's/seeds = ""/seeds = "[email protected]:15556"/g' $WORKINGDIRECTORY/.cantod/config/config.toml
sudo sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:51656,[email protected]:51656,[email protected]:30656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:35095,[email protected]:36656,[email protected]:27656,[email protected]:26676,[email protected]:35095,[email protected]:35095,[email protected]:26656,[email protected]:26656,[email protected]:30656,[email protected]:17656,[email protected]:32656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:10004,[email protected]:26656,[email protected]:26858,[email protected]:26656,[email protected]:26656,[email protected]:32656,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:23656,[email protected]:26656,[email protected]:58656,[email protected]:27656,[email protected]:36656,[email protected]:26656,[email protected]:26666,[email protected]:26656,[email protected]:27756,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:60656,[email protected]:22496,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:56656,[email protected]:27656,[email protected]:26656,[email protected]:21216,[email protected]:27650,[email protected]:46656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:51656,[email protected]:27656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:10456,[email protected]:26656,[email protected]:26766,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:16656,[email protected]:26678,[email protected]:26656,[email protected]:26656,[email protected]:26656"/g' $WORKINGDIRECTORY/.cantod/config/config.toml
sudo sed -i 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "4000000000000acanto"/g' $WORKINGDIRECTORY/.cantod/config/app.toml
chmod +x ../statesync/canto-statesync.sh
../statesync/canto-statesync.sh
sudo rm $WORKINGDIRECTORY/.cantod/config/genesis.json
sudo wget https://snapshots.polkachu.com/genesis/canto/genesis.json -P $WORKINGDIRECTORY/.cantod/config/
sudo cat << EOF > /etc/systemd/system/cantod.service
[Unit]
Description=Canto Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/cantod start --home $WORKINGDIRECTORY/.cantod/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable cantod
sudo systemctl start cantod
tput setaf 2; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u cantod -f --no-hostname -o cat`'; tput sgr0;;
#CHIHUAHUA = DONE
2) tput setaf 3; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 3; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 3; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_chihuahua=$(curl -s https://chihuahua.api.chandrastation.com/node_info)
export CHIHUAHUA_VERSION=$(echo $response_chihuahua | jq -r '.application_version.version')
git clone https://github.com/ChihuahuaChain/chihuahua.git
cd chihuahua
git checkout v$CHIHUAHUA_VERSION
make install
mv ~/go/bin/chihuahuad /usr/bin/
chihuahuad init $NAME --chain-id chihuahua-1 --home $WORKINGDIRECTORY/.chihuahuad/
sed -i 's/seeds = ""/seeds = "[email protected]:12956"/g' $WORKINGDIRECTORY/.chihuahuad/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:23356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:10556,[email protected]:26656,[email protected]:26656,[email protected]:12956,[email protected]:12956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2000,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:3000,[email protected]:58656,[email protected]:26656,[email protected]:2000,[email protected]:56646,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2000,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12956,[email protected]:12956,[email protected]:12956,[email protected]:26656,[email protected]:2050,[email protected]:12956,[email protected]:3440,[email protected]:26656,[email protected]:10356,[email protected]:10156,[email protected]:26656,[email protected]:10023,[email protected]:26656,[email protected]:27756"/g' $WORKINGDIRECTORY/.chihuahuad/config/config.toml
sed -i 's/minimum-gas-prices = "0stake"/minimum-gas-prices = "0.025uhuahua"/g' $WORKINGDIRECTORY/.chihuahuad/config/app.toml
chmod +x ../statesync/chihuahua-statesync.sh
../statesync/chihuahua-statesync.sh
sudo rm $WORKINGDIRECTORY/.chihuahuad/config/genesis.json
wget https://snapshots.polkachu.com/genesis/chihuahua/genesis.json -P $WORKINGDIRECTORY/.chihuahuad/config/
cat << EOF > /etc/systemd/system/chihuahuad.service
[Unit]
Description=Chihuahua Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/chihuahuad start --home $WORKINGDIRECTORY/.chihuahuad/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable chihuahuad
systemctl start chihuahuad
tput setaf 3; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u chihuahuad -f --no-hostname -o cat`'; tput sgr0;;
#COMDEX = DONE
3) tput setaf 1; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 1; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 1; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_comdex=$(curl -s https://comdex.api.chandrastation.com/node_info)
export COMDEX_VERSION=$(echo $response_comdex | jq -r '.application_version.version')
git clone https://github.com/comdex-official/comdex
cd comdex
git checkout v$COMDEX_VERSION
make install
cp ~/go/bin/comdex /usr/bin/comdex
comdex init $NAME --home $WORKINGDIRECTORY/.comdex/
sed -i 's/seeds = ""/seeds ="[email protected]:13156"/g' $WORKINGDIRECTORY/.comdex/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26706,[email protected]:26656,[email protected]:26686,[email protected]:26656,[email protected]:26656,[email protected]:12060,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:2040,[email protected]:26656,[email protected]:26656,[email protected]:27001,[email protected]:26656,[email protected]:26656,[email protected]:3040,[email protected]:13156,[email protected]:2160,[email protected]:23556,[email protected]:2000,[email protected]:26676,[email protected]:14656,[email protected]:46656,[email protected]:2000,[email protected]:13156,[email protected]:26656,[email protected]:10556,[email protected]:13156,[email protected]:26656,[email protected]:26119,[email protected]:3040,[email protected]:13156,[email protected]:13156,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26786,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26179,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:36656,[email protected]:10556"/g' $WORKINGDIRECTORY/.comdex/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01ucmdx"/g' $WORKINGDIRECTORY/.comdex/config/app.toml
chmod +x ../statesync/comdex-statesync.sh
../statesync/comdex-statesync.sh
sudo rm $WORKINGDIRECTORY/.comdex/config/genesis.json
wget https://snapshots.polkachu.com/genesis/comdex/genesis.json -P $WORKINGDIRECTORY/.comdex/config/
cat << EOF > /etc/systemd/system/comdex.service
[Unit]
Description=Comdex Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/comdex start --home $WORKINGDIRECTORY/.comdex/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable comdex
sudo systemctl start comdex
tput setaf 1; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u comdex -f --no-hostname -o cat`'; tput sgr0;;
#EVMOS = DONE
4) tput setaf 1; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 1; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 1; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_evmos=$(curl -s https://evmos.api.chandrastation.com/node_info)
export EVMOS_VERSION=$(echo $response_evmos | jq -r '.application_version.version')
git clone https://github.com/evmos/evmos
cd evmos/
git checkout v$EVMOS_VERSION
make install
cp ~/go/bin/evmosd /usr/bin/evmosd
evmosd init $NAME --home $WORKINGDIRECTORY/.evmosd/
sed -i 's/seeds = ""/seeds ="[email protected]:13456"/g' $WORKINGDIRECTORY/.evmosd/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:27856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26618,[email protected]:26656,[email protected]:10756,[email protected]:26736,[email protected]:30004,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26199,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:21656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26666,[email protected]:13455,[email protected]:26656,[email protected]:12070,[email protected]:11956,[email protected]:26673,[email protected]:26656,[email protected]:26656,[email protected]:13456,[email protected]:13456,[email protected]:26256,[email protected]:26656,[email protected]:26656,[email protected]:10656,[email protected]:22456,[email protected]:26656,[email protected]:26618,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2000,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:21656,[email protected]:26656,[email protected]:17369,[email protected]:26656,[email protected]:32656,[email protected]:26656,[email protected]:26656,[email protected]:26634,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:26661,[email protected]:27856,[email protected]:2000,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:13456,[email protected]:26656,[email protected]:26656,[email protected]:27856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:10956,[email protected]:26666,[email protected]:27656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:13456,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27856,[email protected]:2000,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:32656,[email protected]:27856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26456,[email protected]:26706,[email protected]:11956,[email protected]:21656,[email protected]:26656,[email protected]:26656,[email protected]:26656"/g' $WORKINGDIRECTORY/.evmosd/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "4500000000aevmos"/g' $WORKINGDIRECTORY/.evmosd/config/app.toml
chmod +x ../statesync/evmos-statesync.sh
../statesync/evmos-statesync.sh
sudo rm $WORKINGDIRECTORY/.evmosd/config/genesis.json
wget https://snapshots.polkachu.com/genesis/evmos/genesis.json -P $WORKINGDIRECTORY/.evmosd/config/
cat << EOF > /etc/systemd/system/evmosd.service
[Unit]
Description=Evmos Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/evmosd start --home $WORKINGDIRECTORY/.evmosd/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable evmosd
sudo systemctl start evmosd
tput setaf 1; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u evmosd -f --no-hostname -o cat`'; tput sgr0;;
#GRAVITY = DONE
5) tput setaf 6; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 6; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 6; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_gravity=$(curl -s https://gravity.api.chandrastation.com/node_info)
export GRAVITY_VERSION=$(echo $response_gravity | jq -r '.application_version.version')
git clone https://github.com/Gravity-Bridge/Gravity-Bridge
cd Gravity-Bridge/
git checkout v$GRAVITY_VERSION
make install
cp ~/go/bin/gravity /usr/bin/gravity
gravity init $NAME --home $WORKINGDIRECTORY/.gravity/
sed -i 's/seeds = ""/seeds ="[email protected]:14256"/g' $WORKINGDIRECTORY/.gravity/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27656,[email protected]:36656,[email protected]:26656,[email protected]:34095,[email protected]:3000,[email protected]:26636,[email protected]:26656,[email protected]:26656,[email protected]:53509,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:11114,[email protected]:27656,[email protected]:26656,[email protected]:15656,[email protected]:26656,[email protected]:33656,[email protected]:26656,[email protected]:26656,[email protected]:14256,[email protected]:26656,[email protected]:26656,[email protected]:10256,[email protected]:26656,[email protected]:26656,[email protected]:26668,[email protected]:26656,[email protected]:14256,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656"/g' $WORKINGDIRECTORY/.gravity/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01ucmdx"/g' $WORKINGDIRECTORY/.gravity/config/app.toml\
chmod +x ../statesync/gravity-statesync.sh
../statesync/gravity-statesync.sh
sudo rm $WORKINGDIRECTORY/.gravity/config/genesis.json
wget https://snapshots.polkachu.com/genesis/gravity/genesis.json -P $WORKINGDIRECTORY/.gravity/config/
cat << EOF > /etc/systemd/system/gravity.service
[Unit]
Description=Gravity Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/gravity start --home $WORKINGDIRECTORY/.gravity/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable gravity
sudo systemctl start gravity
tput setaf 6; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u gravity -f --no-hostname -o cat`'; tput sgr0;;
#KAVA = DONE
6) tput setaf 1; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 1; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 1; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_kava=$(curl -s https://kava.api.chandrastation.com/node_info)
export KAVA_VERSION=$(echo $response_kava | jq -r '.application_version.version')
git clone https://github.com/Kava-Labs/kava
cd kava/
git checkout v$KAVA_VERSION
make install
cp ~/go/bin/kava /usr/bin/kava
kava init $NAME --home $WORKINGDIRECTORY/.kava/
sed -i 's/seeds = ""/seeds ="[email protected]:13956"/g' $WORKINGDIRECTORY/.kava/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:10856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:21656,[email protected]:26686,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:13956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:11656,[email protected]:10856,[email protected]:26666,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26634,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:13956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:34656,[email protected]:26656,[email protected]:26656,[email protected]:26656"/g' $WORKINGDIRECTORY/.kava/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01ucmdx"/g' $WORKINGDIRECTORY/.kava/config/app.toml
chmod +x ../statesync/kava-statesync.sh
../statesync/kava-statesync.sh
sudo rm $WORKINGDIRECTORY/.kava/config/genesis.json
wget https://snapshots.polkachu.com/genesis/kava/genesis.json -P $WORKINGDIRECTORY/.kava/config/
cat << EOF > /etc/systemd/system/kava.service
[Unit]
Description=Kava Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/kava start --home $WORKINGDIRECTORY/.kava/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable kava
sudo systemctl start kava
tput setaf 1; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u kava -f --no-hostname -o cat`'; tput sgr0;;
#OSMOSIS
7) tput setaf 4; echo 'What would you like your node name to be?'; tput sgr0
read NAME
t
tput setaf 4; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 4; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_osmosis=$(curl -s https://osmosis.api.chandrastation.com/node_info)
export OSMOSIS_VERSION=$(echo $response_osmosis | jq -r '.application_version.version')
git clone https://github.com/osmosis-labs/osmosis
cd osmosis
git checkout v$OSMOSIS_VERSION
make install
cp ~/go/bin/osmosisd /usr/bin/osmosisd
osmosisd init $NAME --home $WORKINGDIRECTORY/.osmosisd/
sed -i 's/seeds = ""/seeds ="[email protected]:12556"/g' $WORKINGDIRECTORY/.osmosisd/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2004,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26716,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12000,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26716,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:31316,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12556,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2000,[email protected]:12556"/g' $WORKINGDIRECTORY/.osmosisd/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01ucmdx"/g' $WORKINGDIRECTORY/.osmosisd/config/app.toml
chmod +x ../statesync/osmosis-statesync.sh
../statesync/osmosis-statesync.sh
sudo rm $WORKINGDIRECTORY/.osmosisd/config/genesis.json
wget https://snapshots.polkachu.com/genesis/osmosis/genesis.json -P $WORKINGDIRECTORY/.osmosisd/config/
cat << EOF > /etc/systemd/system/osmosisd.service
[Unit]
Description=Osmosis Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/osmosisd start --home $WORKINGDIRECTORY/.osmosisd/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable osmosisd
sudo systemctl start osmosisd
tput setaf 4; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u osmosisd -f --no-hostname -o cat`'; tput sgr0;;
#PASSAGE
8) tput setaf 7; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 7; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 7; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_passage=$(curl -s https://passage.api.chandrastation.com/node_info)
export PASSAGE_VERSION=$(echo $response_passage | jq -r '.application_version.version')
git clone https://github.com/envadiv/Passage3D
cd Passage3D/
git checkout v$PASSAGE_VERSION
make install
cp ~/go/bin/passage /usr/bin/passage
passage init $NAME --home $WORKINGDIRECTORY/.passage/
sed -i 's/seeds = ""/seeds ="[email protected]:15656"/g' $WORKINGDIRECTORY/.passage/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:46656,[email protected]:26656,[email protected]:26656,[email protected]:2450,[email protected]:26916,[email protected]:17656,[email protected]:26656,[email protected]:36156,[email protected]:17656,[email protected]:26916,[email protected]:10656,[email protected]:26656"/g' $WORKINGDIRECTORY/.passage/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01ucmdx"/g' $WORKINGDIRECTORY/.passage/config/app.toml
chmod +x ../statesync/passage-statesync.sh
../statesync/passage-statesync.sh
sudo rm $WORKINGDIRECTORY/.passage/config/genesis.json
wget https://snapshots.polkachu.com/genesis/passage/genesis.json -P $WORKINGDIRECTORY/.passage/config/
cat << EOF > /etc/systemd/system/passage.service
[Unit]
Description=Passage Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/passage start --home $WORKINGDIRECTORY/.passage/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable passage
sudo systemctl start passage
tput setaf 7; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u passage -f --no-hostname -o cat`'; tput sgr0;;
#STRIDE
9) tput setaf 5; echo 'What would you like your node name to be?'; tput sgr0
read NAME
tput setaf 5; echo 'Input Your System Username'; tput sgr0
read USERNAME
tput setaf 5; echo 'Input Your Home Directory Path'; tput sgr0
read WORKINGDIRECTORY
response_stride=$(curl -s https://stride.api.chandrastation.com/node_info)
export STRIDE_VERSION=$(echo $response_stride | jq -r '.application_version.version')
git clone https://github.com/Stride-Labs/stride
cd stride/
git checkout v$STRIDE_VERSION
make install
cp ~/go/bin/strided /usr/bin/strided
strided init $NAME --home $WORKINGDIRECTORY/.strided/
sed -i 's/seeds = ""/seeds ="[email protected]:12256"/g' $WORKINGDIRECTORY/.strided/config/config.toml
sed -i 's/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:46656,[email protected]:26656,[email protected]:10456,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27005,[email protected]:26656,[email protected]:12256,[email protected]:26656,[email protected]:28666,[email protected]:26656,[email protected]:26656,[email protected]:51656,[email protected]:26656,[email protected]:36656,[email protected]:21656,[email protected]:26656,[email protected]:26656,[email protected]:5010,[email protected]:26656,[email protected]:10156,[email protected]:26656,[email protected]:26656,[email protected]:11656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:22556,[email protected]:26656,[email protected]:11656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26886,[email protected]:26656,[email protected]:23856,[email protected]:26656,[email protected]:26656,[email protected]:54356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:31309,[email protected]:26656,[email protected]:10456,[email protected]:21016,[email protected]:26636,[email protected]:26639,[email protected]:16656,[email protected]:26696,[email protected]:26639,[email protected]:26656,[email protected]:26456,[email protected]:10156,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:31656,[email protected]:2062,[email protected]:12256,[email protected]:26656,[email protected]:26656,[email protected]:24095,[email protected]:26656,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:26639,[email protected]:26656,[email protected]:26656,[email protected]:26686,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:24095,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26636,[email protected]:10456,[email protected]:26656,[email protected]:26665,[email protected]:12256,[email protected]:35656,[email protected]:26626,[email protected]:45656,[email protected]:26656,[email protected]:26886,[email protected]:26656,[email protected]:26603,[email protected]:4656,[email protected]:26656,[email protected]:24095,[email protected]:16656,[email protected]:27013,[email protected]:12256,[email protected]:26656,[email protected]:27012,[email protected]:26996,[email protected]:16656,[email protected]:26656,[email protected]:50056,[email protected]:21016,[email protected]:6969"/g' $WORKINGDIRECTORY/.strided/config/config.toml
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01ucmdx"/g' $WORKINGDIRECTORY/.strided/config/app.toml
chmod +x ../statesync/stride-statesync.sh
../statesync/stride-statesync.sh
sudo rm $WORKINGDIRECTORY/.strided/config/genesis.json
wget https://github.com/osmosis-labs/osmosis/raw/main/networks/osmosis-1/genesis.json -P $WORKINGDIRECTORY/.strided/config/
cat << EOF > /etc/systemd/system/strided.service
[Unit]
Description=Stride Node
After=network.target
[Service]
Type=simple
User=$USERNAME
WorkingDirectory=$WORKINGDIRECTORY
ExecStart=/usr/bin/strided start --home $WORKINGDIRECTORY/.strided/
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable strided
sudo systemctl start strided
tput setaf 5; echo 'Congrats your node is now syncing with the network | Check the logs with `journalctl -u strided -f --no-hostname -o cat`'; tput sgr0;;
10) echo "selected Cancel";;
esac