Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install OpenBazaar on a RaspiBlitz, install OpenBazaar client and migrate the store contents
# 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 &
#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/
# 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
You can’t perform that action at this time.