Coder Social home page Coder Social logo

fufs's Introduction

=================================================================== _____ _____ _____ | | | | | | | | / | | | | | | | | | | | _ | | | | | | | | _
| | | |
| | | | ___| | || _
/ |
| |
___ /

fufs is a filesystem for accessing sina vdisk based on FUSE. (You can use it in commercial software, but please let me know.)

How to build fufs from git source code?

1 prepare tools before configure if you use ubuntu operating system.you can you apt-get install to fetch the basic tools for fufs.

  • libcurl will be used for fufs to send http request or receive http answers
  • json-c will be used for parse response of sina app engine
  • glib will be used for hash table

add your account and password in fufs.c example : your sina disk account is : [email protected] your sina disk password is: 111111 you should change the main function in fufs.c line 523: fufs_api_get_token("input your account","input your password","local"); add your account and password: line 523: fufs_api_get_token("[email protected]","111111","local");

2 configure

cd fufs

./autogen.sh

./configure

3 build

make

4 install (need root)

make install

5 run:

mkdir /tmp/fufs

cd src/

./fufs /tmp/fufs

after all these steps you could have successfully installed fufs on your linux desktop if your account and password is right . you could find your folder and file which are stored in the sina server engine. you can read or write the file in the /tmp/fufs as you like.

note: after you have run your fufs.you should start a small tool which is in the subfolder of fufs/src,which is called token_keep_thread you can change the source code int token_keep_thread.c. this tool is very very important,it is used to keep your token alive because if you do not run this tool ,your token will be invalid after more or less ten minutes. there are two ways to run this tool choice 1: ./token_keep_thread or you can use the second way choice 2: nohup ./token_keep_thread & (the tool will run in backgroud. Note: keep in mind ,after you umount fufs,you should kill this process.)

if you want to know more,you can read the sina open API here is the website: http://vdisk.me/api/doc

How to umount fufs from your linux desktop?

umount: (if you do not want to use this filesystem,you can umount it.) fusermount -u /tmp/fufs

if you run the small tools as the second way you should remember to kill the process kill -9 #(process number)

Where can I get more information:

Still have problems please send email to [email protected]

http://blog.csdn.net/hiphopmattshi/article/details/7849408

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.