📄 install.unix.txt
字号:
Before installing BitTorrent 4.0.1, remove any older versions of theBitTorrent client that may be installed.Most of the following instructions require root privileges.How to install BitTorrent on a generic UNIX system:----------------------------------------Install Python, version 2.2.1 or laterhttp://python.org/Install GTK, version 2.2 or laterhttp://gtk.org/Install pygtk, version 2.4 or laterhttp://pygtk.org/Optionally install dnspython, version 1.3.2 or later, if you want tobe notified when there is a newer version of BitTorrent availablehttp://www.dnspython.org/Optionally, apply dnspython_patch.diff to dns/resolver.py, found in$PYTHONPATH or python's sys.path. (This patch prevents dnspython fromusing a lot of CPU when you have no network connection and is mainlyonly important under Windows.)Install BitTorrent by running python setup.py installOptionally, untar and put a line in /etc/mailcap which is similar tothe following, only replace the path to /usr/bin/btdownloadgui.py withthe one it's actually in.application/x-bittorrent; /usr/bin/btdownloadgui.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.)How 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)apt-get remove bittorrent bittorrent-guipython setup.py bdist_dumbcd dist/alien BitTorrent-4.0.1.linux-i686.tar.gzyou should now have a .deb package in: bittorrent-4.0.1.linux_i686-2_all.debthen install the .debdpkg -i bittorrent-4.0.1.linux_i686-2_all.debHow to build an .rpm format package and install it:----------------------------------------python setup.py bdist_rpmrpm -i dist/BitTorrent-4.0.1-1.noarch.rpm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -