2009-10-28

开头篇

wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.5.tar.gz

wegt http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.5.tar.gz

tar zxvf libtorrent-0.12.5.tar.gz

tar zxvf -0.8.5.tar.gz

svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable/ xmlrpc-c

cd xmlrpc-c
./configure –disable-cplusplus
make
sudo make install

 

cd ..
cd libtorrent-0.12.5/
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure
make
sudo make install
cd ..

cd -0.8.5/
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure –with-xmlrpc-c
after that command make sure you see "checking for XMLRPC…. OK" near the end of the outputted text**
make
sudo make install
cd ..

以上2步骤中rm -f scripts/{libtool,lt*}.m4 是因为 libtool的问题 具体可以看 http://libtorrent.rakshasa.no/ticket/1852

/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include     -I/usr/local/include     -o  command_download.o command_dynamic.o command_events.o command_file.o command_helpers.o command_local.o command_network.o command_object.o command_peer.o command_tracker.o command_scheduler.o command_ui.o control.o globals.o main.o option_parser.o signal_handler.o ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncurses  -lsigc-2.0   -lcurl   -L/usr/local/lib -ltorrent
../libtool: line 841: X--tag=CXX: command not found
../libtool: line 874: libtool: ignoring unknown tag : command not found
../libtool: line 841: X--mode=link: command not found
../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
: no input files
: no input files
: no input files
: no input files
../libtool: line 2253: X-g: command not found
../libtool: line 2253: X-O2: command not found
../libtool: line 2253: X-g: command not found
../libtool: line 2253: X-DDEBUG: command not found
../libtool: line 2253: X-I/usr/include/sigc++-2.0: No such file or directory
../libtool: line 2253: X-I/usr/lib/sigc++-2.0/include: No such file or directory
../libtool: line 2253: X-I/usr/local/include: No such file or directory
../libtool: line 1967: X-L/usr/local/lib: No such file or directory
../libtool: line 2422: Xrtorrent: command not found
../libtool: line 2427: X: command not found
../libtool: line 2434: Xrtorrent: command not found
../libtool: line 2442: mkdir /.libs: No such file or directory
如果不这么搞,会出现变异错误,这个错误郁闷了我很久 –_-!!
之后就完全没问题了。。
编译运行很正常
在用screen 运行很流畅 –_-!!
reference: [via]
另外还有一个脚步一步实现版本: http://ubuntuforums.org/showthread.php?t=1064377  wTorrent + rTtorrent installation script: Installing wTorrent on  in 3 steps
Tags: ,,,.
2009-04-09

homepage: http://pdos.csail.mit.edu/p2psim/index.html

要用-3.3:

由于目前装了4.2版本的,所以删除……再装3.3版本,然后修改usr/bin/-3.3为

安装g++ 3.3版本 一样修改g++-3.3 为g++。然后就一切正常可以安装了。

如果出现configure错误

./configure –build=’i386-pc-

手动添加型号、。

#apt-get install -3.3 openssl libssl-dev

可能还要libcrypto++-dev libgmp3c2

#tar xvfz -0.3.tar.gz

#cd -0.3

#./configure

#make

测试:

$/ example/protocol.txt example/topology.txt example/events.txt

[via1]  [via2]

Tags: ,,,,,,.
2007-02-02

基于NS2的P2P网络模拟平台研究

2006-12-18

People have been predicting that Video On Demand would be the “next big thing” for about 87 years now. Ok, maybe only 10. But it hasn’t happened. The main reasons are pretty clear:

  • Fear on the part of the big media companies (fear of copying, fear of killing the DVD cash cow).
  • The “couch potato problem” – I don’t want to watch TV/Movies on my computer.
  • The cost problem. If you checked out my earlier post covering bandwidth costs, then you can see that $.75 – $1.50 in bandwidth charges to download a single video kills lots of business models like pay-per-TV-show or video rental.

The fear amonst the media companies is slowly starting to change. Just look at iTunes video downloads plus lots of other early initiatives. There’s a little more faith in the reliability of DRM systems now. Not so much that they won’t get cracked, but rather that common users won’t bother and will accept encrypted files.

The problem of getting content to your big screen has not gone away. However, there are more devices that help this happen, and portable players like the video iPod and video-capable cell phones are turning the third screen into a bigger market.

However, the bandwidth cost problem is still with us, even after the dramatic fall in costs over the last few years. There is lots of video content that simply isn’t valuable enough to be worth the cost to download. Very valuable content, like a Hollywood movie, can still only fetch a few dollars on a rental, which makes a $1 cost to download prohibitive. Shorter content is a lot less costly to download, but most of it much be ad supported because users won’t pay real money for it. All of which makes sense as to why iTunes would launch with first-run TV shows – the download cost is smaller, yet people (apparently) are willing to pay a couple bucks to download them. (Read Robert Cringely’s analysis of iTunes video costs and the advantages of distribution).

So for a long time people have recognized that using peer-to-peer for video distribution could dramatically lower the costs. Warner Brothers is set to launch such a p2p vod system in Europe in March. But in fact the core technology already exists, and it’s called BitTorrent. The problem is, that’s the same technology that people are using to pirate tons of video content right now. So while Vinton Cerf claims that Hollywood is interested in using BitTorrent for distribution, the MPAA is in fact filing lawsuits to shut down sites offering torrents for download.

At the end of the day, I think the real problem is that all clients require a desktop download right now. Given the big problems with spyware and viruses, that desktop install is a huge barrier to user adotion. Don’t believe me? Just compare the user base for Grouper to that for YouTube. (But don’t tell the folks at a recent Under the Radar conference who supposedly were wowed by Grouper). What we really need is the ability for a video web site like YouTube or my site gofish.com to be able to use for distribution, but behind the scenes without requiring any software install. Now that’s what I call nirvana, but of course, it’s impossible…or at least, very difficult. Can you serve up file segments from your browser using just Javascript?!?! If you’ve got a solution, please drop me a line so we can go start a company tomorrow!

Maybe the AllPeers plugin for Firefox is the answer. At least they’ve got the right idea, which is to run inside the brower. Of course, they need to support IE in addition to FF. If they could do that, and make the install as easy as the Flash player, then maybe…

Or maybe Windows Vista, with it’s built-in p2p features. Maybe MS will integrate hooks to the library into an upgrade to IE…now that would be interesting!

2006-12-04

Icecast
http://www.icecast.org/index.php

theora
http://www.theora.org/
peercast
http://www.peercast.org/
freecast
http://www.freecast.org/index.html.en

actlab
http://actlab.tv/index.html
trevbus
http://www.trevbus.org/

Stream~2~Stream
http://s2s.sourceforge.net/
-radio
http://p2p-radio.sourceforge.net/download/index.php.en

Nodezilla
http://evl.sourceforge.net/dl.html