How to install VMtools in Linux, CentOS, RHEL, Fedora

[root@Centos6 ]# mount /dev/cdrom /mnt
[root@Centos6 ]# cd /mnt
[root@Centos6 mnt]# cp VMwareTools-* /tmp
[root@Centos6 mnt]#cd /tmp
[root@Centos6 tmp]# tar -xzvf VMwareTools-*
[root@Centos6 tmp]# cd vmware-tools-distrib
[root@Centos6 vmware-tools-distrib]# ./vmware-install.pl

if needed:
yum install gcc kernel-devel

service network restart

more detail:

http://ithelpblog.com/cloudcomputing/vmware/howto-install-vmware-tools-on-centos-6-4-redhat-6-4-rhel-fedora-18/

http://www.thoughtpolice.co.uk/vmware/howto/centos-5-vmware-tools-install.html

Advertisements

change user shell to bin false

RHEL/Cent OS

# usermod -s /sbin/nologin username

or

change the shell from /bin/bash to /sbin/nologin

not affected by this shell (/sbin/nologin):

FTP clients
mail clients
sudo
many setuid programs

prevents access to the shell and logs the attempt. All of the following programs are prevented from accessing the user account:

telnet/login
gdm/kdm/xdm (graphical login)
su
ssh/scp/sftp etc

Debian / Ubuntu

$ sudo usermod -s /bin/false username

or

# sudo usermod -s /bin/false username

or

another way – touch /etc/nologin