Category: Knowledgebase

Linux, Windows, Virtualization based technical articles, reviews, and How-TOs.

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

How to setup ftp server on CentOS 7 Linux Server?

To setup ftp server on CentOS 7, perform following steps: Install vsftpd package with yum -y install vsftpd Edit the range of ports that is to be used by ftp service in /etc/vsftpd/vsftpd.conf pasv_min_port=3000 pasv_max_port=3500 Use systemctl command to enable vsftpd at boot time: systemctl enable vsftpd.service systemctl start vsftpd.service Open ftp port in firewall …

Read more

Performance testing and benchmarking tools for Linux

Disclaimer: Links given on this page to external websites are provided for convenience only. SeiMaxim 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 SeiMaxim 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

How to limit per user VNC sessions count?

You can use the following PERL script to limit VNC sessions per user. Create a new file name vncserver and add the following content. # Start the VNC Server # Maximum sessions is limited to 2 per user in server. &vnclimit(); } } sub vnclimit { $countoutput = `ps -u $ENV{USER} | grep -i Xvnc …

Read more

How to setup FTP in Linux based server

Login to the server as root and install vsftpd with yum install vsftpd ftp -y Use vi editor to open /etc/vsftpd/vsftpd.conf [vi /etc/vsftpd/vsftpd.conf] and add/change following options: anonymous_enable=NO ascii_upload_enable=YES ascii_download_enable=YES use_localtime=YES Enable and start the vsftpd service. systemctl enable vsftpd systemctl start vsftpd Allow the ftp service and port 21 via firewall. firewall-cmd --permanent --add-port=21/tcp …

Read more

How to change the port of discovery container in Linux

Use podman to create new network podman network create Check under /etc/cni/net.d/ you will find file /etc/cni/net.d/cni-podman-2.conflist In your favorite file editor open /usr/share/containers/libpod.conf Change line cni_default_network = "podman" in configuration file /usr/share/containers/libpod.conf to cni_default_network = "cni-podman2" Reboot server Restart container with podman start discovery dsc-db Check the network status. A new network cni-podman2 will be …

Read more