LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2006, 03:10 AM   #1
trelos
LQ Newbie
 
Registered: Jan 2005
Location: Queretaro, Mexico
Distribution: debian (sarge), suse 9.3
Posts: 23

Rep: Reputation: 15
Cool x11vnc to any WINDOWS vnc viewer


Hello. I installed x11vnc, and I am trying to access the linux machine(running Suse 9.3) from a windows vnc viewer, within the same home LAN.
I've tried some windows vnc viewers such as tightVNC, ultravnc and win2vnc, but after trying to comunicate to the linux machine running x11vnc (on 192.168.2.3) all vnc viewers return the same message "Failed to connect to server 192.168.2.3:0". While trying to connect to the vncserver, netstat showed that the vnc viewer was sending a sync signal "192.168.2.3:5900 syn_sent".
On the other hand, I am running the x11vnc server without any password (with the hope to first make it work), and found somewhere that the option -nofb could make things easier; with and without -nofb or passwords I am unable to start a vnc session.
I ran netstat on the PC where x11vnc was running, and did not see any port 5900.
The LAN network is working, since I can access with samba the filesystem on the windows PC.
It seems to me that there are some extra errors which I can not find, does any one know where to find any error log?
Any suggestion?

Last edited by trelos; 02-26-2006 at 02:08 PM.
 
Old 02-26-2006, 07:49 PM   #2
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
Is the firewall on the Suse box configured to allow inbound connections on the port that VNC is listening?

I've also noticed that if you're using tightVNC, try using 192.168.2.3::0 from the winbox.. Notice that there's TWO ::
not just one.
 
Old 02-26-2006, 08:01 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I run a VNC server on Linux here and connect to it with tightVNC clients. The syntax is 10.225.43.10:1 where 1 is the offset from the default port of 5900. For example, my vncserver startup script contains:
Code:
#!/bin/bash
#
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

unset VNCSERVERARGS
VNCSERVERS="1:pkiuser 2:steve 3:oracle"
VNCSERVERARGS[1]="-geometry 1152x864"
VNCSERVERARGS[2]="-geometry 1152x864"
VNCSERVERARGS[3]="-geometry 1152x864"

start() {
    echo -n $"Starting VNC server: "
    ulimit -S -c 0 >/dev/null 2>&1

    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
    fi
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
	unset BASH_ENV ENV
	DISP="${display%%:*}"
	export USER="${display##*:}"
	export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        su - ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
    done
}

stop() {
    echo -n $"Shutting down VNC server: "
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
	unset BASH_ENV ENV
	export USER="${display##*:}"
	su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
    done
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	stop
	sleep 3
	start
	;;
  condrestart)
	if [ -f /var/lock/subsys/vncserver ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  status)
	status Xvnc
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac
Before I started the server for the first time, each user ran the vncpasswd command which created the ~/.vnc directory with passwd and xstartup.

It works just fine here, I hope it helps...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC Viewer Magikx21 Linux - Networking 4 04-27-2005 11:51 PM
VNC server/viewer riluve Linux - Software 1 03-09-2005 03:31 PM
Can't get vnc viewer under SuSE 9.1 ciribiribin Linux - Networking 2 11-13-2004 04:59 PM
vnc viewer for sharp sl5600 naanu Linux - Laptop and Netbook 3 04-06-2004 09:36 PM
VNC Viewer scottpioso Linux - General 11 03-10-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration