lpadmin -p weighbridge -E -i /home/jamesm/weighbridge -v socket://192.168.0.28:9100 lpadmin: System V interface scripts are no longer supported for security reasons. So just upgrading a system from Ubuntu 14.04 which uses Cups 1.7.2 to 18.04 which uses Cups 2.2.7....
IT Tips
Viewing Expected and Unexpected Reboots on Windows Server 20xx
Just logged into a server and discovered the unplanned reboot screen was asking why it had unexpectedly reboot. So wanted to know when it happened and how often there had been planned and unexpected reboots To get this information you have to filter your System Log...
Telstra Smart Modem Gen 2 mobile mode – PPTP and L2TP VPN’s don’t work
Problem: Mobile Mode doesn't support L2TP or PPTP VPN connections Recently my ADSL filter between the phone line and the TELSTRA SMART MODEM GEN2 failed and caused my internet connection to fail over to "mobile mode" or "backup mode" which I believe is a SIM card in...
vncserver on Ubuntu 16.04
This link has the instructions to install VNC on Ubuntu 16.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04 Following are the fixes for things that didn't work for me Missing Icons in XFCE #follow the tutorial but...
Test of Social Media Share
This is a test of Jetpack free account sharing to my connected Social Media accounts: LinkedIn and Twitter
TinyMCE & React
Just had to change a Draft.js based editor for something that worked with Chrome for Android and found TinyMCE Here is my attempt to get it working with both desktop and mobile
Warning: _cake_core_ cache was unable to write ‘cake_dev_en-us’ to File
There are some answers on SOF but in my case this was caused by no more disk space. Checked permissions and they had the web server user www-data with write access to all app/tmp/*Checked the /var/log/apache2/error.log and found a "no space left on the device warning"...
setTimeout in a loop
Why does all the output of a for loop appear at once when using setTimeout? for(var i = 0; i < 5; i++){ (function(i){ setTimeout(function(){ console.log('value is ', i); }, 3000); })(i); } When you run the above code after 3 seconds the output of all iterations of...
Amazon Web Services Route 53 – Not Compliant
So apparently Route 53 is not fully up to speed with some DNS standards. Testing my domains at https://dnsflagday.net/#domain-holders and I'm getting "Minor problems detected" Apparently according to https://dnsflagday.net a large number of 'big' DNS providers will...
certbot on Amazon Linux
Just an FYI for those caught by module not found exceptions when running certbot-auto on an AMI (Amazon Machine Image). I kept getting problems with the upgrade of certbot-auto on AMI. They say it's alpha so not a suprise. Tried rm -rf /opt/eff.org and re-run...
