Increasing mysql or mariadb max connections

Find out whether MySQL, or MariaDB service is used: # systemctl list-unit-files | grep -E ‘mysql|mariadb’ mariadb.service enabled Create an override for the service file from the previous step: # systemctl edit mariadb.service Note: In case mysql.service, or mysqld.service was displayed on the previous step, replace “mariadb.service” with it. Add the following content to the opened text editor and save the file: … Read more

Rsync example

Basic syntax of rsync command # rsync options source destination Some common options used with rsync commands -v : verbose -r : copies data recursively (but don’t preserve timestamps and permission while transferring data -a : archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group ownerships and timestamps … Read more

Installing Samba on CentOS

Installing Samba on CentOS Samba is available from the standard CentOS repositories. To install it on your CentOS system run the following command: sudo yum install samba samba-client Once the installation is completed, start the Samba services and enable them to start automatically on system boot: sudo systemctl start smb.servicesudo systemctl start nmb.service sudo systemctl … Read more

Forensic disk images

The list includes many PC disk images, but also memory images, network packets, mobile phone and drone image data, and email data. Image data provided by NIST for forensics The CFReDS Project https://www.cfreds.nist.gov/ The CFReDS Project This is a forensic dataset provided by NIST called “Computer Forensic Reference Data Sets (CFReDS)”. It’s probably one of … Read more

How to change timezone in Linux

To set the timezone in Linux, update /etc/localtime with the appropriate timezone file from /usr/share/zoneinfo. rm -f /etc/localtime ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime This would set your time zone to Europe/Rome.

change MAC address on Kali Linux

This operation requires root privileges. Do the following # macchanger -s eth0 You need yo turn down the interface before changin its MAC address change. Use ifconfig command to turn off your network interface. Remember to have root privileges otherwise you cannot run ifconfig: # ifconfig eth0 down If the following error message appears you … Read more

getting my ip

Depending on what software you have installed the best way to get you external IP is running the following command # echo $(wget -qO – https://api.ipify.org) OR # echo $(curl -s https://api.ipify.org) while getting the internal IP can be achieved with # ifconfig | grep -w inet | awk ‘{ print $2}’ OR # ip … Read more