Change hostname
hostnamectl # show current hostname
hostnamectl set-hostname <enter fqdn>
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'
yum install smartmontools systemctl enable smartd.service systemctl start smartd.service
smartctl --all /dev/sda
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
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)
yum install check-mk-agent vi /etc/xinetd.d/check-mk-agent #modify only_from systemctl enable xinetd systemctl start xinetd
#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