You will see a short message like the following from the vncserver before it goes into the background. You will need this information to connect to your desktop.
The vncserver automatically selects this port from a list of available ports. Alternatively you can specify a high numbered system port directly e.
See vncserver's man page for details. Please note that the vncserver will continue to run in the backgound on the head node until it is explicitly stopped. This allows you to reconnect to the same desktop session without having to first start the vncserver, leaving all your desktop applications active. When you no longer need your desktop, simply log out of your desktop using the desktop's log out menu option or by explicitly ending the vncserver command with the 'vncserver -kill ' command.
The default size of your cluster desktop is x pixels. If you want to start your desktop with an alternate geometry to match your application, personal desktop environment, or other preferences, simply add a "-geometry hieghtxwidth" argument to your vncserver command. For example, if you want a wide screen geometry popular with laptops, you might start the VNC server with:. Stopping the VNC process is done using the vncserver -kill command. The command takes a single argument, the display port.
The VNC server display port can be found using the following command display port format is a : followed by 1 or more digits :. In the above example, the VNC display port is Terminating the VNC desktop can now be done via:.
As indicated in the output from the vncserver command, the VNC desktop is listening for connections on a higher numbered port. This port isn't directly accessible from the internet. Hence, we need to use SSH local port forwarding to connect to this server. You can disconnect and reconnect to your desktop by establishing this SSH session whenever you need to access your desktop.
In other words, your desktop remains active across your connections to it. This supports a mobile work environment. Above command will forward connections on local port to a remote system's same as SSH server host Cheaha - hence localhost port Windows users need to establish the connection using whatever SSH software they commonly use.
To configure VNC for this method, you must have root privileges. You will set up a systemd service file for all intended VNC users with their own preassigned unique display ID. Create a systemd service script file vncserver :[X]. Be sure the correct username is entered in the User field. The example below shows user vnc-user-b who is assigned the display ID 5. Have each user log into their account and set a VNC password with the vncpasswd command before proceeding to the next step.
Start the VNC service script and set it to start automatically on boot for each user. Replace the [X] with the display ID. The example below shows 2 VNC sessions that were successfully started for users vnc-user-b with display ID 5 and vnc-user-c with display ID 6. You must have root privileges to perform this configuration. Create a systemd socket file xvnc. Create a systemd service file xvnc.
Create a GDM custom. An SSH client is only needed if you chose to use Method 1 or you plan to encrypt your VNC traffic, which is discussed later in this guide. On Windows, you can install Putty. Under the Category section, select Session. See Figure 1. Set the Connection type option to SSH. Take note of the generated display ID because you will input it into the VNC viewer app to establish the connection.
The above example shows the display ID is 3. VNC automatically picks a unique display ID unless you specify one. To specify a display ID, enter a unique number that is not already in use after the colon. You can now end the SSH connection by logging out. This does not terminate your active VNC session. For Method 1 and Method 2, you must connect to a specific active session or display ID using one of two options:.
For example, if the display ID is 3, it can be specified as or just as 3. Use For simplicity, the instructions below use the fully-qualified VNC port number. The following screenshot shows connecting to Clear Linux OS host Follow these steps:.
Right-click a connection node and select Properties…. Search Blogs. Mark Forums Read. User Name. Remember Me? Fedora This forum is for the discussion of the Fedora Project. View Public Profile. View Review Entries. Find More Posts by digita1prophet. Find More Posts by Basslord Re: where is vnc config file Quote: Originally posted by digita1prophet New installation of Fedora Core 2.
Find More Posts by growler. Posting Rules. Similar Threads. Need to allow ports below Main Menu.
0コメント