Skip to content

Instantly share code, notes, and snippets.

View drwasho's full-sized avatar

Dr Washington Sanchez drwasho

View GitHub Profile
@drwasho
drwasho / testconfig.yml
Last active November 16, 2016 12:39
Config to install an OpenBazaar node via Deploy (deprecated)
#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
#cloud-config
apt_update: true
packages:
- tree
- htop
- git
- python2.7
- build-essential
- python-dev
- libffi-dev
@drwasho
drwasho / provision.sh
Last active October 5, 2016 04:38
Bash script to setup and install OpenBazaar on a VPS via miniprovistor
#!/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)
@drwasho
drwasho / obinstall.sh
Last active August 30, 2016 04:10
Installation script for Ubuntu 16.04.1 - used in miniprovistor
#!/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)
@drwasho
drwasho / installOB.md
Last active August 28, 2016 23:39
Basic Instructions for Spinning up a VPS & OB Node w/ reasonble security

Instructions

  1. Create a VPS on Digital Ocean
    • Ensure that it is created with SSH access setup
  2. Login as root via ssh
    • ssh root@ipaddress
  3. Create a user
    • adduser yourusername
    • Add a password
  4. Give user root access
@drwasho
drwasho / install.sh
Last active July 25, 2016 22:59
Install script for the OpenBazaar-Go Server. Remember to give the script executable permissions.
#!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
@drwasho
drwasho / git-guide.md
Created May 5, 2016 02:58
Handy Git Guide for Testing a PR

Git Guide for Testing a PR

Checkout a branch from a remote repo

  1. git remote add morebrownies https://github.com/morebrownies/OpenBazaar-Client.git
  2. git fetch morebrownies
  3. git checkout morebrownies/chat

Checkout a PR from a remote repo

@drwasho
drwasho / openbazaar-go-ubuntu.md
Last active November 18, 2020 22:50
Install OpenBazaar-Go on a Linux Digital Ocean Droplet

Install OpenBazaar-Go on Linux Digital Ocean Droplet

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.

Step 1: Create the install script

  • In your terminal, type: sudo nano install.sh
  • Paste in the following script:

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
@drwasho
drwasho / install-script.sh
Created April 24, 2016 21:41
Alternative install script for 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