Plenty of services exist to share files, the famous one like Dropbox, Google drive, etc… or some services to selfhost such as Pydio, Owncloud, (already covered in this blog).
But not many are using Peer to Peer and even less are web based. But it’s the case of ShareFest and thanks to HTML5 WebRTC, no need of additional plugins to share your files.
A demo is available here.
Let’s see now how to install ShareFest on your own server.
1) Install nodejs and npm
– If you use Ubuntu, simple run (as root)
apt-get install nodejs npm
– If you are on Debian (Wheezy?) like me, you can install nodejs from wheezy-backports (modify your source.list accordingly) and run (in root):
apt-get install nodejs nodejs-legacy curl
and for npm, you can use the installer
curl https://www.npmjs.com/install.sh | sh
2) Clone their latest release into your /var/www folder
If you don’t have git installed, simply run:
Then clone their repo
git clone https://github.com/Peer5/ShareFest.git
3) Install the required dependencies with npm
npm install --dedupe
4) Start the service
and you should now be good to start!
Simply go to http://YourIP:13337
If you want to know more about ShareFest, you can check their growing FAQ.
Your next step could be to set up a virtualhost to have a more userfriendly URL like sf.domain.tld and even force SSL connection.
What you will need:
1) Create a A redirection in your DNS server/registrar with sf.domain.tld to your IP
2) Have SSL certificate ready. If not you can read this tutorial. (Optional)
3) Create your virtualhost as following:
In /etc/apache2/sites-enabled/, create a file called sharefest (In root):
and paste the following content:
Redirect / https://sf.domain.tld
Options Indexes FollowSymLinks MultiViews
allow from all
Adapt the content (Servername, webmaster, SSL certificate and directory).
When done, save the file (CTRL+X then Yes) and reload apache: (In root)
Now your ShareFest instance should be fully working will SSL certificate and accessible through sf.domain.tld.