Skip to content

Installation

patrickjennings edited this page Jan 28, 2013 · 25 revisions

Dependencies

On Ubuntu, you can install all dependencies with the following command.
sudo apt-get install git libflickcurl-dev libflickcurl0 flickcurl-utils pkg-config libfuse-dev gcc libglib2.0-dev

Installation

$ cd FlickrFS/
$ make
$ sudo make install

Configuration (The Old Way)

The Flickcurl library must be configured in order for the file system application to properly function. First, the user must create a configuration file in their home directory with the following details:

$ nano ~/.flickcurl.conf
Copy the following three lines into ~/.flickcurl.conf:
[flickr]
api_key=2e66493ec959256a79e4e5a3da7df729
secret=c1b99d47790391c3

Next, the user must go to the following webpage:

http://www.flickr.com/services/auth/?mobile=1&api_key=2e66493ec959256a79e4e5a3da7df729&perms=delete&api_sig=6417abca6880d676c010600e8c65a045

and select:

[OK, I'LL AUTHORIZE IT]

The user will be given a 9-digit FROB that can be fed into the Flickcurl API in order to link the user's account to the interface. To do this, execute:

$ flickcurl -a 123-456-789 # Change to the 9-digit FROB given

where 123-456-789 is the 9-digit FROB given to the user above. This will conclude the linking of the user's Flickr account with the installed Flickcurl API and library. The user should then see the following in their configuration file:

$ cat ~/.flickcurl.conf
[flickr]
auth_token=-------
api_key=2e66493ec959256a79e4e5a3da7df729
secret=c1b99d47790391c3

The user may test the Flickcurl API by executing:

$ flickcurl photos.getInfo 1234567
flickcurl: Found photo with URI http://www.flickr.com/photos/yogi/1234567/ ID 1234567 and 1 tags
...

This concludes the installation of FlickrFS and the configuration of the Flickcurl library. FlickrFS is now read to use!

Clone this wiki locally