These scripts will make your manual installation of OpenBazaar on your Linux machine or VPS a lot easier. To run the script:
- Install
nano
- Nano is a terminal based text editor
sudo apt-get install nano
(no sudo for Debian)
- Select the directory you want to place the script... can be anywhere.
- 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
- 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.
#!/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)
#!/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)
#!/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)
- Before running this script, make sure your sources.list is up to date: https://debgen.simplylinux.ch/
#!/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)
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.