File: README.md

package info (click to toggle)
btfs 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 160 kB
  • sloc: cpp: 710; python: 69; makefile: 12
file content (66 lines) | stat: -rw-r--r-- 2,034 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# BTFS (bittorrent filesystem)

## What is this?

With BTFS, you can mount any **.torrent** file or **magnet link** and then use it as any read-only directory in your file tree. The contents of the files will be downloaded on-demand as they are read by applications. Tools like **ls**, **cat** and **cp** works as expected. Applications like **vlc** and **mplayer** can also work without changes.

## Example usage

    $ mkdir mnt
    $ btfs video.torrent mnt
    $ cd mnt
    $ vlc video.mp4

To unmount and shutdown:

    $ fusermount -u mnt

## Installing on a recent Ubuntu (Xenial, Wily, Vivid or Trusty)

    $ sudo add-apt-repository ppa:johang/btfs
    $ sudo apt-get update
    $ sudo apt-get install btfs

## Installing on Arch Linux

    $ sudo pacman -S btfs

## Installing on OS X

BTFS has a formula in the [`homebrew/fuse`](https://github.com/Homebrew/homebrew-fuse) repository, ready to go. Just [install `brew`](https://brew.sh) if you hadn't, and then

    $ brew install homebrew/fuse/btfs

## Dependencies (on Linux)

* fuse ("fuse" in Debian/Ubuntu)
* libtorrent ("libtorrent-rasterbar7" in Debian/Ubuntu)
* libcurl ("libcurl3" in Debian/Ubuntu)

## Building from git on a recent Debian/Ubuntu

    $ sudo apt-get install autoconf automake libfuse-dev libtorrent-rasterbar-dev libcurl4-openssl-dev g++
    $ git clone https://github.com/johang/btfs.git btfs
    $ cd btfs
    $ autoreconf -i
    $ ./configure
    $ make

And optionally, if you want to install it:

    $ sudo make install

## Building on OS X

Use `brew` to get the dependencies and clone the project.

    $ brew install Caskroom/cask/osxfuse libtorrent-rasterbar autoconf automake pkg-config
    $ git clone https://github.com/johang/btfs.git btfs
    $ cd btfs

Open the file `configure.ac` and replace `fuse >= 2.8.0` with `fuse >= 2.7.3` (**Only if you have the latest osxfuse version!**, see why on [pull request #5](https://github.com/johang/btfs/pull/5)). Then:

    $ autoreconf -i
    $ ./configure
    $ make
    $ sudo make install