Monthly Archives

January 2014

Raspberry Pi

Raspberry Pi & BitTorrentSync for dummies like me

By | Computers, Platform | No Comments

I finally found time to do something worth with my Raspberry Pi.

I had already installed BitTorrentSync in  a couple of computers. BitTorrentSync allows you to synchronize folders between all your devices like Dropbox, but the data are not stored in the cloud. If you have concerns about privacy, this is the definite tool.

But be aware, unless you synchronize with a remote PC you are fully exposed to data loss due to a fire at home.

The great thing about Raspberry is that power consumption is low to be able to have it always on, so all your devices can synchronize immediately with your Raspberry HDD. You don’t have to wait anymore for the two PCs to be on at the same time, for example.

Raspberry Pi

Well, let’s do a step by step walkthrough over the process I used to install it, for dummies like me.

First the sources. I took all knowledge from the following articles where more details can be found, though not repeating again:

First,

How to add the HDD

Generally Raspberry autodetects HDDs. For better performance it is recommended to format the disc to EXT4.

First find how your disk appears with this command

df -h

It is usually /dev/sda1. With the mount command you can also retrieve the list of mounted units.

Now you will have to format the disk, replace “sda1” by yours:

sudo mkfs.ext4 /dev/sda1 -L untitled

“untitled” is the disk label, in my case I don’t care. If you have problems when you run it try to first umount (check below).
If you have to mount the disk you will need to create a folder where to mount it. We will call it “mydisk” in the example.
sudo mkdir /mnt/mydisk

Then you can mount the disk
sudo mount /dev/sda1 /mnt/mydisk

And now you can use /mnt/mydisk as an additional drive. Create folders, copy files, etc.
If you have to shutdown the Raspberry it is recommended to unmount the unit

sudo umount /dev/sda1

If you have a NTFS disk and you don’t want to format it because you have data already, there is an option described in the first link of the list. But it makes sense to have a disk fully dedicated to the Raspberry, so format it in EXT4!

You will also want that the disk gets mounted in the folder every time you reboot, you can do it by registering it in /etc/fstab. Let’s edit it to add our unit.

sudo nano /etc/fstab

In our case we only have to add a line in the end (use tabs in between)
/dev/sda1 /mnt/mydisc ext4 defaults 0 0

If after this you apply sudo mount -a you will mount all the units referred in the file /etc/fstab.

Now we have a disk,

Let’s go for BitTorrentSync

To install it you need to download the ARM version with these commands

mkdir ~/.btsync && cd ~/.btsync
wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_arm.tar.gz
tar -xfv btsync_arm.tar.gz

And now you only need to run the app
cd ~/.btsync
sudo ./btsync # can be killed with `sudo killall btsync`

You should get a message BitTorrentSync forked and a pid. Everything ok.

And now you only need to add the folders to synchronize. Open your browser in the IP address of your Raspberry and port 8888.

IP_RASPBERRY:8888

You will see an option to synchronize folders. Choose anything you want within /mnt/mydisk
If you already have a secret form another computer, paste it here, if not just generate a secret and keep it. You will have to add it in the computer you want to synchronize with.
All set. You can create several folders and synchronize them, independently and in addition you can decide which devices synchronize with which folders. Up to you!

I missed one step, how to modify the config to have the program run at boot. There is an explanation in the fourth link.

I hope this has been useful, if not you always have the links I posted for more details.

Founder Institute

I left the Founder Institute

By | Startup, Thoughts | No Comments

This week I left the Founder Institute.

Founder Institute

For those that have not heard about it, it is an accelerator program for startups compatible with your current job. Sessions are held one evening per week for four months.

The main reason to leave is that I moved to another project in December. The program, that has standard objectives for the whole world, went into a mismatch with the priorities I have for our startup ClarityFab (we make 3dprinters).

So you end up doing work that, even if it is for your startup, has lower priority than other tasks where you really need to focus.

In addition, the sessions have presentations from mentors about the different topics throughout the startup creation: customer review, revenues, legal & IP, etc. However, as I’ve attended a significant number of events startup related over the last year, I actually was not finding myself learning anything substantially new.

There is a piece that can be improved from my point of view. The program is setup like a competition system where only the best projects survive (you can join another project if yours is weak). It reminds to me the philosophy quite American style like “only the best make it”.

But in fact, if you have some weaknesses what makes sense is to get special support for the weak topic (groups of participants are created with the intention that the group provides support). You join the program just for this, to get help. If you have to do it on your own you then just don’t need to join any program.

Where I see a good proposition. If you have hard work capacity and you want someone to push you to build a startup in 4 months this is a option fully compatible with your day job. Accelerators usually require full-time dedication from the very beginning.

Some advice. Do not underestimate the amount of work to be done, if you want to do it well.

Now fully dedicated to clarityfab.com! This week we closed our search for an office 🙂

PS: opinions expressed here are personal and my own.