الجمعة، 17 سبتمبر 2010

Extract or Create RAR Files in Unix by SSH/Shell

Hi All ;)

Now I will tell you how to better manage the bow archives in RAR.

If you download a great game with size several GB from P2P or from where it comes from, we often find the files .r00, .r01, .r02, .r03..
And is to many to download one by one..

So we need extract in the server and manage there.

Connect by SSH, Change Directory where is the archives.

Run this command.
unrar e file-name.r00


And you done.

If you need to archive a big file and split by every Kilobytes or Megabytes, run this command.
rar a -v 4000k file-name-to-compress.rar file-name-uncompressed.avi

Where 4000k is the size of each part of the file. (4MB)

Note: This guide is designed for those who use the service or "Torrent Hosting" and "Leech Hosting" of RV89.
If you do not have one of these services, make sure it is rar and unrar installed on your server.


For see if there are installed or not, run:

RAR
whereis rar
rar: /usr/local/bin/rar /usr/local/man/cat1/rar.1 /usr/ports/archivers/rar

UNRAR
whereis unrar
unrar: /usr/local/bin/unrar /usr/ports/archivers/unrar


Here is installed. If you find anything or nly PortCollection (if use FreeBSD) you must install on your system.

Frist, Login as root or sudo privilage.

For install in Ubuntu/Debian
sudo apt-get install rar unrar


For install in CentOS/Fedora/RedHat
sudo yum install rar unrar


For install in FreeBSD:
cd /usr/ports/archivers/unrar
make install clean
cd /usr/ports/archivers/rar
make install clean
rehash


Thats ALL.

ليست هناك تعليقات:

إرسال تعليق