Compare commits

...

3 Commits

Author SHA1 Message Date
poka fdac15a17e Add local install 2020-05-16 20:05:34 +02:00
poka 934abcaecb Fix ipfs install, add TODO 2020-05-16 19:57:08 +02:00
poka 5b3c2604d0 log install, change loveloan port 10010 2020-05-16 01:08:39 +02:00
5 changed files with 17 additions and 11 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
.profile
zen/tools/scraping/transiscope/transiscope.json
stat-install.log

View File

@ -45,14 +45,14 @@ echo "CREATE SYSTEMD ipfs SERVICE"
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/templates/ipfs/ipfs.service -o /tmp/ipfs.service
sudo cp -f /tmp/ipfs.service /etc/systemd/system/
sudo sed -i "s/_USER/$USER/g" /etc/systemd/system/ipfs.service
sudo systemctl daemon-reload || err+="Restart IPFS"
sudo systemctl daemon-reload || err+="Error to refresh system.d startup"
sudo systemctl enable ipfs || err+="Enable IPFS daemon"
# INIT ipfs
ipfs init -p lowpower || exit 1
# ipfs init -p server ## Uncomment for server infrastructure
sudo chown -R $USER:$USER ~/.ipfs || exit 1
#sudo chown -R $USER:$USER ~/.ipfs || exit 1
# ACTIVATE CONFIG OPTIONS
# PUBSUB
@ -66,12 +66,14 @@ ipfs config --json Experimental.Libp2pStreamMounting true
######### UPDATE BOOTSTRAP LIST ###########
ipfs bootstrap rm --all
ipfs bootstrap add /dnsaddr/rec.copylaradio.com/tcp/4001/ipfs/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
ipfs bootstrap add /dnsaddr/oasis.astroport.com/tcp/4001/ipfs/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
ipfs bootstrap add /ip4/51.15.166.54/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
ipfs bootstrap add /ip6/fd42:feed:feed:feed::1/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
sudo systemctl restart ipfs || err+="Restart IPFS daemon"
echo "Wait 10s for getting peers"
# TODO: Add while checking for getting peers, timeout 20s (@poka)
sleep 10
[[ ! $(ipfs swarm peers) ]] && echo "${c_red}No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues" && exit 1

View File

View File

@ -1,18 +1,23 @@
#!/bin/bash
# Variables
log="stat-install.log"
# Check requierments
sudo apt update
sudo apt install curl net-tools -y
echo "${c_green}Astroport installer
###
1. IPFS Swarm Layer$c_"
1. IPFS Swarm Layer$c_" | tee -a $log
# Full automatic (you trust this git depot)
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh | bash || exit 1
#curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh | bash | tee -a $log || exit 1
.install/ipfs_alone.sh | tee -a $log || exit 1
echo "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/make_G1SSB_secret.sh | bash || exit 1
#curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/make_G1SSB_secret.sh | bash | tee -a $log || exit 1
./zen/tools/make_G1SSB_secret.sh | tee -a $log || exit 1
echo "${c_green}Installation complete$c_"
echo "${c_green}Installation complete$c_" | tee -a $log
exit 0

View File

@ -1,7 +1,6 @@
server {
listen 80;
listen [::]:80;
listen 10010;
root /var/www/loveland;