sudo su
mysql -uroot -p (enter password for mysql)
use zabbix;
update zabbix.users set password=md5(‘enterpasswordhere’) where alias = ‘Admin’;
sudo su
mysql -uroot -p (enter password for mysql)
use zabbix;
update zabbix.users set password=md5(‘enterpasswordhere’) where alias = ‘Admin’;
Also annoyed by the “show more options” item in the right-click menu of Windows 11. Get back the full menu with the following registry fix. Copy the following code into a text file “fixregistry.reg” and then double-click it.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}]
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
After rebooting your computer, you will have the full right-click menu again.
One of our laptops had a Windows issue that needed a reinstall of the computer. I placed an online order on the Lenovo website for the recovery media and downloaded it. So far so good.
I now had the Lenovo USB Recovery Creator software, so I thought it was a matter of an hour or two before the laptop was going to be fine again. Big mistake.
I ran the USB Recovery Creator and signed in, selected my digital order and downloaded the media. This already took 2 or 3 attempts before it was successful.
The next step involved creating the actual usb stick. I inserted a working USB stick but the Lenovo USB Recovery Creator failed to partition it. And again. And again. And again. Tried it at least 15 times, no luck.
Eventually found the solution in a post somewhere on Reddit ( I don’t have the link anymore otherwise I would include it). The solution was creating a primary 32GB FAT32 partition on the stick using diskpart, and assigning it a drive letter. Don’t partition or don’t assign a drive letter: Lenovo USB Recovery Creator will fail guaranteed.
Here is the short instruction to create that partition:
Search for “Command Prompt” in the Start menu, right-click it, and select “Run as administrator”.
Type ‘diskpart’ and press Enter. The diskpart utility will open in the Command Prompt.
Type ‘list disk’ and press Enter. This will show a list of all connected disks, including your flash drive.
Identify your flash drive by its size in the list. Be careful to select the correct disk.
Type ‘select disk X’ (replace X with the number of your flash drive) and press Enter.
Type ‘clean’ and press Enter. This will erase all data and partitions on the selected disk.
Type ‘create partition primary size=32768’ and press Enter.
This command creates a 32GB partition (32,768 MB).
Type ‘select partition 1’ and press Enter to select the newly created partition.
Type ‘format fs=fat32 quick’ and press Enter. This will quickly format the partition to FAT32.
Type ‘assign’ and press Enter. This assigns a drive letter to the new partition, making it accessible in File Explorer.
Type ‘exit’ and press Enter to close Diskpart, then close Command Prompt.
If your mysql root user has no grant option on Ubuntu, here’s the procedure to fix this:
First you will have to start mysql without using the grant tables
sudo systemctl edit mysql
This will open an editor, add the following lines and save/quit the editor
[Service]
ExecStart=
ExecStart=/usr/sbin/mysqld --skip-grant-tables
Issue the following commands:
sudo systemctl daemon-reload
sudo systemctl start mysql
You can now connect to mysql using just the following command (without password)
mysql
Now change the user settings as follows:
mysql> UPDATE mysql.user SET Grant_priv = 'Y', Super_priv = 'Y' WHERE User = 'root';
Query OK, 0 rows affected (0.02 sec)
Rows matched: 1 Changed: 0 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.18 sec)
Now issue the first commands again (uptil the systemctl start mysql command), but remove the lines you’ve added to the mysql config.
I am installing openvas on kali linux. when starting openvas with gvm-start I get an error Job for ospd-openvas.service failed because the control process exited with error code. What is causing this and how to fix this ?
The cause of this is a permission issue on the openvas logs. The fix is quite easy:
chmod 666 /var/log/gvm/openvas.log
gvm-start
The problem should be fixed.
Open a terminal window and go to your MP3 folder. Run the following command (you might have to install eyeD3 first for our linux distribution.) :
eyeD3 *.mp3 --remove-all-images
open an SSH session to your server and use the following command:
sudo zs samba restart
Check if it is running:
sudo zs samba status
Replace ‘samba’ with the service you want to restart.
If you get the error message “The trust relationship between this workstation and the primary domain failed”, here is how you can fix it.
Open a PowerShell as Administrator and enter the following commands:
Test-ComputerSecureChannel
This will show true or false. If it shows false, enter the following commands (replace domain.lan with your domain name, adminaccount with your administrator username, and domainserver with the name of your domainserver)
$credential = Get-Credential domain.lan\adminaccount
Reset-ComputerMachinePassword -server domainserver
-credential $credential
This should fix the problem without having to leave and rejoin the domain.
Brand | Key |
Lenovo (laptops, excl ThinkPads) | F2 or FN+F2 |
Lenovo (desktops) | F1 |
Lenovo (ThinkPads) | Enter, followed by F1 |
Dell | F2 or F12 |
HP | F1, F10 or DEL |
ASRock | F2 or DEL |
ASUS | F2 |
Acer | F2 or DEL |
Gigabyte | F2 or DEL |
MSI | DEL |
Samsung | F2 |
Toshiba | F2 |
Windows 10 (and presumably Windows 11 as well) has the very annoying ‘feature’ of thinking it can manage your printer better than you can yourself.
If you printer stops working for some inexplicable reason, then the changes are great that Windows had decided to change your printer port to a WSD port, even if you installed it with an IP port.
To avoid this behaviour, delete the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\WSD Port