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
DB's and Users
Create a DB CREATE DATABASE new_database; Drop a DB DROP DATABASE new_database; Create a new ...
Innodb recovery
What we will need to do for the recovery is to stop mysql and put it in innodb_force_recovery to ...
MySQL Replication
*** TESTED FOR CENTOS 7 *** NEED TO HAVE PORT 3306 OPENED! -- MASTER = 10.1.2.117, SLAVE = 10.1....
DRBD + Pacemaker & Corosync MySQL Cluster Centos7
On Both Nodes Host file vim /etc/hosts 10.1.2.114 db1 db1.localdomain.com10.1.2.115 db2 db...
Reset MySQL root password
Stop MySQL systemctl stop mysqld Set the MySQL environment option systemctl set-environment MY...
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
Firewall iptables script
# Interfaces WAN="ens3" LAN="ens9" #ifconfig $LAN up #ifconfig $LAN 192.168.1.1 netmask 255...
iptables
iptables arguments -t = table, -X = del chain, -i = interface Deleting a line: iptables -L --l...
Firewalld
Zones Pre-defined zones within firewalld are: drop: The lowest level of trust. All incoming c...
cPanel
Cluster
HaProxy
This is not a tutorial of how haproxy works, this is just some notes on a config i did, and some ...
DRBD + Pacemaker & Corosync NFS Cluster Centos7
On Both Nodes Host file vim /etc/hosts 10.1.2.114 nfs1 nfs1.localdomain.com10.1.2.115 nfs2 n...
Keepalived LoadBalacing
LVS Config ## Pool ID virtual_server <WAN "frontend" IP> 80 { delay_loop 6 ...
Distributed memcached on 2 Webserver [CentOS7]
Install memcached yum install memcached libmemcached -y vi /etc/sysconfig/memcached Change opt...
GlusterFS + Heketi [Ubuntu 18.04]
Requirement to this guide : Having an empty / unused partition available for configuration on all...
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...