today's howtos
-
How to Start and Stop Monitor Mode in Linux
It's a no brainer to start and stop monitor mode in Linux when you know what command to use. The Wifi module comes with multiple modes and one of them is monitor mode, which you have commonly heard from security enthusiasts to sniff over a network using Wireshark. >
-
! Avi Alkalay ¡: MariaDB backups in one line
First allow the Unix user that will make backups (
root
, in my case) to access MariaDB without a password (works only if accessing from same host that the server is running):GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` IDENTIFIED VIA unix_socket WITH GRANT OPTION;
Now the backup script, shown here in multiple lines for education purposes:
TARGET=/some/folder/Backup/databases/`hostname`/`date '+%Y-%m-%d'`; mkdir -p "$TARGET"; chmod -R go-rwx "$TARGET"; mariadb --batch --skip-column-names -e 'show databases;' | egrep -v 'information_schema|performance_schema|mysql' | while read db; do mariadb-dump --comments --dump-date --extended-insert --routines --system=user "$db" | gzip -c --best > "$TARGET/$db.sql.gz"; done
Explained line by line: [...]
-
How to use SANE with Raspberry PI terminal, plus Project to upgrade a scanner to Scan-to-Mail
With more and more people going near programming languages, the requirement to get common external devices running from terminal commands can become useful...