Exim with letsencrypt certbot on Ubuntu 20

Run these commands to install cert snap install core snap refresh core snap install –classic certbot ln -s /snap/bin/certbot /usr/bin/certbot snap set certbot trust-plugin-with-root=ok # make sure firewall port 80 is unblocked and no other software is running on port 80 already certbot certonly –standalone # verify certbot timer exists to renew certificate systemctl list-timers […]

Continue reading →

Tomcat start/stop script

You could just link to catalina.sh and get the basic stop/start functionality working but it has some drawbacks: Sometimes tomcat doesn’t stop gracefully and you have to reach for ps, grep and kill You have to sometimes pass in some configuration options to Tomcat to enable JMX, increase the max memory it can use, etc. […]

Continue reading →

UW imapd error

I was getting the following error in my log file and I couldn’t connect to my imap server using Thunderbird. Mar 1 13:35:19 ltps imapd[12525]: imap service init from 192.168.1.42 Mar 1 13:35:19 ltps imapd[12525]: Unable to accept SSL connection, host=dave [192.168.1.42] Mar 1 13:35:19 ltps imapd[12525]: SSL error status: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number It […]

Continue reading →

PuTTY + Debian + Home/End

By default, the home and end keys do not work if you SSH using PuTTY to a Debian box. Here’s the easiest work-around I’ve found. In PuTTY set the  Terminal-type string under Connection > Data to “linux” instead of “xterm”. This also makes dark colors much brighter, which is great for editing files with comments; […]

Continue reading →