萍聚社区-德国热线-德国实用信息网

 找回密码
 注册

微信登录

微信扫一扫,快速登录

萍聚头条

查看: 627|回复: 2

SunOS下使用BT

[复制链接]
发表于 2003-11-16 18:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册 微信登录

x
在SunOS 5.6 sparc以non-root身份安装BitTorrent。(原创)

一,环境:
SunOS 5.6 sparc Server
service:
SSH
FTP
HTTP...

Shell:
bash
csh...

GCC 2.95.3 OpenWin X11 glib gtk2...

普通用户帐号(non-root)

二,所需软件包:
Python http://www.python.org/ftp/python/2.3.2/Python-2.3.2.tgz
wxPython http://prdownloads.sourceforge.n ... nSrc-2.4.2.4.tar.gz
BitTorrent Python版 http://bitconjurer.org/BitTorrent/BitTorrent-3.3.tar.gz

三,安装:
首先检测系统上是否已经装有Python以wxPython,如无,则必须编译/安装之.

Python包的安装:
tar xzvf Python-2.3.2.tgz
cd Python-2.3.2
./configure --prefix=home_dir
make
make install

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:home_dir/lib

wxPython包的安装:
tar xzvf wxPythonSrc-2.4.2.4.tar.gz
cd wxPythonSrc-2.4.2.4
经检查,我这台SUNOS上没有OPENGL,所以在configure的时候要去除opengl,
各位网友最好用configure --help查看自己没有的选项。
configure --prefix=home_dir --with-opengl=no --disable-gui (这个很重要,如果你没有OpenGL)
make
make install

BitTorrent的安装:
Python版的BitTorrent只需要解压就可以了。
tar xzvf BitTorrent-3.3.tar.gz


BitTorrent的使用:
因为我只搞定文本模式下的使用,所以GUI模式下的就靠各位自己研究了。
如果哪位搞定了,也请站内告知我方法,感谢:)

cd BitTorrent-3.3

1,首先,我们必须启动一个tracker
./bttrack.py --port 6969 --dfile dstate&

2,建立一个metainfo文件
先下载一个.torrent文件(这是什么不用我讲了吧?bt.btchina.net很多的)
./btmakemetafile.py downloaded.torrent http://yourTrackerServer.IP:6969/announce
显示100& Complete就证明正常,不然查查你的那个tracker启动到哪个端口了,还有防火墙之类。

3,开始下载目标文件
btdownloadheadless.py downloaded.torrent

嗯,就是酱紫了:)

随意写的东东,错了的地方还请赐教:)



Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
 楼主| 发表于 2003-11-25 00:01 | 显示全部楼层
btmakemetafile.py 这一步,如果使用的是从BtChina下载来的种子,可以考虑用http://btfans.3322.org:6969/announce的tracker。酱子可以进行多进程下载。
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2003-12-12 00:18 | 显示全部楼层
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

手机版|Archiver|AGB|Impressum|Datenschutzerklärung|萍聚社区-德国热线-德国实用信息网

GMT+1, 2025-3-12 18:32 , Processed in 1.921017 second(s), 20 queries , MemCached On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表