Below is a couple of additions I've made in the past to the build.xml files:
Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
Labels
Saturday, 8 March 2025
Tuesday, 18 February 2025
Creating a jar file, adding to, extracting and viewing the contents of...
Friday, 14 February 2025
Saturday, 25 January 2025
Force zerotier one to stop and preventing reload on Mac
To unload the service and stop: launchctl unload -w /Library/LaunchDaemons/com.mysql.mysql.plistTo load the service and start:launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist [source]
Tuesday, 17 December 2024
Reset mySQL (mariadb) master/slave with GTID replication
To reset and start fresh, do;
Monday, 25 November 2024
Issue with slackpkg and gpg key
I found an issue while using slackpkg where the following error presented itself:
ERROR: Verification of the gpg signature on CHECKSUMS.md5
failed! This could mean that the file is out of date
or has been tampered with. If you use mirrors.slackware.com
as your mirror, this could also mean that the mirror to
which you got redirected is not yet updated with the most
recent changes in the Slackware tree.
Tuesday, 19 November 2024
An alternative way to use wget
Normally wget works as expected but every now and then, you page is forbidden or similar, so the below is an alternative approach;
Monday, 4 November 2024
Import certificate into Java keystore
The below example involves importing a Zscaler root CA certificate into the java keystore on my Slackware installation.
1) General installation.
The certificate can be acquired from here and should be placed in /etc/ssl/certs/Zscaler-Dalzell.crt and also in /usr/local/share/ca-certificates/Zscaler-Dalzell.crt
then do sudo update-ca-certificates which regenerates /etc/ssl/certs/ca-certificates.crt
NOTE: It is important that the extension is crt and not cer as update-ca-certificates only uses crt.
To verify, run: openssl verify -CAfile /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/Zscaler-Dalzell.crt
which should look like: /etc/ssl/certs/Zscaler-Dalzell.crt: OK
Update: 17-Feb-2026
I've found that the combined certificate seems to work better, while adding the Zscaler-Dalzell.cer to /etc/ssl/certs/Zscaler-Dalzell.cer seems to allow browsing to an extent and the use of my check4updates, it does not for example, allow for the installation of the Zoho unattended access daemon. The combined file is in my GISTS and should be placed in /usr/local/share/ca-certificates/Zscaler-Dalzell.crt (note the CRT extension), then run update-ca-certificates
2) Java Specific
sudo keytool -import -trustcacerts -alias zscaler -file /etc/ssl/certs/Zscaler-Dalzell.crt -keystore /opt/jdk1.8.0_341/jre/lib/security/cacerts
Note: The destination, in this case '/opt/jdk1.8.0_341/jre/lib/security/cacerts' could quite equally point to a local installation, such as '/home/some_user//some_application/jre/lib/security/cacerts'
Tuesday, 17 September 2024
Linux boot and shutdown times
who -b or uptime -s
To find the last shutdown time, we can do:
last -x | grep shutdown or last -x | grep reboot (output varies between distributions)
Monday, 17 June 2024
Information from SHOW SLAVE STATUS on mysql
SHOW SLAVE STATUS\G;