📄 install.unix.txt
字号:
The easiest way to install BitTorrent is to run the install_nix.shscript included in the source code. The rest of these directions areincluded for historical reasons.----------------------------------------Before installing BitTorrent 5.x, remove any older versions of theBitTorrent client that may be installed. This command will tell youif you have an older version of BitTorrent installed:ls -dl /usr/lib/python*/site-packages/BitTorrent* /usr/lib/python*/site-packages/khashmir*Many of the following instructions require root privileges.Prerequisites for installing BitTorrent on any generic UNIX system:----------------------------------------Install Python, version 2.3 or later. (2.4 recommended)http://python.org/Install wxWidgets, version 2.6 or later, in the Unicode flavor.http://wxwidgets.org/Install wxPython, version 2.6 or later, in the Unicode flavor.http://wxpython.org/Install GTK, version 2.6 or later.http://gtk.org/Install Twisted, version 2 or later.http://twistedmatrix.com/trac/Install PyCrypto, version 2 or later.http://www.amk.ca/python/code/cryptoInstall Psyco.http://psyco.sourceforge.net/Install Zope.Interface.http://www.zope.org/Products/ZopeInterfaceIn all cases, it is STRONGLY recommended that you install thesepackages using the standard package management system on yourparticular distribution.Next, be sure to remove any older versions of BitTorrent that may beinstalled. How to install BitTorrent using Python's distutils system:----------------------------------------Install BitTorrent by running this from the root of the source codedirectory:$ python setup.py installHow to build a .deb format Debian package and install it:----------------------------------------First, remove any older versions of BitTorrent that may be installed:(this command will also remove BitTornado)$ sudo apt-get remove bittorrent bittorrent-guiBuild a proper deb using the following command:$ sh build_nix_pkg.sh debthen install the .deb:$ sudo dpkg -i dist/bittorrent_5.x.y_python2.z.debHow to build an .rpm format package and install it:----------------------------------------Generate an .rpm format package:$ python setup.py bdist_rpmThen install the .rpm:$ sudo rpm -i dist/BitTorrent-5.x.y-1.noarch.rpm How to add BitTorrent as the default mime-type handler:----------------------------------------This step is optional. Put a line in /etc/mailcap which is similar tothe following, only replace the path to /usr/bin/bittorrent.py withthe one it's actually in.application/x-bittorrent; /usr/bin/bittorrent.py %s; test=test -n "$DISPLAY"You may have to restart your web browser for it to start usingBitTorrent.If you're using a web browser which doesn't respect /etc/mailcap youcan go into the mime-type configuration for your web browser andmanually associate application/x-bittorrent with btdownloadgui.py(with the appropriate path, of course.)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -