Welcome to My Blog
IT related tech tips since 2006Nginx Certificate Installation from PFX File
https://gist.github.com/junxy/2464633f27345fbe6a98 # if your pfx file is yourdomain.com.pfx # split the name up so you can have a descriptive # cert and key name OUT=yourdomain.com PFX=.pfx # create pem fromat certs from pfx fiiles # and a decrypted key openssl pkcs12...
CakePHP 2.x Validating Forms without a Database Model
I have a CakePHP form that I need to validate but the form fields don't equate to anything in a database table or model. To get it to work I create a dummy 'Model' using ClassRegistry::init, attach all the necessary validation rules, set the POST data from the form to...
Dynamically Displaying the Twitter Bootstrap Version in a CakePHP Page
This is the CakePHP Code that I embed in a page to display the current version of Bootstrap CSS that is in use on the website. Assuming that JQuery is included somewhere on the page all that is required is a target div and then a snippet of javascript created using...
Getting Windows to print to IPP Printer hosted on Ubuntu 18.04
Just some notes for Windows 2008 R2 This is the error message I was recieving when trying to connect to Cups on Ubuntu 18.04 from Windows 2008 Server Definitely have to Install the "Internet Printing Client" feature in Windows Server 2008 and reboot Also may have to...
Since CUPS 2.2 System V interface scripts are no longer supported for security reasons
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....
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