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
I had to setup Puppet-dashboard for some company. Below is a description of how this has been done.
Continue reading “Puppet-dashboard on CentOS.”
This describe howto install and configure the SNMP on a RedHat or CentOS and Suse.
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
Add the following lines to
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 127.0.0.1
SNMPv2-MIB::sysDescr.0 = STRING: Linux centos.somedomian.ie 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
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
# 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
# By default this script does nothing.
echo 12 > /sys/class/backlight/acpi_video0/brightness
After the reboot the Gnome keeps our settings 🙂
usermod --expiredate 1 username instead of
passwd -l username.
Passwd -l does not disable an account, just makes the password unusable, but the user could still login using an ssh key or other auth meth.
By the way, I know a lot of admins who made this mistake 😉
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
baseurl=file:///media #mount location
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.