We help IT Professionals succeed at work.

not able to connect via vnc

chalie001
chalie001 asked
hi am not able to connect to my linux via vnc from window
vnc
Comment
Watch Question

nociSoftware Engineer
Distinguished Expert 2018

Is there any VNC server running on that system?

Does the vnc server allow connections from your system

Does the firewall allow access to the port.


VNC uses port 5900.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
did you add the VNC package ?

VNC does not come installed by default ?

Can you ping and telnet to port 5900 from the host ?

e.g.

ping 192.168.8.115

Open in new window


telnet 192.168.8.115 5900

Open in new window

Scott SilvaNetwork Administrator
If I remember right it seems that Linux VNC used port 5901 and not 5900...
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
doesn't each screen add +1....
its not working
port66
port66
porrtt5
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
I'm sorry but this is not really helpful, you need to respond to questions asked.

or do you not understand the responses ?
doesn't each screen add +1... what do you mean . I was able to connect with file Zila but I what vnc file zila ise port 22 but that port does not work in vnc
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Where do I get did you add the VNC package
Scott SilvaNetwork Administrator
did you configure VNC after adding it?
Did you make sure there is no firewall involved?
nociSoftware Engineer
Distinguished Expert 2018

Filezilla does use port 22 (SSH, SCP) or port 21 (FTP)...

VNC uses ports 5900, (display 0), 5901 (display 1) .... 5900+n for display n.


so You need to allow for this.

A VNC server needs to be running, like you need an FTP server or SSH + SCP server for Filezilla.



From windows you can use PUTTY to access your system using the same port

(22, SSH) as FileZilla aparently does. Then you will get a commandline like prompt. 

am having this error when starting service
service433.PNG
nociSoftware Engineer
Distinguished Expert 2018

The command "service vncserver start" should be run on Linux. It is not a windows service.

The VNC Server tool needs to run on Linux.... (it also obviously needs to be installed there...).


You have access using Filezilla on port 22... that means you have SSH access to the system

Try to logon using Putty (on windows), using the username & password from filezilla. 

If the system has been setup so you can manage it then you should be able to run sudo -s on that system to become "root"  aka sysadmin user.

And try to do what you need to do.  ( VNC server is not actualy needed ).


If the Linux systems runs as a VM on some "othersystem" then maybe  vncviewer "othersystem" ...

with the right portnumber get you on the VM console. (depends on VM system)... 

Scott SilvaNetwork Administrator
What distribution did you install on? "service vncserver start" is a SysVInit command but newer distributions have moved to systemd or other variations.

Try
systemctl start vnc
nociSoftware Engineer
Distinguished Expert 2018

@scott: the screen shot shows a windows cmd box....

Scott SilvaNetwork Administrator
Original post also says
hi am not able to connect to my linux via vnc from window
So I must also install vnc in my linux
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Yes, that's where the VNC server is installed and started, so your Windows PC can connect to it.

So login into your Linux VM, and add the VNC package.
nociSoftware Engineer
Distinguished Expert 2018

That is if you need a GUI.... (as a gui, not to open a terminal window to issue commands).

If you don't need a gui like a linux server doesn't need one, you can use putty / ssh etc. to connect to it.


I need gui
nociSoftware Engineer
Distinguished Expert 2018

Was a GUI installed on your linux system? if not you may need to install one as well. Several choices are available. (KDE, Gnome, lxde, ...)  KDE is more or less morphed after Windows (user centric), Gnome modelled after Apple and uses a minimalist approach.. (system manager has a little more work), lxde is about having a minimal footprint in memory (efficiency). 



Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
If you need a GUI in Linux, I would recommend deleting this VM, and re-installing a new Linux VM and use Ubuntu Desktop as the distro.
My ubuntu is desktop
My ubuntu is desktop