User setup
log in as root
ssh root@x.x.x.x -i ~/.ssh/openbazaar
create openbazaar user
useradd -m -s /bin/bash openbazaar
give openbazaaar user sudo access
usermod -a -G sudo openbazaar
give openbazaar user a password
passwd openbazaar
give openbazaar user the pubkey
mkdir /home/openbazaar/.ssh
cp /root/.ssh/authorized_users /home/.ssh/
chown -R openbazaar:openbazaar /home/.ssh/
Dependency Installation
add third party dependencies
sudo apt-add-repository ppa:chris-lea/libsodium
update Ubuntu’s lists of known software
sudo apt-get -y update
install system updataes
sudo apt-get -y upgrade
install OpenBazaar Server dependencies available through apt
sudo apt-get -y install git build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev autoconf pkg-config libtool automake python-virtualenv
install OpenBazaar Server deps only available through 3rd party source code
git clone https://github.com/zeromq/libzmq
cd libzmq
./autogen.sh && ./configure && make -j 4
make check && sudo make install && sudo ldconfig
Get the OpenBazaar Server source code
cd
git clone https://github.com/OpenBazaar/OpenBazaar-Server.git
cd OpenBazaar-Server
create a Python virtualenv for the OpenBazaar Server’s dependencies
virtualenv observer
source ./observer/bin/activate
install OpenBazaar server python deps
pip install -r requirements.txt
Add a username and password to your OpenBazaar server
nano ob.cfg
Start OpenBazaar server
python openbazaard.py start
Hardening
@todo – coming week of April 18 2016