Saturday, September 29, 2012

Linux: To know whether the system is 32-bit or 64-bit

There are several ways to find this:

1)The kernel version can be found by, using "uname -m" command.
$ uname -a

i686      -->  32-bit
i386      -->  32-bit ==> so, ix86 --> 32-bit

x86_64  -->  64-bit


2) by using the getconf command as below
$ getconf LONG_BIT
This straight away returns 32 or 64.

Linux/CentOS: way to install vlc player on Cent OS 6

way to install vlc player on Cent OS 6


1) Install RPMForge repository as:
(To know the kernel version, check here)

in 64-bit:

rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

in 32-bit:

rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

2) Now, install VLC as:

yum install vlc
------------------