No Picture
CentOS 7

Host your Own Yum Repository

Here we create our own yum repository on a fresh up-to-date installation of Centos 7. Configure Nginx First install the EPEL repository. And then Nginx. Start and enable Nginx. Install and configure a local firewall. […]

No Picture
CentOS

htpasswd with Nginx on CentOS 7

To setup basic HTTP authentication with Nginx on CentOS 7, first install httpd-tools. Create user and password: Amend your Nginx vhost configuration: Add the following lines: Check and reload vhost configuration:

No Picture
API

Install s3fs on Centos 7

s3fs allows Linux users to mount an S3 bucket via FUSE as if it were like any other file system. Install the EPEL repository. Then install s3fs. Copy public and private keys to ~/.passwd-s3fs. To […]

No Picture
CentOS

mkpasswd

The other day I couldn’t remember what package provided the mkpasswd binary….. yum whatprovides */mkpasswd yum install expect mkpasswd -l 12 The above creates a password of length 12 with two uppercase letters, two numbers […]