- Create a VPS on Digital Ocean
- Ensure that it is created with SSH access setup
- Login as
root
via sshssh root@ipaddress
- Create a user
adduser yourusername
- Add a password
- Give user root access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
apt_update: true | |
runcmd: | |
# Install dependencies | |
- apt-get install -y htop tree git python2.7 build-essential python-dev libffi-dev libssl-dev python-pip python-setuptools | |
# Create openbazaar user and group | |
- groupadd -f openbazaar | |
- useradd --shell /bin/bash --create-home --home /home/openbazaar -g openbazaar --password $(openssl passwd -salt a -1 "password") openbazaar | |
# Get server repo | |
- git clone https://github.com/OpenBazaar/OpenBazaar-Server.git /home/openbazaar/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
apt_update: true | |
packages: | |
- tree | |
- htop | |
- git | |
- python2.7 | |
- build-essential | |
- python-dev | |
- libffi-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash script to setup and install OpenBazaar on a VPS via miniprovistor | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
useradd -m obuser | |
echo obuser:password | chpasswd # The password is replaced by the user during install | |
echo "obuser ALL=(ALL:ALL) ALL" >> /etc/sudoers | |
sudo apt-get install -y git build-essential libssl-dev libffi-dev python-dev openssl python-pip libsodium-dev autoconf libzmq-dev pkg-config libtool | |
sudo pip install cryptography | |
(cd /home/obuser/; sudo git clone https://github.com/OpenBazaar/OpenBazaar-Server.git) | |
(cd /home/obuser/OpenBazaar-Server; sudo pip install -r requirements.txt) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install -y git build-essential libssl-dev libffi-dev python-dev openssl python-pip libsodium-dev autoconf libzmq-dev pkg-config libtool | |
sudo pip install cryptography | |
(cd /home/obuser/; sudo git clone https://github.com/OpenBazaar/OpenBazaar-Server.git) | |
(cd /home/obuser/OpenBazaar-Server; sudo pip install -r requirements.txt) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# README | |
# Give the script executable permissions by typing: sudo chmod +x install.sh | |
# Run the script: sudo bash install.sh | |
# Install Dependencies and Tools | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install git build-essential autoconf automake pkg-config libtool htop tree |
First off I'm going to assume you have created a user with sudo
permissions, and that you're not running from root. I'm also assuming you have a satisfactory knowledge of the Linux terminal/bash commands.
If you have any trouble, join our OpenBazaar Slack group, and pop into the #openbazaar-ipfs
channel.
- In your terminal, type:
sudo nano install.sh
- Paste in the following script:
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |