How to convert vmware vmdk disks to a different format using vmware workstation

From inside “C:\Program Files (x86)\VMware\VMware Workstation” (Windows default installation location), or wherever your installation is on Linux or Windows:

vmware-vdiskmanager.exe -r 'source.vmdk' -t 5 'destination.vmdk_stream.vmdk'

‘-t 5’ is where you specify the stream-optimized format for example, here are all available types:

0 : single growable virtual disk
1 : growable virtual disk split into multiple files
2 : preallocated virtual disk
3 : preallocated virtual disk split into multiple files
4 : preallocated ESX-type virtual disk
5 : compressed disk optimized for streaming
6 : thin provisioned virtual disk – ESX 3.x and above

Enjoy!

Posted in vmware | Tagged , , , | Leave a comment

How to change the web server identification string of your OpenVPN AS Server on Ubuntu 22.04

The default web server identification string of your OpenVPN Server can be one way to identify it in automated vulnerability scanners such as nmap.

To change it to an arbitrary value to reduce the chance of being identified by vulnerability scanners, you can do the following (as root or sudoer):

cd /usr/local/openvpn_as/scripts
./sacli --key "cs.web_server_name" --value "BLABLABLA" ConfigPut
./sacli start

Source: https://openvpn.net/vpn-server-resources/managing-settings-for-the-web-services-from-the-command-line/

That’s it, Enjoy!

Posted in Linux | Tagged , | Leave a comment

How to enable/disable a network interface on Windows from command line

Assuming “Ethernet” is the name of the network connection you need to enable or disable:

To enable:

netsh interface set interface "Ethernet" enable

To disable:

netsh interface set interface "Ethernet" disable

Posted in Windows | Tagged , , | Leave a comment

Search for files with certain size and extension

I was looking for a large PDF file that was above 100 MB. The file was inside thousands of other files and folders, so I used this command to find it:

find . -type f -size +100M | grep -i pdf

The above simply used the find utility and specified that this is a file and that file is > 100 MB, then I used grep to filter PDF files, that’s it!

Enjoy!

Sources:
https://ostechnix.com/find-files-bigger-smaller-x-size-linux/

Posted in Linux | Tagged , , , | Leave a comment

How to get rid of GLib-GIO-ERROR **: Settings schema ‘***’ does not contain a key on Gnome 40+

In case you mess up the schema for any reason and you are no longer able to open the Gnome settings, e.g. gnome-control-center, just do the following and then logout and back in (or simply reboot):

rm .config/dconf/user

That’s it! Enjoy!

Sources:

https://www.linuxuprising.com/2019/03/how-to-reset-gnome-desktop-settings-to.html

Posted in Linux | Tagged , , , , | Leave a comment