Yet Another Arch Guide

Setting up Arch with other bells and whistles.

Bash Tips & Tricks

Usefull bash tips & tricks

Changing boot targets

Switch between run levels / environments.

Mount with automount (autofs)

Automagically mount remote directories on login.

Fatrace: Report system wide file access events

fatrace watches every file on server (except from itself and other kernel file systems). fatrace watches every file on server (except from itself and other kernel file systems). Install on Centos7 Download the repo file from fedorainfracloud.org sudo curl https://copr.fedorainfracloud.org/coprs/ifas/fatrace/repo/epel-7/ifas-fatrace-epel-7.repo > /etc/yum.repos.d/ifas.repo sudo yum install fatrace -y Usage Option Description -c, –current-mount Only record events on partition/mount of current directory. Without this option, all (real) partitions/mount points are being watched.

Troubles with interfaces after a VM clone

Remapping interfaces and their MAC address. Often, when you clone a VM you could stumble against errors like:

[FAILED] Device eth0 does not seem to be present, delaying initialization

You could change your network configuration to match the correct interface or let Linux reread the available interfaces

/etc/udev/rules.d/70-persistent-net.rules holds the configuration of available devices. Make sure that the MAC address is correct and that the name maches your configuration

NCDU: NCurses Disk Usage

ncdu is a command line tool to scan and calculate directory and file sizes.

Live Search With HUGO

HUGO is static, that’s a fact. How can I implement a live search? Searching the internet provided me only solutions that require a page refresh, this time of age performance is key, so that’s why I wanted a fast and fuzzy search implementation.

Let's Encrypt

Let’s Encrypt: Aanmaken / vernieuwen certificaat: /opt/letsencrypt/letsencrypt-auto certonly --expand ---email support@domain.tld --agree-tos --webroot -w /var/www/vhosts/WEB/ROOT -d domain.tld -d domainalias.tld --dry-run /bin/certbot --text --agree-tos --non-interactive certonly -a webroot --webroot-path /var/www/vhosts/WEB/ROOT -d domain.tld -d domainalias.tld --dry-run --dry-run om het aanmaken te testen. Apache / httpd (1) Voeg volgende regels toe aan de apache config: Alias /.well-known /var/www/vhosts/letsencrypt/.well-known <Directory /var/www/vhosts/letsencrypt/.well-known> order allow,deny allow from all satisfy any </Directory> Of (2) voeg volgende regels toe aan .

MySQL Tuner

MySQL Tuner WAARDE ACTIE query_cache_size AFBLIJVEN table_cache AFBLIJVEN (maximumwaarde = 64) table_open_cache AFBLIJVEN join_buffer_size Verhogen indien Joins performed without indexes++ tmp_table_size Verhogen = max_heap_table_size max_heap_table_size Verhogen = tmp_table_size query_cache_type =1 indien =0 mysql tuning improvements table_cache NOOIT hoger dan 64 Sudo vim /etc/my.cnf query_cache_size’ => ‘256M’, It caches the select query along with the result set, which enables the identical selects to execute faster as the data fetches from the in memory.

Windows troubleshooting

Windows troubleshooting VRAGEN: + openen vanuit ticketing, wachtwoord en gebruiker + custom even viewer view? + test server? EventViewer run: eventvwr custom views windows application (non windows standard, puppet, vmware, mssql, …) security, aan en afmelden set-up: updates en installatie verwijderen programma’s system: OS meldingen application and services: diep graven –> Filter Log: logged (date range) event level event source event ID: 99,-1024,-4634

Luks Encryption

Create an encrypted partition that will automatically mount at boot.