Sunday 13 April 2014

Shaarli : personal hosted minimalist delicious clone



Its great to be able to access your own bookmarks in an organized manner. An open source solution I have been using lately is Shaarli. Key advantages are bookmarks are not shared to any 3rd party and you have full control over privacy. Shaarli is quick to deploy and import bookmarks.

Pre installation
  • Set up your own web server 
  • For an example setup see my previous post on Lighttpd - lightweight low footprint web server 
  • Note - for this guide I assume the webserver is available at http://localhost/
  • Install php5-cgi (server-side, HTML-embedded scripting language)
$ sudo apt-get -y install lighttpd php5-cgi
  • Enable fastcgi module, php configuration and restart service
$ sudo lighty-enable-mod fastcgi
$ sudo lighty-enable-mod fastcgi-php
$ sudo /etc/init.d/lighttpd restart
  • Create file /var/www/index.php with a text editor with contents
<?php phpinfo(); ?>
  • Open browser to http://localhost/index.php and following should appear


Installation
  • Create a folder on your web server
$ sudo mkdir /var/www/shaarli
  • Download the latest zip file from Shaarli
  • Extract file and copy contents to new folder
  • Change file and group ownership
$ chown www-data:www-data  /var/www/shaarli 
  •  Open browser to http://localhost/shaarli/index.php and following should appear


Configuration
  • After login select 'Tools->Shaare link' and drag to your bookmarks toolbar
  • Go to a site and when you want to bookmark it select 'Shaare link'


  •  You can define new tags automatically in the 'Tags' field
Import/Export bookmarks
  • Its easy to export bookmarks from Firefox, Chrome and import under 'Tools->import'
  • A corresponding 'Tools->export' feature

Other Features
  • The 'Tag cloud' gives an overview of all the tags
  • RSS and ATOM feed of site content
  • Daily overview of added content for that day in a newsfeed
  • Automatically stores thumnails that contain images
Backup
  • Option 1 : Copy /var/www/shaarli/data/datastore.php to backup location
  • Option 2 : Export via 'Tools->export' to html file to backup location

No comments:

Post a Comment