Manual Certbot DNS challenge

Useful for servers behind residential internet, where port 80 is blocked, after the deprecation of TLS-SNI-01 challenge. certbot -d –manual –preferred-challenges dns certonly After you run this command, you need to add the domain control validation (DCV) DNS entry.

Using LFTP – ignore SSL certificates

Issue – connecting to a FTPS server with a shared SSL certificate, like cPanel. Here is the solution Create a file named rc in ~/.lftp and add the line: set ssl:verify-certificate no connect to FTPS server using lftp command lftp -u user How to install lftp: sudo apt install lftp or yum install lftp … Read more

Retry time not reached for any host after a long failure period

Exim issue most likely due to a corrupt Exim db. Symptom: Bounced emails with the message: “retry time not reached for any host after a long failure period” Solution: For cPanel: cd /var/spool/exim/db rm -f retry retry.lockfile rm -f wait-remote_smtp wait-remote_smtp.lockfile service exim restart For Linux: /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null /usr/sbin/exim_tidydb -t … Read more

Mirror offline HTML website with WGET

This is an example how to convert a website in STATIC HTML: wget –mirror –convert-links –adjust-extension –page-requisites –no-parent –mirror – Makes (among other things) the download recursive. –convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing. –adjust-extension – Adds suitable extensions … Read more

Autostart Virtualbox Machine

Edit the config file nano /etc/default/virtualbox Add the lines: VBOXAUTOSTART_DB=/etc/vboxVBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg Fix permissions: chgrp vboxusers /etc/vboxchmod 1775 /etc/vbox Start and enable the service: systemctl start vboxautostart-servicesystemctl enable vboxautostart-service

IPP and Airprint shared printer on CentOS Linux

yum install cups -y yum install foomatic* -y yum install avahi avahi-tools -y systemctl enable cups systemctl enable avahi-daemon systemctl start cups systemctl start avahi-daemon after each change in configuration, restart both of them using systemctl restart cups systemctl restart avahi-daemon lynx localhost:631  – allow from remote, then from your computer go to prinserver:631 and … Read more

Handbrake Recipe

Again, a personal recipe, no questions asked WORKFLOW: profile ipad + CBR 2000 double pas anamorphic none 1280×720 @2000 Join files: Create a list.txt with the following content: file ‘c:\TEST\1.mp4’ file ‘c:\TEST\2.mp4’ file ‘c:\TEST\3.mp4’ Run in CLI: ffmpeg -f concat -i list.txt -codec copy out.mkv mov > mp4 vlc not play in wmp

CentOS 7 root password reset

If we have a CentOS 7 or Red Hat Enterprise Linux (RHEL 7) with a selinux in enforced mode, the password resetting procedure need to be modified. From the Grub menu type “e” in order to edit the default menu item. Find the line that starts with “linux16”. At the end of this line append … Read more