I feel like I missed a step in your documentation, but I can not figure out what I did wrong. I have seen that couple of other people have the same issue but no real solution…. Save my name, email, and website in this browser for the next time I comment. Facebook Twitter Instagram.
TecAdmin Home Ubuntu Related Posts. Dennis Gentry on January 31, pm. Peter on January 15, pm. Dave Megarry on January 14, pm. Working just great on RehanPlayz on November 1, am. Hello, Did you solve this? I had exactly the same thing happen to me… Reply. Chris Hughes on August 19, am. Non professional Reply. These instructions do not work on Ubuntu Issues found: 0. I replaced the contents with the following:! JimR on September 2, pm. Now that worked like a treat! Thank you so much.
Mike on January 29, pm. Thank you so much!! Your suggestion worked perfectly! I too was failing to get gnome to work. Madhan on June 30, am. Hi its not working on Oracle Cloud instance vnc connector gets timed out Reply. It works for me. Thank you. Mike Hammer on May 24, pm. How do I uninstall it? Rahul on May 25, am. Hi Mike, What issue are you facing? Thank, Tommy. Hi, where did you give command below, ssh -L Do you have an advice for me?
I had the same issue. I figured that the vncserver was not running on the server after I had shut down and restarted the system. So, if you work your way thru the tutorial, you will have to make sure you do it without interruption. Try to start vncserver on the server and reconnect. Then automate the service so that vncserver starts automatically upon boot. At first ufw was not enabled, so i double checked the guide and found out your initial setup guide and that fixed the connection problem.
Then i had grey screen after successfully connected. I googled for that too and found a solution like. I can see just one Window the files one… how I can see the menu bar?? Last updated on May 4th, 15 replies. Prerequisites You should use a non-root user account with sudo privileges. Please see Initial Server Setup for Ubuntu VNC Server should now be running. Before doing so, kill VNC service. I solve it myself by following command. Hello there, I am getting following error from VNC viewer.
But, it dose not show anything on the VNC viewer. The vncserver is up and running on ubuntu as well as SSH Tunnel on windows Here is my environment information. Thank you. Great article. Works perfectly. All steps are very easy to follow. Excellent explanation, and the one that works, unlike many other copy-pasted clickbait.
Follow this link to install and enable VNC server. I found some difference from my machine and have marked it below. Once the VNC server is installed we can begin the configuration by setting up a user password to be used by a VNC client when creating a remote connection:. It will ask you set up a password for desktop access. Remember this as later you need it when you try to connect to this server from your vnc viewer.
At this stage we are ready to start the VNC server. For this simply run the vncserver command from your home directory:. Your Ubuntu system should now be listening on the port for incoming VNC connections:. In my test cases, I have direct operation on the Ubuntu machine logged into the system and opened firefox with sever web pages.
A Virtual Network Computing Server, commonly known as a VNC server is a system that allows you to remotely access and interact with another PC over a network using a graphical interface. In this guide, we will use the x11vnc server for setting up remote computing on our Ubuntu system. X11vnc is a lightweight VNC server that does not create an extra display for the remote desktop.
Another advantage with x11vnc is that you can use any VNC client or viewer to connect to it. Newer versions of Ubuntu use gdm3. Unfortunately, GDM does not usually work very well with the x11vnc server. To overcome this, you will have to install the Light Display Manager, or lightdm.
First, update your software sources using apt. The following screen will appear during the installation process. Press the Enter key on your keyboard to continue. Next, select the lightdm option and press Enter on your keyboard. You will notice a slight change in the login screen after the reboot because you are now using lightdm as your display manager.
Then, run the following command. You will now configure a service used for starting the x11nvc server. Create a file named x11nvc. This guide uses Vim but you can use any other Linux text editor of your choice e. The text randompassword is the password that you will use for logging in to your server. Edit it and set it to your preferred strong password. Simply put, the text in the service file states that: this is a child service and the system should start this service after all the other services have started.
In case of a failure, the service should restart itself before the process reaches the multi-user target. If you are using Vim, press the Esc key. Then, type :wq followed by the Enter key to save changes and quit the Vim editor. After saving the file, make sure to reload the systemd manager configuration and unit files.
Another important thing to note is the port that the x11vnc server is using in this case, port Ubuntu uses the ufw firewall by default. To enable other PCs access the Ubuntu system via the port used by the x11vnc server, issue the following command. This guide uses the macOS installation of VNC Connect but the process would be similar for other operating systems as well.
Install packages. Code: sudo apt-get install x11vnc vnc-java. Set up a password for clients. Code: x11vnc -storepasswd. Open up ports and on your firewall Run the terminal command: x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport