On the client system, start vnc viewer with vncviewer --shared serverIP:Display On server-side use option --shared when starting vncserver.
Author: admin
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 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
Linux Server crash with general protection fault: 0000 [#1] SMP aio_complete+0xe2/0x310
The server crashes due to an invalid pointer when executing an I/O generating from the aio code. A discrepancy with how the kernel updates the tail pointer with memory-mapped aio queues can corrupt the tracking of aio I/O operations. This causes aio queues killed prematurely while I/O operations are still active. To resolve this error, …
How to avoid Oracle RAC cluster evictions by limiting multipath failover times?
Add following settings in /etc/multipath.conf defaults { polling_interval 5 no_path_retry 4 find_multipaths yes checker_timeout 5 max_fds 8192 fast_io_fail_tmo 4 dev_loss_tmo 19 user_friendly_names yes } Reload multipath service with service multipathd reload
How to configure a bonding device in a Linux server
Multiple bonding modes in a Linux operating system are given below: balance-alb (fault tolerance and load balancing) balance-tlb (fault tolerance and load balancing) active-backup (fault tolerance) broadcast (fault tolerance) balance-rr (fault tolerance and load balancing) 802.3ad (fault tolerance and load balancing) balance-xor (fault tolerance and load balancing) We will use Network Manager CLI to add …
NFS Clients shown different md5sum of files from same NFS Server
Mount NFS share on NFS clients without cache. First, unmount NFS share and then remount NFS share with noac and lookupcache=none
Kickstart fails to form boot partition [Not enough space in filesystems for the current software selection]
The kickstart automatic installation of the Linux operating system fails but the normal install is successful. To resolve this issue follow the steps given below: Add clearpart --all --drives=${devname} --initlabel in kickstart disk section. This will delete partition table of disk. If the above option does not resolve the issue add zerombr option above clearpart …
How to enable audit for file on nfs server?
Add -w /NFS-MOUNT/ -p wa -k NFS-MOUNT line at the end of file /etc/audit/audit.rules [root@COMPUTE ~]# cat /etc/audit/audit.rules ## This file is automatically generated from /etc/audit/rules.d -D -b 8192 -f 1 -w /NFS-MOUNT/ -p wa -k NFS-MOUNT Execute the following command to restart auditd service service auditd restart
Directory server Error – /usr/sbin/ns-slapd: symbol lookup error: /usr/lib64/dirsrv/plugins/libback-ldbm.so: undefined symbol
This error is resolved by upgrading the directory server base package in your Linux operating system. The issue arises because of an unindexed search. Check directory server logs for details.
SELinux prevents /usr/lib/cups/daemon/cups-lpd from read access on the sock_file cups.sock in Linux server
In spite of /usr/lib/cups/daemon/cups-lpd denial to read access sock_file cups.sock, cups-lpd will successfully migrate print jobs received via LPD to the local CUPS server. You can either ignore this issue or create a custom SELinux policy module. The steps to create a custom SELinux policy module are listed below: yum -y install setools-console yum-utils policycoreutils-devel …
While Using http mod_cgi with Python, Go, PHP [HTTPoxy] Request redirected to attackers controlled proxy
If attackers request using your CGI script open an outgoing network connection than this can be redirected to attackers controlled proxy. This can lead to denial of service and potentially occurs while using httpd mod_cgi This issue can be resolved via mod_header in httpd configuration. RequestHeader unset Proxy early