Dec 6, 2012

How to query, install, upgrade or remove RPM in linux ?

Here we are first removing an existing rpm and installing the latest version.
For any of the action you should be either root or in the sudoers list.

To query for rpm
[root@system1 share]# rpm -qa | grep cmake cmake-2.6.4-5.el6.x86_64
To erase rpm
[root@system1 share]# rpm -e cmake-2.6.4-5.el6.x86_64
           [root@system1 share]# rpm -qa | grep cmake .
           [root@system1 share]#

To install rpm

           [root@system1 share]# rpm -i cmake-2.8.8-1.el6.rfx.x86_64.rpm
           warning: cmake-2.8.8-1.el6.rfx.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
           [root@system1 share]# rpm -qa | grep cmake cmake-2.8.8-1.el6.rfx.x86_64
           [root@system1 share]#
or


remove it using yum


            [root@system1 share]# yum remove

Nov 15, 2012

3rd annual VMware Cloud Index in 2012

Sep 18, 2012

Unicode server permits only unicode enabled clients. - Internationalization and Localization

Problem: Unicode clients require a unicode enabled server.

If P4CHARSET is set in the client , but the service is not operating in internationalized mode, the service returns the following error message:

Unicode clients require a unicode enabled server.

Solution:
For Perforce services operating in the default (non-Unicode mode), P4CHARSET must be left unset (or set to none) on user workstations.P4CHARSET only affects files of type unicode and utf16; non-unicode files are never translated.

Example:

c:\p4\project\>p4 edit startbuild
Unicode clients require a unicode enabled server.

c:\p4\project>set P4CHARSET=none
c:\p4\project>p4 edit startbuild
//project/startbuild#1 - opened for edit



For Perforce services operating in Unicode mode, P4CHARSET must be set on user machines. If P4CHARSET is unset, but the service is operating in Unicode mode, Perforce applications return the following error message:
Unicode server permits only unicode enabled clients.

c:\p4\project\>set P4CHARSET=UTF-8
c:\p4\project\>p4 edit startbuild
Character set must be one of:
none, utf8, utf8-bom, iso8859-1, shiftjis, eucjp, iso8859-15,
iso8859-5, macosroman, winansi, koi8-r, cp949, cp1251,
utf16, utf16-nobom, utf16le, utf16le-bom, utf16be,
utf16be-bom, utf32, utf32-nobom, utf32le, utf32le-bom, utf32be,
or utf32be-bom
Check P4CHARSET and your '-C' option.

c:\p4\project\>set P4CHARSET=utf8

For further information refer
http://www.perforce.com/perforce/r12.2/manuals/cmdref/env.P4CHARSET.html
http://kb.perforce.com/article/66/internationalization-and-localization
http://cygwin.com/cygwin-ug-net/setup-locale.html
 

Jul 27, 2012

How to add 'open Command Prompt Here' open in windows 7 while right clicking a directory ?

In windows, under xp and few other flavours we have to add certain values in registry to get the option of opening command prompt from a particular directory.

But windows 7 has this feature by default, but you have to hold 'shift' and do a right click.

Default behaviour when doing a right click on a directory
 when you hold shift and right click on a folder ,you will see the option "Open command prompt here"






Jul 25, 2012

How to find a machine whether its a physical machine or a Virtual machine in linux

You can get this information by using the unix utility, dmidecode.
dmidecode  is a tool for dumping a computerâs DMI (some say SMBIOS) ta-ble contents in a human-readable format. This table contains a description  of  the  systemâs  hardware  components,  as well as other useful pieces of information such as serial numbers and BIOS revision.

Note: This command should be used as root. or you can use "sudo" to execute it.


Sample Usage

In a virtual machine

[root@server2 tmp]# /usr/sbin/dmidecode |grep -i "vm"
                Manufacturer: VMware, Inc.
                Product Name: VMware Virtual Platform
                Serial Number: VMware-24 34 c4 76 3b 1a 94 8d-99 08 5d cc 81 04                            17 25
                        VME (Virtual mode extension)
                        VME (Virtual mode extension)
                Description: VMware SVGA II
                String 1: [MS_VM_CERT/SHA1/27d66596a61c48dd323409dfd5126e33f59                           ae7]
                
                
For a physical machine it will be like below

[mohan@server2 storage]# sudo /usr/sbin/dmidecode |grep -i "vm"
                VME (Virtual mode extension)
                VME (Virtual mode extension)