Jump to content



Photo

Setting up WinRAR on your Haphost VPS - Posted By jh96


  • Please log in to reply
No replies to this topic

#1 Cryo Kinesis

Cryo Kinesis

    Haphost Staff

  • Moderators
  • 128 posts
  • LocationGridania, Eorzea

Posted 05 August 2014 - 06:12 PM

I had a bit of trouble setting up my WinRAR on the VPS because of a glibc error (it not being one of the latest) and I wasn't going to update it just because of the hassle.


Here's a tutorial on how to install it on your CentOS VPS.
Alternatively, you can download a .sh file that will automatically install winrar for you by just clicking this link. (or if you're on your vps, use wget https://dl.dropbox.c...13228/winrar.sh and then type sh ./winrar.sh )

First, we'll have to download an older version of Winrar, I like to add the -O filename so that it is a easier to type without the version number.


wget -O rar.tar.gz http://www.rarlab.com/rar/rarlinux-3.7.1.tar.gz


Now, you need to extract the rar file from the .tar.gz file.


gzip -dc rar.tar.gz | tar xf -

or you can do


tar zxvf rar.tar.gz

now you just need to go to the directory


cd rar

now we're going to copy both the files to the bin folder,


cp rar unrar /bin



NRAR 3.71 freeware Copyright © 1993-2007 Alexander Roshal


Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>


<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path


<Switches>
- Stop switches scanning
ad Append archive name to destination path
ap<path> Set path inside archive
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n<file> Include only specified file
n@ Read file names to include from stdin
n@<list> Include files in specified list file
o+ Overwrite existing files
o- Do not overwrite existing files
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries
  • demotest likes this

Cryo%20Kinesis%20Haphost%20Sig2.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users