Month: March 2019

How to Install HAProxy using PKGSRC

How To use PKGSRC: https://www.netbsd.org/docs/pkgsrc/creating.htmlInstall dependencies:yum install epel-release -yyum groupinstall "Development Tools" -yyum install vim…

Network Time Service for Centos 7

yum install -y ntp ntpdatesystemctl start ntpdsystemctl enable ntpdntpdate -u -s 0.north-america.pool.ntp.org 1.north-america.pool.ntp.org 2.north-america.pool.ntp.org 3.north-america.pool.ntp.orgsystemctl…

Some Common Gitlab Commands

To ignore SSL Cert errors: git config --global http.sslVerify "false"   # checkout changed file…

How To Compile Package Source

Notice: currently, we know of a few releases of PKGSRC that are usable as it…

Baseline Server Image

OS: CentOS 7 Minimal Obtain ISO from https://www.centos.org/download/ Create Bootable USB On a CentOS 6.5, Ubuntu…

Setup LAMP using RedHat 7

// Add a new user and set it with root privileges: sudo su useradd {root-user}…

Nginx Apache SSL Example

-------------- NGINX -> ** /etc/nginx/sites-available/domainx.conf**server {listen 80;servername xxxxx.domainx.com;return 301 https://$host$requesturi;}server {listen 443 ssl;servername xxxxx.domainx.com;sslcertificate /etc/nginx/ssl/cert_domainx.crt;sslcertificatekey…

Error: 502 Gateway Error

Explanation: 502 Gateway Error generally means connection problems with an upstream proxy. In this instance,…

Apache HTTPd

# Install Apacheyum install httpd# Configure Apachevim /etc/httpd/conf/httpd.conf##### Change portNameVirtualHost 127.0.0.1:8080Listen 127.0.0.1:8080######### Set DocumentRootDocumentRoot "/var/www/kimconnect"######…

NGINX

# Create nginx.repovim /etc/yum.repos.d/nginx.repo#### content ####[nginx]name=nginx repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=0 enabled=1###############sudo yum update nginxsudo service nginx…

Docker DRUPAL Container

# Preseed drupal files with persitent storagemkdir /var/www/html/kimconnect/{modules,profiles,sites,themes}docker run --rm drupal tar -cC /var/www/html/sites .…

Docker ShellInABox

docker run --privileged -p 9999:4200 -e SIAB_PASSWORD=password-e SIAB_SUDO=true sspreitzer/shellinabox:latestdocker run --privileged -d --name shellinabox -p…

Firewall-Cmd

# Show all zonesfirewall-cmd --get-zones# Show Active Zonesfirewall-cmd --get-active-zones# Show Trusted Zonefirewall-cmd --list-all --zone=trusted# Set…

LAMP Stack using Docker

# Install docker and composeyum install docker docker-compose -y# Add user into docker groupusermod -aG…

Linux Swapfile

There's a more updated post here. Setup Swap on CentOS Localhost:# Check memory & swap…

Docker Alpine OpenSSH-Client

# Run Alpinedocker run --privileged --restart always --name alpine alpine:latest# Run these commands from inside…

MySQL on Localhost

Modern versions of MySQL is memory intensive; thus, it is a pre-requisite that an adequate…

MySQL Docker Container

################### Dockerfile Build Method ######################mkdir /var/lib/docker/mysql && cd /var/lib/docker/mysqlvim Dockerfile################## Dockerfile contents ###################### Derived from…

Storage & Transfer Speed Unit of Measurement

Intro What's all this talk about bits and bytes? Why do hard drive manufacturers measure…

Common Windows Ports and Services

Port Protocol Application protocol System service name n/a GRE GRE (IP protocol 47) Routing and…