mafintosh / torrent-mount Goto Github PK
View Code? Open in Web Editor NEWMount a torrent (or magnet link) as a filesystem in real time using torrent-stream and fuse. AKA MAD SCIENCE!
License: MIT License
Mount a torrent (or magnet link) as a filesystem in real time using torrent-stream and fuse. AKA MAD SCIENCE!
License: MIT License
If I already had a file, there is a way to unmount him?
Thanks in advance.
As per my previous ticket, I'm unable up stop with break command, ctrl+c. I'm on latest Mac OS.
I downloaded it in a directory.
After downloading it hung there.
Doing ctrl-c gave the mesage "shutting down..." and the process exited. there were no files on disk.
torrent-mount seems to work fine with torrents that are directories, but not with torrents that are single files. For example,
$ torrent-mount ubuntu-14.04-desktop-i386.iso.torrent
Mounted 1 files, 970 MB in ubuntu-14.04-desktop-i386.iso
Connected to 10/14 peers
Downloaded 1.8 MB (329.6 kB/s) with 0 hotswaps
Uploaded 0 Bytes (0 b/s)
$ ls ubuntu-14.04-desktop-i386.iso
ls: cannot access ubuntu-14.04-desktop-i386.iso: Input/output error
Hey there,
when I torrent-mount
a torrent file or a magnet link into my fs, any stat(2)
on the mounted files blocks indefinitely meaning I can't do even a ls -l
without my term freezing.
$ uname -sr
Linux 3.11.0-20-generic
$ npm --version
1.3.10
$ node --version
v0.10.25
Using the opts argument of torrent-stream could make much more options available and would be really handy for using with private trackers:
Both could help the usage on private trackers.
Use case:
One would think that using a streaming torrent engine on a private tracker is not so smart anyway. However using with the --lazy option one could peek into files' metadata without consuming too much bandwidth. For example one could run mkvinfo or ffmpeg -i on some files and get the correct specs of these files and it would download only the necessary chunks.
It already works for public trackers and it's really useful.
Hi!
After a lot of pain installing Dokan and this package (thanks to node-gyp and Visual Studio) i've managed to get it installed.
But i'm having problems trying to mount any torrent.
I've tried with the official ubuntu torrent:
torrent-mount http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-amd64.iso.torrent?_ga=2.201313838.1444046672.1496681511-1926335291.1496681511
But it always stop on:
Initializing swarm and verifying data...
What i need to do?
Can i add many torrents? and mount it in one/different folders ?
before I install fuse and pkg-config
log after executing npm install -g torrent-mount
sudo npm install -g torrent-mount
Password:
Sorry, try again.
Password:
> [email protected] install /usr/local/lib/node_modules/torrent-mount/node_modules/fuse4js
> node-gyp rebuild
CXX(target) Release/obj.target/fuse4js/fuse4js.o
../fuse4js.cc:368:36: warning: missing field 'readlink' initializer [-Wmissing-field-initializers]
struct fuse_operations ops = { 0 };
^
1 warning generated.
SOLINK_MODULE(target) Release/fuse4js.node
ld: library not found for -losxfuse
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/fuse4js.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/torrent-mount/node_modules/fuse4js
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the fuse4js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls fuse4js
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "torrent-mount"
npm ERR! cwd /Users/XXXX
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Can't stop wodering about mounting the whole npm ecosistem in node_modules!
Mad mad science ;)
While I don't have the time to devote to making it a reality, I use FUSE / MacFUSION a ton, and it seems like this could be awesome. (And drive interest in fixing some rather irksome UI quirks.)
Getting this error. Can't install in Ubuntu or Windows.
Package fuse was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fuse' found
gyp: Call to 'pkg-config --libs-only-l fuse' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-35-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/torrent-mount/node_modules/fuse4js
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
Hey there,
Whatever magnet link I use (the one in your README, or magnets from http://wikileaks.org/magnet.txt for instance), I don't get anything.
Running DEBUG=* torrent-mount magnet:…
commands always ends up spewing no replies:
bittorrent-dht No DHT nodes replied, retry with bootstrap nodes +0ms
bittorrent-dht No DHT nodes replied, retry with bootstrap nodes +5s
bittorrent-dht No DHT nodes replied, retry with bootstrap nodes +5s
bittorrent-dht No DHT nodes replied, retry with bootstrap nodes +5s
…
I'm on OSX Mavericks running the latest OSXFUSE (downloaded from your README, version 2.6.4). My Homebrew states pkg-config is up-to-date as well (0.28).
Any idea?
Thanks!
Just released here: https://github.com/Ayms/torrent-live
The main intent was the freerider behavior, see mafintosh/torrent-stream#17
But then opening with the browser the file being downloaded just works to stream it inside the browser (and therefore it can be streamed to the TV real-time)
So, am I missing something or does torrent-mount do more?
So amazing. So mad scientific!
I have tried torrent-mount a few times but could not get working because of fuse4js. Now with all the work you have done for fuse-bindings just wondering when you might switch to using that module?
When I initiate a download of the example file I see this:
Initializing swarm and verifying data...
Mounted 2 files, 541.3MB in star-wreck-in-the-pirkinning
Connected to 12/13 peers
Downloaded 14.9 MB (82.1 kB/s) with 0 hotswaps
Uploaded 0 Bytes (0 b/s)
However the mounted directoy is empty both during and after complete download:
$ ll star-wreck-in-the-pirkinning/
total 8
drwxr-xr-x 2 munter munter 4096 Apr 28 22:36 ./
drwxr-xr-x 73 munter munter 4096 Apr 28 22:36 ../
I'm using Linux Mint:
Linux pollex 3.10.0-031000rc5-generic #201306082135 SMP Sun Jun 9 01:36:22 UTC 2013 x86_64 GNU/Linux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.