astrXbian/install.sh

52 lines
1.3 KiB
Bash
Raw Normal View History

2020-12-12 01:26:39 +01:00
#!/bin/bash
{
# Check requirements
sudo apt update
2020-12-12 02:11:42 +01:00
sudo apt install git curl net-tools libsodium23 libsodium-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
pip3 install cryptography Ed25519 base58 google protobuf
pip3 install silkaj --user
2020-12-12 01:26:39 +01:00
gitpath="https://git.p2p.legal/axiom-team/astroport/raw/master"
echo "Add colors ..."
curl -s $gitpath/.install/export_colors.sh | bash || exit 1
2020-12-12 16:18:46 +01:00
[[ -n $(grep ".bash_aliases" ~/.bashrc) ]] && echo ". ~/.bash_aliases" >> ~/.bashrc
2020-12-12 01:26:39 +01:00
. ~/.bash_aliases
# Get arguments
args="$@"
# IPFS install
echo -e "${c_green}Astroport installer
###
1. IPFS Swarm Layer$c_"
# Full automatic (you trust this git depot)
curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
# Set environment variables
curl -s $gitpath/.install/sys_checkOS.sh noexec | bash || exit 1
# SSB install (now using cesium+/gchange+)
# echo -e "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
# curl -s $gitpath/zen/tools/make_G1SSB_secret.sh | bash || exit 1
# LOVEland install
curl -s $gitpath/.install/loveland.sh | bash || exit 1
# Customs install
## Nextcloud
2020-12-12 01:43:01 +01:00
[[ $args =~ nextcloud ]] && cd /home/$USER/.zen/astrXbian && sudo -E bash .install/nextcloud/install.sh
2020-12-12 01:26:39 +01:00
echo -e "${c_green}Installation complete$c_"
exec bash
}