Tips and tricks
If you want to execute some special commands, log or make an API call when you’re receiving an email onto your server, you can easily set up this by using procmail. Procmail is designed to filter and sort emails but…
How to execute a cron on a specific day of the week once in the month? This could look simple as we could think that this line in cron would do the trick: # Run on every second Tuesday of…
On Linux, there’s many ways to control services that can run on your system. Here are the main and most known init systems that you can find on the common distros, depending on their version. SystemV That system is one…
Generate a CSR (Certificate Signing Request) on your server when you want to get a certificate from a certified provider is often a mandatory step, very easy to execute. Here are the different steps to execute: Create a specific directory…
It can happen that you’re getting that message when trying to connect to your linux server: You are required to change your password immediately (password aged) WARNING: Your password has expired. You must change your password now and login again!…
If you’re getting many “unstrusted issuer” alerts in your app logs, it might be due to some CA trusted certificates outdated. To fix that, just perform an update: For Ubuntu/Debian update-ca-certificates For CentOS/RedHat update-ca-trust extract
If you need to push multiple lines to one file through a bash script, you can simply use that syntax: cat > /etc/ntp.conf << _NTPconf_ server 1.2.3.4 server 5.6.7.8 _NTPconf_ Tip: Be aware that if you’re using indentation, last line…
There’s no easy way to list all the IPs connecting to your postfix server for sending mail. But you can easily extract them from all your postfix logs. For our example, we will consider the logs from postfix to be…
It’s possible to connect to serial console with MacOS without using a specific app but only screen. First, you need to find the correct device you will use to connect to the serial console. Depending on your installation and your…
When you’re facing performance issues, it’s always useful to check CPU/MEM usage per process to see if you have an issue with a specific process. For that, you can use ps and some sorting commands. Tip: You can shrink the…