-
Notifications
You must be signed in to change notification settings - Fork 171
Raspberry Pi Install Ubuntu
Important: It's suggested that you use Raspbian as your server, as it's a better supported OS for the Raspberry Pi. If you're new to Raspbian, it's a Debian-derived OS built specifically for the Raspberry Pi. If you're use to Ubuntu, you will find Raspbian very similar. These instructions are suggested.
These steps will prepare your Raspberry Pi / Ubuntu server for Open Bazaar.
https://wiki.ubuntu.com/ARM/RaspberryPi
( as described in https://wiki.ubuntu.com/ARM/RaspberryPi )
# boot the Pi
# login: ubuntu password: ubuntu
sudo fdisk /dev/mmcblk0
d [enter]
2 [enter]
n [enter]
p [enter]
2 [enter]
[enter]
[enter]
w [enter]
sudo reboot
# system reboots
# you log back in
sudo resize2fs /dev/mmcblk0p2
It is never a good idea to run a server with a default password.
Run this command and follow the instructions:
passwd
This will be handy for the rest of the setup.
sudo apt-get install -y openssh-server
Many of these steps are easier if you can copy and paste directly into the terminal. Making an SSH connection to your Raspberry Pi from your desktop makes this possible.
Here's some info on how to do it: https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md
Many of these steps will take a very long time, be patient. It's a lot to download and install, but once it's done, it's smooth sailing.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git python-dev libffi-dev libssl-dev python-setuptools
sudo easy_install pip
git clone https://github.com/OpenBazaar/OpenBazaar-Server.git
cd OpenBazaar-Server/
Get on the latest stable release:
git checkout `git describe --tags`
Install python requirements for the server to run.
sudo pip install -r requirements.txt
Open the ob.cfg
file in your text editor of choice (nano
comes preinstalled on Raspbian):
nano ob.cfg
Then uncomment and set the USERNAME
and PASSWORD
variables to values of your choice, like so.
Before changes:
#USERNAME = username
#PASSWORD = password
After changes:
USERNAME = joebloggs
PASSWORD = aVeryLong&C()mpl1cat3d5tringThatW1llBeVeryHardToGue$5
python openbazaard.py start -d -a 0.0.0.0
It's preferred that this is done from the client UI:
"Account Icon" >> Settings >> Advanced >> Shut Down the Server
https://github.com/OpenBazaar/OpenBazaar-Client
These instructions do not cover the client setup, perhaps they will later.
It's trying to connect to a "local" server. And this server is not local, it's on a separate computer ( your raspberry pi ). It should be on the same network though.
Earlier, you SSH'ed into the raspberry pi. To do this you needed it's IP address, you're going to need that now to setup the connection from the client.
Now that the localhost connection has timed out.
- Click the avatar at the top right of the app.
- Click
Settings
- Click
Advanced
- Click the
Change
button in the Server Settings row. - Set the IP to match that of your Raspberry Pi, and the username and password fields to match the values you entered into your
ob.cfg
file. - Click
Save Changes