Home / Archive for admin

Author: admin

Risks of leaving older kernels installed

Are you concerned when some security software flags older kernels as security threats due to known bugs and vulnerabilities? Does leave those outdated kernels installed on a server opens a door for malicious attacks? After upgrading the server or updating the Linux kernel, leaving old kernels installed likely does not open an attacking threat against …

Read more

TBOOT boot crash observed with TPM 2.0 in UEFI mode

When TPM2.0 device is in UEFI mode, booting the kernel through TBOOT hangs. The root cause of this error is because GRUB package included with Alam Linux 8.3 does not implement the complete stack to validate kernel command line parameters. To resolve this issue, upgrade the system to AlmaLinux 8.4/CentOS 8.4. If somehow you cannot …

Read more

VNC session freezes for a few seconds

VNC hangs due to an increased number of VNC sessions initiated by sshd, being under the closing state. # loginctl list-sessions --no-pager | wc -l49290 A session would be in a closing state if a process within the session stayed alive after the session was closed. # loginctl session-status 4509845098 - root (0)Since: Fri 2021-09-04 13:20:15 …

Read more

How to login into VNC without a password

You can remove all types of authentications by configuring the vnc server.  As user start a vnc session and “-SecurityTypes none” option while starting a vnc server as below: #vncserver :X -SecurityTypes None In the above command, X is the display number at which the vnc session should start. The “-SecurityTypes none” can be added …

Read more

error “Cannot allocate memory” while executing commands

You should increase /proc/sys/kernel/pid_max sysctl. Otherwise, execute the following command to check which app is forking multiple threads. #ps -eLF Error “Cannot allocate memory” indicates that the system is running out of PID (process ids). In other words, the number of threads/processes present on the system has reached the maximum limit, which is delimited by …

Read more

How to configure multiple instances of Apache HTTPD on the same server in AlmaLinux?

You need to copy instance specific configuration file located at /usr/share/doc/httpd/instance.conf to /etc/httpd/conf/newinstance.conf cp /usr/share/doc/httpd/instance.conf /etc/httpd/conf/newinstance.conf Use the Listen option to change the port to run simultaneously with other httpd.service as below: Listen 81 This configuration will be the default when running httpd@newinstance.service systemctl start httpd@newinstance.service Some changes expected from the default are: The default …

Read more

PHP Vs Python – Comparison between both Languages

Scripting Languages Scripting languages are becoming progressively popular in web application programming in the last few years. Now in this article trying to compare popular languages nowadays: PHP and Python. The languages will be compared regarding history, evolution, popularity, syntax, features, security, and enactment in web application locations. A final thought will Conclude and recommends …

Read more

How to resolve error resize2fs: Operation not permitted While trying to add group – ext4_group_add: No reserved GDT blocks, can’t resize

The root cause of this error is that the pool of reserved GDT blocks is not available, or the filesystem does not support online resizing. Note that the Ext3 and Ext4 filesystem metadata layout is fixed. mkfs reserves space for future disk resizing, but that is only 1024x the filesystem size during initial disk creation …

Read more

Performance testing and benchmarking tools for Linux

Disclaimer: Links given on this page to external websites are provided for convenience only. Computeman has not checked the following external links and is not responsible for their content or link availability. The inclusion of any link on this page to an external website does not imply endorsement by Computeman of the website or their …

Read more

When connecting to VNC either screen is black or icons are shown but no menu or screen background

This issue occurs due to changes in the default service unit file. The changed file which is causing the error is given below; [Service] Type=forking User=<USER> # Clean any existing files in /tmp/.X11-unix environment ExecStartPre=-/usr/bin/vncserver -kill %i ExecStart=/usr/bin/vncserver %i PIDFile=/home/<USER>/.vnc/%H%i.pid ExecStop=-/usr/bin/vncserver -kill %i The correct file is shown below; [Service] Type=forking # Clean any existing …

Read more