To create this fast How-To, I used the Monotone tutorial.
User one creates its database::
$ mtn db init --db=~/user.mtn
$ mtn genkey email@example.com
Serving your repository to other users
If you want to server your repository to other users, do that:
First, the user will have to tell you his/her public key::
$ mtn pubkey firstname.lastname@example.org > /tmp/the.user.pubkey $ scp /tmp/the.user.pubkey host:/tmp/
Then, user will need to allow the user to access the database::
$ cat /tmp/the.user.pubkey | mtn --db=~/user.mtn read
Now create the file with read permissions in
with the following content::
pattern "*" allow "email@example.com" allow "firstname.lastname@example.org"
Now, just run the
mtn serve command::
$ mtn --db=~/user.mtn serve
Other users will be able to get your repository typing these commands::
$ mtn db init --db=~/user.mtn $ mtn --db=~/user.mtn sync nserhost \*
The * means that you want to sync all branches. If you need to sync a specific branch, type the name of the branch you want to sync.