Skip to main content

Linux

Linux

Fedora 30 QEMU-KVM OVMF Passthrough

My Hardware Motherboard: Z370 AORUS Gaming 5 (rev. 1.0)CPU: Intel(R) Core(TM) i7-8700K CPURAM: 6...

Useful Commands

This page is to share commands / arguments that makes life easier.   Rsync rsync -vaopHDS --st...

Fail2Ban

What is Fail2Ban: Fail2Ban is an intrusion prevention tool to prevent brute-force attacks or h...

named

/etc/named.conf options { listen-on port 53 { any; }; listen-on-v6 { none; }; ...

Arch install notes (uEFI & Nvidia)

Before starting the bootable media, if you are on a GTX 10XX, the interface will not load properl...

Grub

Normal grub install (root@server) # grub     GNU GRUB version 0.97 (640K lower / 3072K upper ...

rdiff-backup

#!/bin/bash SERVEURS="HOSTNAME.SEVER.COM 127.0.0.1" RDIFFEXCLUSIONS="--exclude /mnt --exclude...

OpenSSL

Check SSL On domain openssl s_client -connect www.domain.com:443 Check a Certificate Signing R...

Kubernetes cluster Administration notes

Kubectl Show yaml kubectl get deployments/bookstack -o yaml Scale kubectl scale deployment/na...

Recover GitLab from filesystem backup

Install new instance/node before proceeding  Install gitlab on server and move postgres DB as ba...

Apache/Nginx/Varnish

Apache vhost vim /etc/httpd/conf/httpd.conf add ( include vhosts/*.conf ) at the bottom mkdir ...

Nagios NRPE

Downloading Nagios Core: https://www.nagios.org/downloads/nagios-core/thanks/?t=1500128149 Inst...

Verifying CMS versions

WordPress version: Linux/cPanel: find /home/*/public_html/ -type f -iwholename "*/wp-includes/v...

Systemd

  vim /etc/systemd/system/foo.service chmod +x /etc/systemd/system/foo.service [Unit] Descript...

LogRotate

Add a service to logrotate vi /etc/logrotate.d/name_of_file /var/log/some_dir/somelog.log {  ...

Let's Encrypt & Certbot

Installation Ubunutu add-apt-repository ppa:certbot/certbot apt-get update && apt-get ...

MySQL

Notes for MySQL

Regular expressions

SED Character Description ^ Matches the beginning of the line $ Matches the end of th...

Raid

Docker

Docker hub https://hub.docker.com/ Searching an Image docker search <img-name> Pull a I...

Ansible

This Wiki page is a list of examples based of this project i created, for the full project detail...

Firewall

cPanel

Cluster

Git

Tags git tag -a v0.1 -m "tagname"git tag v0.1Deletegit tag -d v0.1 Branch Create branchgit bra...

Site-to-Site OpenVPN with routes

Install https://github.com/angristan/openvpn-install First, get the script and make it executab...

LVM

LVM functions by layering abstractions on top of physical storage devices. The basic layers that ...

Fedora Build ACS Override Patch Kernel

Add RPM Fusion sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-relea...

Chef notes

run cookbook locallychef-client --local-mode recipes/default.rb genrate cookbook chef generate c...

Kubernetes the hard way

node notes kube-1 192.168.1.8 192.168.2.151kube-2 192.168.1.10 192.168.2.162kube-3 192.168.1.6 1...

Kubernetes install with kubeadm

Network Example 10.10.11.20 kubemaster kubemaster.myhypervisor.ca 10.10.11.30 kube1 kube1.myhyp...

Docker Swarm (WIP)

On master docker swarm init Copy/Paste docker swarm join on all other nodes docker swarm join ...

Ubuntu - Remove and Reinstall MySQL

Reason i am posting thing is because MySQL leaves to many file behind, this post can be helpful w...

TargetCLI CentOS 7

Install targetcli yum install targetcli -y systemctl enable target systemctl start target C...