merge gists

This commit is contained in:
openoms
2019-03-17 09:43:22 +00:00
parent 3c98f3b66b
commit 8813c3044c
5 changed files with 131 additions and 26 deletions

View File

@@ -0,0 +1,50 @@
# 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/
# To restore your OpenBazaar node only from the backup seed:
root@DietPi:~# go run $GOPATH/src/github.com/OpenBazaar/openbazaar-go/openbazaard.go restore -d /root/.openbazaar -m "word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12"
https://openbazaar.zendesk.com/hc/en-us/articles/360002820331-How-do-I-restore-my-OpenBazaar-wallet-from-seed-
# Restore your shop from a backup copy your existing .openbazaar dir to /root/.openbazaar
fdisk -l
mount /dev/sda1 /mnt/usbdrive
cp -R /mnt/usbdrive/OpenBazaar2.0/* /root/.openbazaar/
# links and paths for DietPi
sudo nano /mnt/dietpi_userdata/openbazaar/config
sudo nano /root/.openbazaar/config
cd /mnt/dietpi_userdata/go/src/github.com/OpenBazaar/openbazaar-go/
root@DietPi:/mnt/dietpi_userdata/go/src/github.com/OpenBazaar/openbazaar-go# go run openbazaard.go -h
Usage:
openbazaard [OPTIONS] <command>
Application Options:
-v, --version Print the version number and exit
Help Options:
-h, --help Show this help message
Available commands:
convert convert this node to a different coin type
decryptdatabase decrypt your database
encryptdatabase encrypt your database
gencerts Generate certificates
init initialize a new repo and exit
restart restart the server
restore restore user data
setapicreds set API credentials
start start the OpenBazaar-Server
status get the repo status
stop shutdown the server and disconnect

View File

@@ -0,0 +1,7 @@
# Install openbazaar client (https://github.com/OpenBazaar/openbazaar-desktop)
# https://freedomnode.com/blog/80/how-to-install-and-configure-new-openbazaar-2-0-on-linux-and-mac-os-x
git clone https://github.com/OpenBazaar/openbazaar-desktop
npm install
npm start

View File

@@ -0,0 +1,33 @@
# https://www.zokos.com/blog/site/public/2019/01/12/Self-Host%20your%20Own%20OpenBazaar%20Store/
# https://github.com/OpenBazaar/openbazaar-go/blob/master/docs/install-linux.md
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 &
# https://api.docs.openbazaar.org/