Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

when i am connecting to VNC server using wine on linux

$ wine vncviewer.exe

i have to enter:

VNC Server:


and then, when i connect, on top there is txt: (

mine question is: how to connect using vncviewer ?

what to put in VNC_VIA_CMD ?

$ export xlocalPort=1234

$ export xremoteHost=

$ export xremotePort=5900

$ export xgateway=

$ export VNC_VIA_CMD="/usr/bin/ssh -f -L $xlocalPort:$xremoteHost:$xremotePort $xgateway sleep 20"

$ vncviewer $xremoteHost -via $xgateway

and i get error:

unable connect to socket: Connection refused (111)

i was trying to help myself with page


Please help, couse i need to use "native" linux vncviewer installed by

$ yum install tigervnc

tigervnc.i686 0:1.0.90-0.13.20100420svn4030.fc13

share|improve this question

migrated from stackoverflow.com Sep 5 '10 at 0:13

This question came from our site for professional and enthusiast programmers.

This is not programming related and will thus be closed as off-topic. –  San Jacinto Sep 4 '10 at 19:01
@San Jacinto: Actually this is a question on using user software, so it will likely be migrated to Super User. @Darkoni: See the FAQ (linked at the top of the page for site selection advice. However, please to not re-post this question, it will e moved by a quorum of high rep users. Probably pretty soon. –  dmckee Sep 5 '10 at 0:05
Why are you running a vnc client under Wine ?? –  Sathya Sep 5 '10 at 0:22

1 Answer 1

You don't need to run a Windows VNC client under WINE, there are compatible Linux VNC clients, too. RealVNC is one example, which installs as "Xvnc4" I believe.

share|improve this answer
+1 for mentioning RealVNC :-) –  shahjapan Oct 13 '10 at 10:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.