Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


centos_6.5_on_apu_-_post_install

This is an old revision of the document!


Change hostname

Edit /etc/sysconfig/network

HOSTNAME=myserver.domain.com

Redirect root mail

Edit /etc/aliases:

root:  you@mailaddress

Update aliases database:

newaliases

Configure relayhost, edit /etc/postfix/main.cf

relayhost = your.smtp.host

Reload postfix:

service postfix reload

SMART monitoring tools

Tools for monitoring SMART capable disks.

yum install smartmontools
chkconfig smartd on
service smartd start

Show SMART info:

smartctl --all /dev/sda

Temperature sensor

Install kernel module (the install will take a while, generating the initramfs file):

rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
yum install kmod-k10temp

Install lm_sensors:

yum install lm_sensors
sensors-detect

Show temperature:

# sensors
k10temp-pci-00c3
Adapter: PCI adapter
temp1:       +54.0°C  (high = +70.0°C, crit = +100.0°C)

bashrc example

if [ -n "$PS1" ]; then
  echo
  sensors |grep temp1 |awk '{print $1 $2}'
fi;
centos_6.5_on_apu_-_post_install.1400697021.txt.gz · Last modified: 2014/05/21 18:30 by admin