Monday 28 April 2014

Install VMware guest Linux OS tools

Installing VMware tools in guest Windows Based OS is simple where dialog box appears and user just needs to confirm the installation. In CLI based linux OS user needs to perform a couple of check and complete procedure is as following:
First step is to make sure that perl is present in the server;
Using the following command it can be verified:
rpm -qa | grep perl
if it is not present then use following commands to install (I have installed it in centOS);
yum -y install perl
after it is installed create a directory:
mkdir /mnt/cdrom
Then on the Vsphere client and attach the linux tools iso:
vmware guest os tools

after iso is inserted mount the cdrom to folder which was created earlier
mount /dev/cdrom /mnt/cdrom
copy the tar file on /tmp folder
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp
after copy umount the device
umount /mnt/cdrom
unzip the tar file
tar -zxf /tmp/VMwareTools-*.tar.gz -C /tmp
then run the following command, -D means default setting if you want manual settings then remove the -D check
/./tmp/vmware-tools-distrib/vmware-install.pl -D
remove the files and tmp folder
rm -f /tmp/VMwareTools-*.tar.gz
rm -rf /tmp/vmware-tools-distrib

Saturday 26 April 2014

Copy files from linux to another linux server

There are other ways to copy files from a linux server to another linux server. We can use ftp protocol as well but that requires configuration. easiest way is to transfer files using scp.
Scp means “secure copy” it is based on SSH protocol which itself is secure protocol. To transfer files from Windows machine to linux or vice versa there is a software called winscp which can be easily install on windows machine. and it can transfer files to and from Linux server.
To copy files from one linux machine to another following methods is used:
[root@centos]#scp
-bash: scp: command not found
 “this means that scp rpm is not installed on the server. package openssh-clients needs to installed”
[root@centos]# yum install openssh-clients –y
“to install rpm”
To copy file use:
Scp /home/testfile.txt root@serverip:/home/
” to copy files from server you are logged in to a remote server”where serverip can be hostname of that server or what ever the ip that server has.”
To copy directory and all it content we use:
Scp -r /home/testdir root@serverip:/home/dir
” to copy directory and all its content we use the above command”

Thursday 3 April 2014

Error 404. That’s an error on domain.com

Recently purchased a new domain for my blog and removed it from a subdomain and redirected the blog to new domain. It was working fine until I checked it using http://zyraxtech.com and got 404. That’s an error.
It is a very small mistake people make and it result in traffic redirection loss. Fix is simple.
If we are using blogger then just go to the blog's dashboard, go to Settings>Basic and click on Edit.
then put a check on 
This would redirect http://zyraxtech.com to www.zyraxtech.com (replace zyraxtech with your domain).