On Windows you can use PowerShell or a terminal emulator such as Cmder. In my case, I will execute the command below:. Alternatively; you can add a -f argument which runs SSH tunneling in the background. Now to connect securely to your VNC server, launch the VNC client application and connect with the address localhost :. If you are connecting to your server using Putty, create an SSH tunnel using the procedure below. On the left side of the Putty window, scroll down and get to the SSH option.
Extend it and select the Tunnels option. Enter the details as shown in the image below—Port as the source port and localhost as the destination address. We will also use systemd to launch our VNC server on boot. With that done, we can now start, stop and restart our VNC server as a system service. You have successfully installed and configured the VNC server on Ubuntu Please keep in mind that if you install multiple desktop environments on the same machine, then you may encounter bugs or conflicts, depending on which you have installed.
We covered this initially in the tutorial, but will add it here too, so the article is more easily skimmable. Now restart the VNC server and next time you connect you should be using Budgie. Now restart the VNC server and next time you connect you should be using Cinnamon. I believe this guide has given you a step-by-step guide on installing and configuring a VNC server on Ubuntu Feel free to share any additional VNC configuration tips with our readers or ask any questions in the comments below or by contacting us.
U Ubuntu. Not using Ubuntu? Choose a different version or distro. For a somewhat different take on remote desktops you can also check our tutorial on Xpra. A Display Manager is a program that enables your Linux distribution to possess graphical login capabilities. It is also responsible for starting the Display Server and the Desktop Environment once you log in with your username and password.
Note: The password must be between 6 — 8 characters long. The system will automatically truncate any password longer than eight characters. For example, if you enter a password like startup , it will be truncated to startup2. Tip: If you ever want to change the VNC password or the view-only password, execute the command below: vncpasswd.
Note: After executing this command, the SSH connection will hang after you enter the password. The value can be between 8 and For more details on how to install other desktop environments, please check our related tutorial on how to install a desktop environment GUI on an Ubuntu You can also install just minimal versions of desktop environments, with minimal necessary software packages, or full versions with all the bells and whistles. Share Tweet 0. Pin it 0. Share 0. Notify of.
I allow to use my email address and send notification about new comments and replies you can unsubscribe at any time. Receive notifications when your comment receives a reply. Your username will link to your website. Oldest Newest Most Voted. Inline Feedbacks. I followed the steps exactly, It shows only a black screen hen I access from localhost. But i works in localhost when I run vncserver as sudo. Nick Floersch. Reply to Nick Floersch. Apologies for that. Thanks so much for pointing that out.
Reply to Thatoo. Have you had any success with this? Reply to EdXD. Reply to Eric. Hi, Eric. Thank you for the feedback! The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 1 year, 1 month ago. Modified 5 months ago. Viewed 6k times. Improve this question. Sajjad Aemmi Sajjad Aemmi 1 1 silver badge 8 8 bronze badges. Add a comment. Sorted by: Reset to default.
Highest score default Date modified newest first Date created oldest first. I hope this was helpful to someone. Improve this answer. Nice answer, thanks! One thing I don't understand is why did you add armhf architecture if you didn't install any packages for it. Andrew Wedgbury Andrew Wedgbury 5 5 silver badges 6 6 bronze badges. Unable to install realvnc-vnc-server: The following packages have unmet dependencies:.
And no dependencies listed : — icl I tried saeedkazemi script and could not log in with VNC. Ran parts of Sajjad Aemmi's answer: sudo systemctl enable vncserver-virtuald. Please edit it so it is readable! Computer Savvy Computer Savvy 1 1 1 bronze badge. Your answer could be improved with additional supporting information.