You may notice that after running rsync your file size in destination becomes larger than the source. This is most likely due to sparse files. To allow rsync to manage sparser files more efficiently so they took less space use the -S flag. rsync -S sparse-file /home/sparser-file After rsync is done, check the destination file …
Category: Knowledgebase
Linux, Windows, Virtualization based technical articles, reviews, and How-TOs.
How to use rsync to backup an entire Linux server?
Yes, It is possible to backup entire server files using rsync over the network to another server or to a locally attached disk. rsync is easy to set up but it is not a complete backup solution. Make sure you should not use rsync to backup server files to tape devices. You could completely clone …
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 …
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 …
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 …
Configure sftp server with restricted chroot users with ssh keys without affecting normal user access
Login on the Linux server (sftp) as root and create a new user account with the following Shell commands: useradd seimaxim-user passwd seimaxim-user On the client system copy the ssh keys to the server: ssh-copy-id seimaxim-user@seimaxim-server On the client system verify the ssh keys so that a password-less login can be made to the server: …
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 …
How to allow two VNC clients connect to the same VNC Server session?
On the client system, start vnc viewer with vncviewer --shared serverIP:Display On server-side use option --shared when starting vncserver.
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 …
vncserver failed to start with error AttributeError: DBusException instance has no attribute _dbus_error_name
When starting vncserver service on the command line you get the error AttributeError: DBusException instance has no attribute _dbus_error_name, follow the solution How to configure virtual network computing [vncserver] in Linux CentOS Server 7 and 8?
How to configure virtual network computing [vncserver] in Linux CentOS Server 7 and 8?
In Linux CentOS 7 and 8 install tigervnc-server using yum with yum install tigervnc-server tigervnc Install X Window System on CentOS 8 with yum group install GNOME base-x or yum groupinstall "Server with GUI". On CentOS 7 install X Window System with yum groupinstall gnome-desktop x11 fonts or yum groupinstall "Server with GUI" Set the …
How to Install and Configure VNC on Debian 9 and Kali Linux 2020.2
This is a quick guide to installing VNC on Debian 9 and Kali Linux Login to your server as root. Install VNC server with apt-get install tightvncserver If you get the following error then you can install tightvncserver from Debian or Kali installation ISO image. root@server:/home/user# apt install tightvncserver -y Reading package lists... Done Building …
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 …
IOError: [Errno 1] Operation not permitted: ‘/etc/pam.d/system-auth’ – Linux server 7 to 8 upgrade
After error IOError: [Errno 1] Operation not permitted: '/etc/pam.d/system-auth' , the server drops to emergency mode. To resolve this issue, Unset the immutable bit on system-auth-ac [This is symlink to /etc/pam.d/password-auth] with chattr -i /etc/pam.d/system-auth-ac
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 …
