# Development tools
apt-get -y install gcc
apt-get -y install python-devel
apt-get install cc-devel
# Remove very old Python
apt-get -y remove python
# Python 2.5.2
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
gzip -d Python-2.5.2.tgz
tar xf Python-2.5.2.tar
cd Python-2.5.2
./configure
make
make install
cd
# cheetah-2.0.1
wget http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-2.0.1.tar.gz
gzip -d Cheetah-2.0.1.tar.gz
tar xf Cheetah-2.0.1.tar
cd Cheetah-2.0.1
python2.5 setup.py install
cd
# yenc module >= 0.3
wget http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
gzip -d yenc-0.3.tar.gz
tar xf yenc-0.3.tar
cd yenc-0.3
python2.5 setup.py install
cd
# par2cmdline >= 0.4 http://parchive.sourceforge.net/
wget http://garr.dl.sourceforge.net/sourceforge/parchive/par2cmdline-0.4.tar.gz
gzip -d par2cmdline-0.4.tar.gz
tar xf par2cmdline-0.4.tar
cd par2cmdline-0.4
./configure
make
make check
make install
cd
# unrar >= 3.6.6 http://www.rarlab.com/rar_add.htm
wget http://www.rarlab.com/rar/unrarsrc-3.7.8.tar.gz
gzip -d unrarsrc-3.7.8.tar.gz
tar xf unrarsrc-3.7.8.tar
cd unrar
make -f makefile.unix
cp unrar /usr/local/bin
cd
# unzip >= 5.5.2 http://www.info-zip.org/
# use installed 5.5.1 release??
cd
# feedparser >= 4.1 http://feedparser.org/
# Only needed for pre-0.5.0 releases !
wget http://feedparser.googlecode.com/files/feedparser-4.1.zip
mkdir feedparser-4.1
cd feedparser-4.1
unzip ../feedparser-4.1.zip
python2.5 setup.py install
cd
# SABnzbd
wget http://switch.dl.sourceforge.net/sourceforge/sabnzbdplus/SABnzbd-0.5.0-src.tar.gz
gzip -d SABnzbd-0.5.0-src.tar.gz
tar xf SABnzbd-0.5.0-src.tar
cd SABnzbd-0.5.0
# pre-compile optimized
python2.5 -OO SABnzbd.py -v
Cài đặt
$ wget ftp://ftp.elf.stuba.sk/pub/pc/pack/unrarsrc.tgz
$ tar xvzf unrarsrc.tgz
$ cd unrar
$ mv makefile.unix Makefile
$ make
$ su
# mv unrar /usr/local/bin
Cách giải nén file foo.rar
$ unrar e foo.rar
Muốn biết rõ hơn về cách dùng, gõ "unrar"!
Không có nhận xét nào:
Đăng nhận xét