For example:. Modify the configuration files that have been created for each user In this example we are going to use root and oracle : A. Add the geometry to the configuration file as well for each user. After making the modifications in step A and B the line we have modified under the configuration file should look similar to these:. The -l argument provides the username and -c specifies the command and its arguments that runuser will execute.
Display 0 uses port , display 1 uses port , display 2 uses port , and so on. We will now enable the vncserver service for each user on the selected port, this will also enable autostart on system boot, with the commands below:. This will automatically ask you to create a new password for the user.
The first line defines the user who is allowed to log in to the system. The second line lists the arguments passed to the VNC server when the service starts. Below are some of the most commonly used arguments in VNC server. For example :. If you do not switch to the user you want to set the VNC server password for, you may get an error as shown below while starting the vncserver service. To connect the VNC server with root user use the display You might get a warning as shown below, which is telling you that your connection with the VNC server is not secure.
Skip to primary navigation Skip to main content Skip to primary sidebar Skip to footer navigation.
VNC is not a secure system by default meaning your connections are not at all encrypted. But you can secure connections from the client to the server using a technique known as SSH tunneling as explained below. Remember that you need to configure passwordless SSH authentication between the server and the client machine, to increase the trust between the two Linux systems.
When the installation is complete, run your VNC client, specify the address localhost to connect to display 1 as follows. Or else, search and open the VNC client program from the system menu, then enter the address above and then click Connect as shown in the following screenshot. If the connection is successful, you will be prompted for the VNC login password created earlier on in Step 2, point 3.
Provide it and click OK to proceed. Click Enter to access the login interface and provide your password to access the desktop. As usual, you can ask questions via the feedback form below. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web.
Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. Nov 17 labdev22 systemd: [email protected] How do I correct this error.
Allow us to find more about this error. I also get a blank screen after connecting. I got a blank screen too. This one worked for me. Forth, why open port if connecting via ssh tunnel in which case only the ssh port needs to be open?
Are you getting any error message from the status o the [email protected] Ok followed the instructions above, but yet I am getting a black screen when I connect. Any ideas? Have a question or suggestion? Please leave a comment to start the discussion.
Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. All you have to do is on Linux side start the X11Vnc-server. Look for more options from the manual man xllvnc , One of those options you might want to consider is the -forever option. So the command you will want to run from the terminal is x11vnc-forever On the windows side, you will need to install the TightVNC package.
Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Skip to content. Share on Facebook Share. Share on Twitter Tweet. Share on Pinterest Share. Share on LinkedIn Share. Share on Digg Share.
Send email Mail. Share this on Let me introduce myself first.