Skip to content

Instantly share code, notes, and snippets.

@FreedomBen
Last active May 19, 2022 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FreedomBen/62b348ed45045e53356aeb7145cd209e to your computer and use it in GitHub Desktop.
Save FreedomBen/62b348ed45045e53356aeb7145cd209e to your computer and use it in GitHub Desktop.
# Install cockpit and pcp and activate services
dnf install -y cockpit pcp cockpit-pcp
systemctl enable --now cockpit.socket
systemctl enable --now pmlogger
# If needed, open port 9090 in the firewall
firewall-cmd --zone=public --permanent --add-service=cockpit
# Alternatively you can open port 9090 to only your own IP
firewall-cmd --zone=public --permanent --add-rich-rule='rule family="ipv4" source address="38.14.154.124" port protocol="tcp" port="9090" accept'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment