Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.