Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


fedora_20_post_install_configuration

PC Engines APU - Fedora 20 post install

  • This is mainly for the PC Engines APU
  • After installing Fedora, run 'yum update' and install the latest updates.

Networking

Set hostname

Change hostname

hostnamectl # show current hostname
hostnamectl set-hostname <enter fqdn>

Configure static networking

Show connections:

nmcli c show

Edit connection

su - root
nmcli c edit <uuid>
 
# set ipv4 address and gateway
nmcli> set ipv4.addresses 1.2.3.4/24 2.3.4.5

# set DNS
nmcli> set ipv4.dns 4.5.6.7 5.6.7.8
nmcli> set ipv4.dns-search yourdomain.com
  
# set autoconnect
nmcli> set connection.autoconnect yes
   
# save and activate
nmcli> save

nmcli c up 'System p4p1'

Services

SMART monitoring tools

  • Install package:
    yum install smartmontools
    systemctl enable smartd.service
    systemctl start smartd.service
  • Show SMART info:
    smartctl --all /dev/sda

Install chronyd

yum install chronyd

# edit ntp servers in /etc/chrony.conf

systemctl enable chronyd.service
systemctl start chronyd.service

#Check chronyd status
chronyc sources

#Check settings with timedatectl
timedatectl

Install lm_sensors

yum install lm_sensors

Detect the sensors

sensors-detect
# I choose the default answers and then...

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 12h and 14h thermal sensors' (confidence: 9)

Show CPU temperature:

sensors

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

Install check-mk-agent

yum install check-mk-agent
vi /etc/xinetd.d/check-mk-agent #modify only_from

systemctl enable xinetd
systemctl start xinetd
Open port 6556
#zone info
firewall-cmd --get-zones
firewall-cmd --get-zone-of-interface=p4p1
firewall-cmd --get-active-zones

#set default zone
firewall-cmd --set-default-zone=home

#list services in zone
firewall-cmd --permanent --zone=home --list-services

#disable services in zone
firewall-cmd --permanent --zone=home --remove-service=dhcpv6-client
firewall-cmd --permanent --zone=home --remove-service=ipp-client
firewall-cmd --permanent --zone=home --remove-service=mdns
firewall-cmd --permanent --zone=home --remove-service=samba-client

#add port
firewall-cmd --permanent --zone=home --add-port=6556/tcp
firewall-cmd --permanent --zone=home --list-ports

#reload
firewall-cmd --reload
fedora_20_post_install_configuration.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1