Tuesday, June 21, 2016

Upgrade Fedora 23 to 24 using shell / dnf

Using following commands, you can upgrade fedora 23 to 24 using shell / dnf.  Once system is reboot, you'll find it running latest version of fedora.


sudo dnf update --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --refresh --releasever=24
sudo dnf system-upgrade reboot

Wednesday, June 15, 2016

FIX - Qmail -- cannot start qmail-send is already running

cannot start qmail-send is already running
Above error is usually caused when you restart qmailctl, & force start qmail-send. This happens because of qmail-send is not completely shutdown as qmail-remote is busy with remote mail delivery Or qmail-local is taking time to write local mail which is unlikely.

To quickly fix you can kill qmail-remote process & wait for it to restart.
Best option is to wait for qmail-remote to complete mail delivery, once delivery is completed qmail-send should start gracefully.

Tuesday, June 14, 2016

Let's Encrypt certificate installation

Let's encrypt provides free ssl / tls certificate for 90 days, after 90 days you need to renew certificate.

Install git.
yum -y install git
Or
apt-get install git

Install letsencrypt cert.
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt
./letsencrypt-auto

Last command will install any remaining dependencies, and you will get prompt to enter / select website for which you want to generate certificate. This script will auto install certificate, once done restart apache for config to take effect.