Fli
07-24-2016, 04:09 PM
Here is how i installed WebTorrent command line app on the CentOS server.
yum remove nodejs npm -y;yum install nodejs -y;yum install npm -y --skip-broken;npm install webtorrent-cli -g;webtorrent --help
Previously i got errors like:
make: g++: Command not found
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127
make: Leaving directory `/usr/lib/node_modules/webtorrent-cli/node_modules/bufferutil/build'
Regarding this, the advice was to run: yum groupinstall 'Development Tools'
But it may not be needed if the first yum command on this page will work.
Then i try to download some file:
webtorrent download "magnetlinkreceivedfromWebTorrent-Desktop" --verbose
Then i can seed some file:
cd /home/me/media
webtorrent seed "Video file.mp4"
Then i doubleclick shown "Info hash" and copy it by mouse right click (PuTTy), example Info hash: 463ef7142d1597b12a81f241a273f73fbdc6e9fc
Then i go to the Webtorrent Desktop software on my Windows computer, click File / Open Torrent Address...
And paste info hash. Download start immediately.
So far im unsure how to obtain magnet link from webtorrent-cli, but it can be obtained from Webtorrent Desktop.
yum remove nodejs npm -y;yum install nodejs -y;yum install npm -y --skip-broken;npm install webtorrent-cli -g;webtorrent --help
Previously i got errors like:
make: g++: Command not found
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127
make: Leaving directory `/usr/lib/node_modules/webtorrent-cli/node_modules/bufferutil/build'
Regarding this, the advice was to run: yum groupinstall 'Development Tools'
But it may not be needed if the first yum command on this page will work.
Then i try to download some file:
webtorrent download "magnetlinkreceivedfromWebTorrent-Desktop" --verbose
Then i can seed some file:
cd /home/me/media
webtorrent seed "Video file.mp4"
Then i doubleclick shown "Info hash" and copy it by mouse right click (PuTTy), example Info hash: 463ef7142d1597b12a81f241a273f73fbdc6e9fc
Then i go to the Webtorrent Desktop software on my Windows computer, click File / Open Torrent Address...
And paste info hash. Download start immediately.
So far im unsure how to obtain magnet link from webtorrent-cli, but it can be obtained from Webtorrent Desktop.