On previous articles, I talked about distributed network with OpenBSD and FreeBSD to give me the ability to have different node around the world during my different trips. Trusting its own network is already a good thing, you can easily talk on different open network with a layer of security. Of course, their is a lot of different feature I need to enable to have a really secure network, but, this is a lonely project for my own need.
Another issue became a necessity, synchronizing my data across my laptops and my servers. The first we use the most is our web browser. I am using Firefox and Chromium as well. Fortunately, Firefox use an open-source solution to synchronize data with a remote end-point, this software is called syncserver (opens new window) and is written in Python. So, how to deploy it on OpenBSD?
\# Assuming you don't have wxallowed on /home, we create a
\# dedicated directory with rights in /usr/local.
\# You should probably use a disk quota for this user.
mkdir -p /usr/local/src/${USER}
ln -s /usr/local/src/${USER} src
chown ${USER}:${USER} /usr/local/src
cd ~/src
\# Ensure python, virtualenv, gnumake and git are installed.
pkg\_add python py-virtualenv git gmake
\# Clone syncserver repository and checkout the last stable
\# release (I will not build a master branch, sorry).
git clone [https://github.com/mozilla-services/syncserver.git](https://github.com/mozilla-services/syncserver.git)
cd syncserver
git checkout 1.8.0
gmake
gmake test
gmake serve
# How to configure syncserver?
- Listening on dedicated port
- Listening on dedicated hostname
- Listening on dedicated path