{{tag>[hardware apu centos6.5]}}
=====PC Engines APU - CentOS 6.5 post install=====
====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;