Skip to content

Instantly share code, notes, and snippets.

@drwasho
Last active March 20, 2017 16:07
Show Gist options
  • Save drwasho/63d8e4189b3f1ce9ebb433ebce790c8d to your computer and use it in GitHub Desktop.
Save drwasho/63d8e4189b3f1ce9ebb433ebce790c8d to your computer and use it in GitHub Desktop.

Manual/VPS Install Scripts for the OpenBazaar Server: Ubuntu (14.04, 15.10, 16.04) and Debian

These scripts will make your manual installation of OpenBazaar on your Linux machine or VPS a lot easier. To run the script:

  1. Install nano
  • Nano is a terminal based text editor
  • sudo apt-get install nano (no sudo for Debian)
  1. Select the directory you want to place the script... can be anywhere.
  2. Create the script file
  • sudo nano install.sh
  • This will create a new script file called install.sh
  • Copy the relevant script below and paste it into nano
  • Save and exit
  • Give the script executable permissions: sudo chmod +x install.sh
  1. Run the script
  • sudo bash install.sh

Repositories and dependencies can unexpectedly change, causing the script to fail before we've had a chance to update it. If you have problems with one of these scripts, please join our OpenBazaar Slack to let us know so we can push out a fix.

Ubuntu 14.04

#!/bin/bash

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev
sudo echo "deb http://us.archive.ubuntu.com/ubuntu trusty main universe" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -f install
sudo apt-get install libsodium-dev
sudo pip install cryptography
sudo apt-get install autoconf pkg-config libtool
(cd /$HOME/; sudo git clone https://github.com/zeromq/libzmq)
(cd /$HOME/libzmq; sudo ./autogen.sh && sudo ./configure && sudo make -j 4)
(cd /$HOME/libzmq; sudo make check && sudo make install && sudo ldconfig)
(cd /$HOME/; sudo git clone https://github.com/OpenBazaar/OpenBazaar-Server.git)
(cd /$HOME/OpenBazaar-Server; sudo pip install -r requirements.txt)

Ubuntu 15.10

#!/bin/bash

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev
sudo echo "deb http://us.archive.ubuntu.com/ubuntu vivid main universe" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -f install
sudo apt-get install libsodium-dev
sudo pip install cryptography
sudo apt-get install autoconf pkg-config libtool
(cd /$HOME/; sudo git clone https://github.com/zeromq/libzmq)
(cd /$HOME/libzmq; sudo ./autogen.sh && sudo ./configure && sudo make -j 4)
(cd /$HOME/libzmq; sudo make check && sudo make install && sudo ldconfig)
(cd /$HOME/; sudo git clone https://github.com/OpenBazaar/OpenBazaar-Server.git)
(cd /$HOME/OpenBazaar-Server; sudo pip install -r requirements.txt)

Ubuntu 16.04

#!/bin/bash

sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y git  build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev libsodium-dev autoconf libzmq-dev pkg-config libtool
sudo pip install cryptography
(cd /$HOME/; sudo git clone https://github.com/OpenBazaar/OpenBazaar-Server.git)
(cd /$HOME/OpenBazaar-Server; sudo pip install -r requirements.txt)

Debian 8.5

#!/bin/bash

sudo apt-get update && apt-get upgrade
sudo apt-get git install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev libsodium-dev
sudo pip install cryptography
sudo apt-get install autoconf pkg-config libtool
(cd /$HOME/ sudo git clone https://github.com/zeromq/libzmq)
(cd /$HOME/libzmq; sudo ./autogen.sh && sudo ./configure && sudo make -j 4)
(cd /$HOME/libzmq; sudo make check && sudo make install && sudo ldconfig)
sudo pip install --upgrade cffi
sudo pip install pynacl
(cd /$HOME/; sudo git clone https://github.com/OpenBazaar/OpenBazaar-Server.git)
(cd /$HOME/OpenBazaar-Server; sudo pip install -r requirements.txt)
@davalb
Copy link

davalb commented Mar 10, 2017

It seems that the last OpenBazaar version working on Ubuntu 14.04 is OB 0.2.2. From 0.2.3 on the minimum python version required is python 2.7.9 but Ubuntu 14.04 comes with python 2.7.6 only. There are ways to upgrade python (with third party ppa's and such), but I think this might be risky since python is so mission-critical for Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment