npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

new-alma-linux-host

v1.0.0

Published

Setup and configuration scripts for a new AlmaLinux host.

Downloads

4

Readme

Alma Linux Host Setup Script

Static Badge Static Badge

Overview

This script automates the setup and configuration of a new AlmaLinux host. It includes:

  • Installation and configuration of required services and dependencies.
  • Web server setup (Nginx and Apache).
  • SSL certificate provisioning using Let's Encrypt.
  • Firewall configuration.
  • OpenVPN setup.
  • Fail2Ban for SSH brute force protection.
  • GeoIP database updates.
  • Automatic renewal of SSL certificates.

Features

| Feature | Details | |--------------------------|---------------------------------------------------| | Platform | AlmaLinux | | Dependencies | dnf, certbot, nginx, httpd, fail2ban, etc. | | SSL Certificate | Provisioning via Let's Encrypt | | Firewall | Configures Firewalld with custom rules | | VPN | OpenVPN setup and configuration | | Brute Force Protection | Fail2Ban for SSH | | GeoIP Database | Updates and installation |

Requirements

  • AlmaLinux 8 or later.
  • Root privileges.
  • A registered domain name.
  • Public IP address of the server.

Usage

  1. Download the Script: Save the script to your AlmaLinux host.

  2. Make the Script Executable:

    chmod +x NewAlmaLinuxHost.sh
  3. Run the Script:

    sudo ./NewAlmaLinuxHost.sh
  4. Provide Inputs When Prompted:

    • Public IP address of the server.
    • Domain or subdomain to be configured.

What the Script Does

1. Installs Required Dependencies

  • Ensures all necessary packages are installed, including:
    • certbot
    • nginx
    • httpd
    • fail2ban
    • geoip and geoip-update
    • openvpn

2. Configures Web Servers

  • Nginx: Configures for the provided domain on port 80 and port 443.
  • Apache: Creates a virtual host configuration for the domain.

3. Provisions SSL Certificates

  • Uses Certbot to generate SSL certificates for the domain.
  • Configures SSL for both Nginx and Apache.

4. Firewall Configuration

  • Opens necessary ports using Firewalld:
    • HTTP (80), HTTPS (443), SSH (22).
    • OpenVPN (1194), NTP (123).
    • SIP (5060-5061), RDP (3389), VNC (5900-5901).

5. Fail2Ban Configuration

  • Protects SSH from brute force attacks with permanent bans.
  • Customizes Fail2Ban settings for AlmaLinux.

6. GeoIP Database Update

  • Downloads and installs the latest GeoIP database for location-based restrictions.

7. SSL Certificate Renewal

  • Configures a cron job to automatically renew SSL certificates.

Sample Output

Upon successful execution, the script outputs:

NewAlmaLinuxHost setup has been successfully configured for <your-domain> with firewall rules, GeoIP, and Fail2Ban!

License

This script is distributed under the MIT License. See LICENSE for more information.