Link to home
Start Free TrialLog in
Avatar of chalie001
chalie001

asked on

not able to connect via vnc

hi am not able to connect to my linux via vnc from window
User generated image
Avatar of noci
noci

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.

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

If I remember right it seems that Linux VNC used port 5901 and not 5900...
Avatar of chalie001

ASKER

its not working
User generated image
User generated image
User generated image
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
Where do I get did you add the VNC package
did you configure VNC after adding it?
Did you make sure there is no firewall involved?

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
User generated image

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)... 

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

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

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
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

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

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). 



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