Once your VNC server is configured, you can connect to it from any VNC server. # systemctl stop systemctl disable VNC Clients # systemctl enable systemctl start should now be able to use a VNC viewer to connect to system using the display number and password defined. Would you like to enter a view-only password (y/n)? nĮnable the service for autostart and start the service. Set the VNC password for the user defined in the new configuration file. The geometry is set below, but this line doesn't have to be modified if the default geometry of "1280x1024" is acceptable.ĮxecStart=/usr/bin/vncserver %i -geometry 1440x1080 An example of the changed lines is shown below. In some Fedora releases they suggest not including the display number, as systemd will spawn correct config in memory on first request.Įdit the new configuration file, amending the user and startup arguments as necessary. Notice how the display number is included in the configuration file name. In the following case, I am setting up the display number ":3". This method also works for RHEL7/OL6/CentOS7.Ĭreate a new configuration file for each of the display numbers you want to enable. Although Fedora 15 uses systemd, the VNC server configuration is unchanged so you still use the previous configuration method. The systemd method works for Fedora 16 and above. # chkconfig vncserver off systemd (New Method) Use the following commands to stop the service and disable autostart. You should now be able to use a VNC viewer to connect to system using the display numbers and passwords defined. Set the VNC password for any users defined in the "/etc/sysconfig/vncservers" file.Įnable the "vncserver" service for autostart and start the service. VNCSERVERARGS="-geometry 1280x1024 -nolisten tcp -localhost" ![]() Notice multiple "display:user" pairs are defined on a single line, but the arguments for each display are defined separately. ![]() The following entries enable VNC for display numbers ":2" and ":3". Although Fedora 15 includes systemd, the VNC server configuration is unchanged, so you should still use this method.Įdit the "/etc/sysconfig/vncservers" file to configure the required displays. It also works for Fedora up to and including Fedora 15. The sysvinit method works for RHEL and it's clones (Oracle Linux and CentOS) up to and including RHEL6. Home » Articles » Linux » Here Configuring VNC Server on Linux
0 Comments
Leave a Reply. |