How to open winrar files with Linux
Introduction
To open RAR (those created with winrar) you will need unrar. There are lots of sites now providing files packaged under the rar format.
So you will need first to install unrar on your systems and therefore be able to list content and unpack the files into your hard disk to be able to work with them.
Installation unrar on Debian / Ubuntu
apt-get install unrar
Installation unrar on Fedora / Centos
Be sure to have rpmforge repository enabled on CentOS
yum install unrar
Using unrar
To read the contents of the file.
unrar l [filename.rar]
Read more…
How To remote backup with rsync
This is probably the simply way to backup data to other server using a secure protocoal an minimum bandwidh.
Note:
BackupServer.com – Is the backup server
MainServer.com – Is the server you want to backup
- Login to the server you want to backup
- Creating a key with the ssh-keygen utility:
ssh-keygen -t rsa -N '' (these are two single quotes) - Copy RSA encryption key to the backup server:
scp ~/.ssh/id_rsa.pub username@backupserver.com:keys/server1
ssh username@backupserver.com mergekeys
How To Install IonCube Loader
If you need IonCube loader in order to encode scripts. You will need to install IonCube loadar on your box.
- Login to your server as root and download the loaderfor your server: http://www.ioncube.com/loader_download.php
- Then extract it
tar -zxvf ioncube_loaders.tar.gz
cd ioncube - Copy ioncube-install-assistant.php file to a www diretory
cp ioncube-install-assistant.php /home/username_here/www
How to run PHP 4 and 5 on Cpanel
by Tweak on June 13, 2009
in Domain/Hosting, Php, Servers
This information is helpful for hosting companies that want to run PHP 4 & 5 on the same cPanel server. After this, Hosting costumers / cPanel users should choose what version of PHP will they use on theirs scripts.
You should consider some implications on your server performance, but webhosts are using because they don’t need two server to run the different PHP versions for different costumers.
How to run PHP 4 and 5 on the same Cpanel server
Read more…
How To Install cPanel on a VPS Server
by Tweak on June 13, 2009
in Domain/Hosting, Servers, Vps
This post is a mini how to, and will help to simply install cPanel on you VPS server. Note that cPanel needs 128 MB to work, but we recommend 256MB.
- Login to your VZMC to get inside your server
- Create a new VPS with the Sample Ve Config call vps.cpanel
- Now you should select the ips you want to use in that VPS and the dns servers.
- Select RedHat Enterprise Template (you dont need to select any addon for cpanel), and select the Space / Memory / CPU
How To Install ImageMagick
What is ImageMagick ?
ImageMagick is a software suite for image manipulation and display, supporting close to 100 image formats, it is mainly used to perform various transformation and conversion operations on images.
How To Install ImageMagick: Read more…
How To Secure /tmp and /dev/shm partition
Keep you server clean of rookits is a good idea to get a good security level. A sysadministrator can create a seperate partition for /tmp and mount it with noexec and nosuid parameters. And to do it is not necessary to reboot or repartition your drive.
1. First you should secure /tmp:
Read more…
AJAXing the Web
by Tweak on June 12, 2009
in Ajax, Javascript
AJAX is one of the hottest new technologies, in the ever growing universe of Web development. In this article, we’ll get to know how AJAX fits in a real-world situation and how you can assess its value in a project. Hopefully, by the time you finish reading this article, you’ll know what AJAX is, why, and how to use it.Nothing really new about what is happening here.
The normal routine in Web development involves requesting a file from the Web Server and receiving a page as response. So whats new with AJAX. Just that the difference, is that requests are being made from the Client side Java Script, which is embedded within HTML.
So what is AJAX ?
AJAX is acronym of Asynchronous Java Script and XML Read more…
JavaScript Browser Detection
by Tweak on June 12, 2009
in Javascript
Browser detection is a vital tool when your web site looks different or does not function correctly when viewed in different browsers. Using Javascript, you can redirect viewers to different pages or display different content depending on a user’s browser.
We will use the index of function and the navigator object in order to preform browser detection. What we first need to do is to determine what type of browser the user is using. To do this, we use the navigator.userAgent function to determine the type (application) being used. We create a variable called browsername to do this. Here is what the script looks like so far: Read more…
Image Rollovers
by Tweak on June 12, 2009
in Javascript
Ever wonder how people make those images switch over when you put your mouse over them? Like so:
Well, they probably used Javascript. This tutorial will demonstrate one of the easiest ways to accomplish the rollover effect. Near the top of your HTML code, you need to insert a preloader script that will tell the browser to download the images you wish to have appear when the mouse is hovering over them. It is usually a good idea to put this code inside the tags. The code should look like this: Read more…
