How to do RAM (VM) stress test

You can do stress test with stress-ng tool. To install this tool on Almalinux/RHEL: dnf install stress-ng   Then you can use this command: stress-ng –vm 1 –vm-bytes 90% –timeout 300s –verbose   This command will do a stress test on the RAM (VM) using 90% of the available RAM and will run the test […]

How to do RAM (VM) stress test Read More »

Restart Netowork in RHEL 9/Almalinux 9/RockyLinux 9 with nmcli

After manually configuring your network settings (static IP, etc..) you’ll have to reload and restart the interface for the changes to take effect. Reload connection profile nmcli connection reload   Restart connection nmcli connection up ifname eth0 OR Restart device nmcli device down eth0;nmcli device up eth0   Where eth0 is the device name.  

Restart Netowork in RHEL 9/Almalinux 9/RockyLinux 9 with nmcli Read More »

OpenVPN Route Private traffic only (OpenVPN Server on linux)

You can route specific subnet via OpenVPN and the rest of the traffic will be routed to the default PC gateway. Note: this is valid on OpenVPN installations on Linux that have been installed using this installation script: https://github.com/angristan/openvpn-install   Open OpenVPN server.conf file: /etc/openvpn/server.conf Remove or comment out the following lines: push “dhcp-option DNS

OpenVPN Route Private traffic only (OpenVPN Server on linux) Read More »

Convert Windows Server 2019/2022 Evaluation to Retail

To convert your windows server 2019 from Evaluation to Retail, use the following PowerShell command: DISM /Online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula   For no restart prompt after the conversation, please use the following command: DISM /NoRestart /Online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula Convert Windows Server Standard 2022 DISM /NoRestart /Online /Set-Edition:ServerStandard /ProductKey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /AcceptEula    

Convert Windows Server 2019/2022 Evaluation to Retail Read More »

Enable RDP Firewall rules and disable RDP NLA from PowerShell Windows Server 2016/2019

By default, you might find RDP firewall rules disabled which prevent RDP connections to the server. To enable preset firewall rules of RemoteDesktop, use the following PowerShell command: Enable-NetFirewallRule -DisplayGroup ‘Remote Desktop’ or from CMD, append powershell.exe in the beginning: powershell.exe Enable-NetFirewallRule -DisplayGroup ‘Remote Desktop’   To disable RDP Network Level Authentication (NLA), use the

Enable RDP Firewall rules and disable RDP NLA from PowerShell Windows Server 2016/2019 Read More »

restart network RHEL 8/Almalinux 8

An updated version of this article is available here: Restart Netowork in RHEL 9/Almalinux 9/RockyLinux 9 with nmcli   You can restart the network on RHEL 8 as follows: nmcli networking off; nmcli networking on To restart NetworkManager service sudo systemctl restart NetworkManager To restart an individual network interface, you can use the following (where

restart network RHEL 8/Almalinux 8 Read More »

How to fix DBCACHE: exit 11 error with cPanel and MariaDB

Symptoms Updating MariaDB to v10.2.35 or v10.3.26 may hinder select sites to be inaccessible and the MySQL Database interface within cPanel may populate “The MySQL server is currently offline.”   Workaround As of 2020-11-06, cPanel development team has released an autofixer to address this issue. If you are experiencing this problem now, though, you may

How to fix DBCACHE: exit 11 error with cPanel and MariaDB Read More »