Last active
March 10, 2019 15:28
-
-
Save openoms/ba843f7c44ff9c7ca0b5a80e12a0aeb4 to your computer and use it in GitHub Desktop.
Install OpenBazaar on a RaspiBlitz, install OpenBazaar client and migrate the store contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.zokos.com/blog/site/public/2019/01/12/Self-Host%20your%20Own%20OpenBazaar%20Store/ | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install build-essential git -y | |
export GOROOT=/usr/local/go | |
export PATH=$PATH:$GOROOT/bin | |
export GOPATH=/usr/local/gocode | |
export PATH=$PATH:$GOPATH/bin | |
go get github.com/OpenBazaar/openbazaar-go | |
cd /usr/local/gocode/src/github.com/OpenBazaar/openbazaar-go | |
go run openbazaard.go init | |
# Generating Ed25519 keypair...Done | |
# 2019/03/09 10:57:29 Initializing OpenBazaar node at /home/admin/.openbazaar | |
# OpenBazaar repo initialized at /home/admin/.openbazaar | |
go run openbazaard.go setapicreds | |
# Enter username: | |
# Enter a veerrrry strong password: | |
# Confirm your password: | |
cd $HOME/.openbazaar | |
sed -i -- 's/127.0.0.1/0.0.0.0/g' config | |
cd /usr/local/gocode/src/github.com/OpenBazaar/openbazaar-go | |
sudo ufw allow 4002 | |
go run openbazaard.go start & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#on the RaspiBlitz | |
go run openbazaard.go stop | |
rm -r /home/admin/.openbazaar | |
# on the linux desktop: | |
echo "Type the LAN IP ADDRESS of your RaspiBlitz followed by [ENTER]:" | |
read RASPIBLITZ_IP | |
scp -r ~/.openbazaar admin@$RASPIBLITZ_IP:/home/admin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install openbazaar client (https://github.com/OpenBazaar/openbazaar-desktop) | |
git clone https://github.com/OpenBazaar/openbazaar-desktop | |
npm install | |
npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment