I have multiple servers running this same configuration and everything works fine but all of them were configured after installation, unlike this one which has been running for quite some time. I also have the socket file /tmp/.X11-unix/X1īut when I try to connect through vncviewer using IP:5901 I get the same error "The connection was refused by the host computer". Port 5901 is open and listening ~]# netstat -tpln | grep "5901" Pkts bytes target prot opt in out source destinationĬhain FORWARD (policy ACCEPT 0 packets, 0 bytes)Ĭhain OUTPUT (policy ACCEPT 2515 packets, 478K bytes)įirewall is disabled ~]# firewall-cmd -state I deleted all iptables rules ~]# iptables -nvLĬhain INPUT (policy ACCEPT 2710 packets, 297K bytes) Nov 12 01:40:25 server systemd: Started Remote desktop service (VNC). Nov 12 01:40:22 server systemd: Starting Remote desktop service (VNC). Process: 3004 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)ĬGroup: 3070 /usr/bin/Xvnc :1 -desktop server:1 (user) -auth /home/user/.Xauthority -geometry 1280x1024 -rfbwait 30000 -rfbauth /home/user/.vnc. Process: 3023 ExecStart=/usr/sbin/runuser -l user -c /usr/bin/vncserver %i -geometry 1280x1024 (code=exited, status=0/SUCCESS) Process: 32470 ExecStop=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS) Loaded: loaded enabled vendor preset: disabled)Īctive: active (running) since Sat 01:40:25 EET 5s ago I am able to start the vncserver service ~]# systemctl start ~]# systemctl status - Remote desktop service (VNC) You will find the below lines.I have followed all the steps described in How To Install and Configure VNC Remote Access for the GNOME Desktop on CentOS 7. You can connect to the VNC session by specifying ipaddress:sub-port (192.168.1.10:1 or 192.168.1.10:5901) cp the copied file. But, if you setup port-offset for VNC, you can run VNC service on a sub-port of the default port 5900.įor example, if we mention port 1, the desktop will be accessible in 5901. yum update -y For this guide, the VNC desktop will be available for a non-root user. Step 1 Update CentOS and add a Linux User Before we start installing and configuring the VNC server, please update your CentOS using the yum command. While copying, you can mention which port number the VNC server should listen.īy default VNC server listens on port 5900. Connect to the VNC Server Through SSH Tunnel. Tigervnc-server.x86_64 0:1.8.0-13.el7 xorg-x11-fonts-Type1.noarch 0:7.5-9.el7Ĭopy the VNC server’s service configuration file to /etc/systemd/system/. Install 2 Packages Total download size: 736 k Xorg-x11-fonts-Type1 noarch 7.5-9.el7 base 521 k Transaction Summary > Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installedĭependencies Resolved = On one of my other CentOS VMs (v6. > Package tigervnc-server.x86_64 0:1.8.0-13.el7 will be installed I am running tigervnc-server on CentOS 6.8, however the gnome desktop wont start for me I have done a yum groupinstall of 'X Window System', 'Desktop' and 'General Purpose Desktop'. Loading mirror speeds from cached hostfile
0 Comments
Leave a Reply. |