blog.david14.com
Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
Labels
Sunday, 19 April 2026
Friday, 3 April 2026
wget
To get wget to prompt for a password do;
wget --user=someuser --ask-password somedomain/somedir/
Monday, 23 March 2026
Windows Activation
For information only.
Download the product UMSKT https://github.com/UMSKT/UMSKT
and use the format umskt -i <Installation ID>
Saturday, 21 March 2026
Working with USB in Virtualbox under a Linux host
To allow the use of USB, we must add the user to the vboxusers group, this can be done with:
sudo /usr/sbin/usermod -aG vboxusers $USER
substitute $USER for a user other than the current user if needed.
Also worth doing is adding a directory for VM's such as /DATA/VM
We should then change the group to vboxusers by:
sudo chgrp -R vboxusers VM
and also set the group inheritance by
sudo chmod g+s VM
this ensures that any new files also have the vboxusers group.
Wednesday, 4 March 2026
Visual Basic 6 and LF, forcing to git to use CRLF
When working with VB6 and uploading to GitHub, modify the .gitattributes file to look like the below:
* text=auto
# VB6 source files must stay CRLF
*.bas text eol=crlf
*.cls text eol=crlf
*.frm text eol=crlf
*.vbp text eol=crlf
*.vbg text eol=crlf
*.ctl text eol=crlf
*.dsr text eol=crlf
*.txt text eol=crlf
# VB6 binary companion files
*.frx binary
*.res binary
*.exe binary
*.ocx binary
*.dll binary
Sunday, 8 February 2026
Slackware minimum PXE boot example
For this example, we will be using dnsmasq on Slackware 14.2 with the Slackware 15 mirror.
Saturday, 7 February 2026
crontab -e not opening correct editor
Open your .bashrc file and add the line export EDITOR=vim or do;
echo 'export EDITOR=vim' >> ~/.bashrc
Then logout and back in or source .bashrc
If this doesn't work, try adding it to .bash_profile or do;
echo 'export EDITOR=vim' >> ~/.bash_profile
and then again, logout and back in or do source .bash_profile
NOTE: We can test using echo $EDITOR
I think on is fine for when at the console and the other for remote sessions, maybe...
Friday, 6 February 2026
Monday, 19 January 2026
MariaDB Logging and old password support
For old password compatibility, do
SET GLOBAL old_passwords = 1;
SET PASSWORD FOR 'repl'@'%' = PASSWORD('the_password');
SET GLOBAL old_passwords = 0;
We can also try SET GLOBAL secure_auth=OFF; however I found this made no difference when running MariaDB 10.5 and attempting to connect with an old (presumable 4.1) client.
Thursday, 8 January 2026
MariaDB GTID position reset
On Master, do SELECT @@gtid_current_pos;
then on Slave, do SET GLOBAL gtid_slave_pos = 'GTID_FROM_SERVER_1';
if need be do;
CHANGE MASTER TO
MASTER_HOST='server1',
MASTER_USER='replica_user',
MASTER_PASSWORD='password',
MASTER_USE_GTID=slave_pos;
then;
Start Slave;
SHOW SLAVE STATUS/G;
A note on the above, do it quickly, in case the position changes.
SELECT @@gtid_slave_pos, @@gtid_current_pos; should show the same.