Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

NTP and Mail/shaare/w70vdA

  • linux
  • linux

NTP / Chronyd → Time Synchronisation

  • nano /etc/chrony.conf → edit conf
  • systemctl start chronyd
  • systemctl enable chronyd
  • chronyc → interactive cmd

timedatectl → Change date/time

  • timedatectl → check status
  • timedatectl set-timezone Europe/Berlin
  • timedatectl set-time YYYY-MM-DD
  • timedatectl set-ntp true → set synchronisation

Mail Server → Postfix & s-nail

  • /etc/postfix/main.cf → configuration

  • systemctl restart postfix

  • dnf install postfix → handle email server

  • dnf install s-nail → write & send email

  • nano /etc/postfix/main.cf

  • mail -s "Mail setup" name@domain.com

    • return
    • body… → Ctrl+D
8 months ago Permalink
cluster icon
  • Networking : Interface configuration files: /etc/nsswitch.conf → where resolve hostname to IP address /etc/hosts → add new IP to resolve /etc/resolv.conf → r...
  • SED: Stream Editor for Text Manipulation : Basic Replace Syntax: sed -i 's/KENNY/LENNY/g' filename Substitute all occurrences of "KENNY" with "LENNY" Delete Line Containing String: s...
  • Firewall : Enable firewall firewall-config → GUI for options add ports firewall-cmd → CLI cat /etc/sysconfig/iptables-config cat /etc/firewalld/firewalld.co...
  • Package Management : System Updates & Software Install dnf (yum) → RedHat → /etc/yum.repos.d apt-get → Debian rpm → RedHat package management standalone package to ...
  • Apache and Nginx : Apache Web Server dnf install httpd nano /etc/httpd/conf/httpd.conf nano /var/www/html/index.html systemctl restart httpd systemctl stop firewalld N...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community