Skip to content

Instantly share code, notes, and snippets.

@haani-niyaz
Last active April 25, 2020 03:28
Show Gist options
  • Save haani-niyaz/07583228abca46168e7c7742e9d070d7 to your computer and use it in GitHub Desktop.
Save haani-niyaz/07583228abca46168e7c7742e9d070d7 to your computer and use it in GitHub Desktop.

RHEL Admin Tasks

Set timezone

$ sudo timedatectl set-timezone Australia/Melbourne

Setup NTP

$ yum install -y ntp
$ systemctl enable ntpd
$ systemctl start ntpd
Check NTP status
$ ntpstat 
synchronised to NTP server (103.214.220.220) at stratum 3 
   time correct to within 241 ms
   polling server every 64 s

Set hostname

$ sudo hostnamectl set-hostname build-ci

SSL

Check if cert is self signed

$ openssl s_client -showcerts -connect hostname.domain.tld:443

Curl & SSL

https://curl.haxx.se/docs/sslcerts.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment