Install Open VMware Tools on CentOS 7

To install CentOS 7 in a virtual machine you can use either the standard CentOS distribution CD or the boot floppy/network method. The following installation instructions are for standard distribution CD.For Minimal install and Virtualization Host environments, Open VMware Tools is not available during installation. After CentOS 7 installation, to install Open VMware Tools, using root privileges, run the command:

root# yum install open-vm-tools

SNMP installation and configuration.

This describe howto install and configure the SNMP on a RedHat or CentOS and Suse.

1. Installation
Run command yum for RH and Centos, for Suse use zypper and install net-snmp-utils

for RH/Centos use yum
root# yum install net-snmp-utils

for Suse use zypper:

root# zypper install net-snmp-utils

2. Configuration
Add the following lines to /etc/snmp/snmpd.conf

rocommunity public
syslocation "IT Department"

and then start the snmpd service

root# /etc/init.d/snmpd start

Do snmpwalk to make sure it is working

root# snmpwalk -v 1 -c public -O e

sample output:
SNMPv2-MIB::sysDescr.0 = STRING: Linux 2.6.18-274.el5 #1 SMP Fri Jul 22 04:49:12 EDT 2011 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (719265) 1:59:52.65

And finally, make sure snmpd starts next time you restart your machine.

root# chkconfig snmpd on

Desktop doesn't remember brightness settings after a reboot.

Every time I reboot my laptop the brightness goes back to 100% in Gnome. I wish it would keep the last one setting. Here is a quick workaround for that:-) edit the /etc/rc.local file by typing: vim /etc/rc.local and add the following line:
echo 5 > /sys/class/backlight/acpi_video0/brightness

It looks like this:
root@ProBook:~# cat /sys/class/backlight/acpi_video0/brightness
root@ProBook:~# echo 5 > /sys/class/backlight/acpi_video0/brightness
root@ProBook:~# vim /etc/rc.local
root@ProBook:~# cat /etc/rc.local
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.
echo 12 > /sys/class/backlight/acpi_video0/brightness

exit 0

After the reboot the Gnome keeps our settings 🙂

Yum local repository to be able to access a CDROM/DVD iso.

You do not have access to the network and you would like to install some packages from CDROM/DVD, please follow the instructions:

First take a backup of /etc/yum.repos.d/ then remove these repo files:
CentOS-Base.repo, CentOS-Debuginfo.repo and CentOS-Media.repo
and add a new file called CentOS_local.repo with the following lines:

[root@localhost yum.repos.d]# cat CentosOS_local.repo
name=Centos DVD
baseurl=file:///media #mount location
[root@localhost yum.repos.d]#

Here baseurl=file:///media is the location of CentOS iso. Now you have to mount your CentOS iso into the media folder:

[root@localhost]# mount /dev/cdrom /media

Once this is done, you can go ahead with yum to install packages from CD/DVD.