LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2003, 05:32 PM   #1
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Rep: Reputation: 15
VNC by ip addy not netbios


im running RealVnc on red hat 7.3 and trying to vnc into it from my win xp box. i start the server w/ 'vncserver' and get the following....

[root@peter .vnc]# vncserver

New 'X' desktop is peter:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/peter:1.log

if i use 'peter:1' in windows vncviewer it works fine, but if i use the ip addy of the machine '192.168.1.3:1' it doesnt.

im going to be (once i have it working) logging in from work to my home linux box so i have to have it work by the ip addy. can someone tell me what i need to do to get this working?

thnx in adv
 
Old 07-11-2003, 06:07 PM   #2
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
This might seem like a really stupid question, and forgive me if it is...but is your VNC server ACTUALLY 192.168.1.3?

And if it is, are you sure its listening on port 1? (by default I thought it was in the 5000 range or something)

AND third, check the syntax for windows, because I know in linux when you use vncviewer to specify a port, you have to use two ':'

ie: 192.168.1.3::1

Hope this helps.
 
Old 07-11-2003, 06:12 PM   #3
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
possible fix ...

This isn't a solution, but merely a workaround, it's still worth a shot.

Search for the filename "lmhost" on your computer and open it up in notepad.

Your version of windows you are running determins the actual filename and location. On my windows XP machine it is "C:\windows\system32\drivers\etc\lmhosts.sam" and in older versions (95 - 98) I believe it is just C:\windows\lmhosts.

Read the comments and you can understand it.

Add 111.222.333.444 peter

where 111.222.333.444 is your ip addy <tab> and peter is your netbios name.

Save and reboot.

You can not connect normally (by netbios name) from outside the firewall and it will work fine. Make SURE that the IP address you map to the netbios name is NOT a private IP (aka 10.x.x.x or 192.x.x.x) and instead a fully routable IP address. That might be part of your problem. You can only connect to private IP addresses within collision domains. If you cross a router, you can't talk to private IP addresses because they don't forward.

The lmhosts file is simply ip address to netbios name mapping. Your mileage may vary. Good luck!

Last edited by enigmasoldier; 07-11-2003 at 06:16 PM.
 
Old 07-11-2003, 06:12 PM   #4
InSane103
Member
 
Registered: Jul 2003
Location: Worst place on earth.
Distribution: MDK 10
Posts: 163

Rep: Reputation: 30
Make sure the port is open also....

From Windows you could use Port Scanner.
 
Old 07-14-2003, 11:02 AM   #5
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
sorry for the late reply guys, i had to go out of town and didnt know it.

anywho got the problem partially fixed. i was wanting to give mandrake 9.1 a try anyway so i installed that. running kde. with the same setup it connects by ip address now. tcaptain that is my local ip addy for that machine yes. and the :1 runs it on the display mode that the server is running on.

but my problem now is all i see is a grey screen. no icons or anything. i start the server w/....
vncserver -geometry 800x600 -depth 16

my xstartup is....

#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/ .Xresources
xsetroot -solid grey
gnome-session &

whats wrong w/ my setup to make me not see anything.
thnx in adv. guys.

oh & btw. i know im using kde and my file is starting gnome, but i dont know the command for kde. all the howtos ive read show it for gnome

Last edited by Thermos; 07-14-2003 at 11:03 AM.
 
Old 07-14-2003, 11:52 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
This is a common problem. By default, VNC uses TWM which is a horribly minimalist window manager. To fix this just add the start command for the window manager you want at the end of your xstartup file. So if you want KDE, just add startkde & at the end.
 
Old 07-14-2003, 12:00 PM   #7
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
well that helped a little. i can see my background but thats it. the mouse in in a shape of an 'X' and the screen will stay like that for about 3 seconds and then flash grey. then go back to the background. repeating this over and over. thats it. ideas?
 
Old 07-14-2003, 12:10 PM   #8
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
well i let the vnc window on my xp box continue running flashing like that and after about 5 minutes it popped up and error....

"Could not start process Unable to create io-slave: Too many open files"

what would cause this?
 
Old 07-14-2003, 01:03 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
When you added startkde & to your xstartup file, did you also comment out the gnome-session & line? It should look something like

#gnome-session &
startkde &


Also, did you shutdown vncserver and restart it after you made the changes to xstartup?
 
Old 07-14-2003, 01:11 PM   #10
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
i deleted the gnome line completely. added the 'startkde &' and then rebooted.

anyother ideas what might be causing this?
 
Old 07-14-2003, 01:53 PM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Could you have a look through your VNC log and see if anything interesting is there? In my experience, setting up your xstartup that way should work.

Also, I just noticed that your ultimate goal is to access your linux box from work. If that is true, you REALLY need to investigate running VNC through SSH. VNC by itself doesn't have any security. The second thing is that you REALLY want to get away from running this as root. It is much, much safer to run as a user and then su when you need root priviledges.
 
Old 07-14-2003, 03:06 PM   #12
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
im at work now, ill check the log tonight. i was actually planning on running through ssh, im just tryin to get it working locally 1st. and honestly i didnt realize i ran it as root. i su'ed and left it on i guess. thnx for the tips ill reply again this evening.
 
Old 07-15-2003, 09:55 AM   #13
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
here an excerpt from my log. can someone tell me what this means.

15/07/03 10:45:22 Xvnc version 3.3.7 - built Feb 28 2003 18:27:24
15/07/03 10:45:22 Copyright (C) 2002-2003 RealVNC Ltd.
15/07/03 10:45:22 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
15/07/03 10:45:22 All Rights Reserved.
15/07/03 10:45:22 See http://www.realvnc.com for information on VNC
15/07/03 10:45:22 Desktop name 'X' (Peter.Eros:1)
15/07/03 10:45:22 Protocol version supported 3.3
15/07/03 10:45:22 Listening for VNC connections on TCP port 5901
15/07/03 10:45:22 Listening for HTTP connections on TCP port 5801
15/07/03 10:45:22 URL http://Peter.Eros:5801
startkde: Starting up...
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
kbuildsycoca running...
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Server has no DPMS extension
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
mcop warning: user defined signal handler found for SIG_PIPE, overriding
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
mcop warning: user defined signal handler found for SIG_PIPE, overriding

15/07/03 10:45:34 Got connection from client 192.168.1.2
15/07/03 10:45:34 Protocol version 3.5
15/07/03 10:45:34 Ignoring minor version mismatch
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
kicker: crashHandler called
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
*** kdesktop (2375) got signal 11
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
15/07/03 10:45:42 Pixel format for client 192.168.1.2:
15/07/03 10:45:42 16 bpp, depth 16, little endian
15/07/03 10:45:42 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
15/07/03 10:45:42 no translation needed
15/07/03 10:45:42 Using hextile encoding for client 192.168.1.2
15/07/03 10:45:42 rfbProcessClientNormalMessage: ignoring unknown encoding type 3
Xlib: extension "RENDER" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
WARNING: KDE detected X Error: BadDrawable (invalid Pixmap or Window parameter) \x09
Major opcode: \x0e
DCOP aborting call from 'anonymous-2396' to 'kicker'
ERROR: KUniqueApplication: DCOP communication error!
mcop warning: user defined signal handler found for SIG_PIPE, overriding
*** kdesktop (2409) got signal 11
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
mcop warning: user defined signal handler found for SIG_PIPE, overriding
*** kdesktop (2429) got signal 11
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
mcop warning: user defined signal handler found for SIG_PIPE, overriding
*** kdesktop (2439) got signal 11
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "GLX" missing on display ":1.0".
Xlib: extension "RENDER" missing on display ":1.0".
mcop warning: user defined signal handler found for SIG_PIPE, overriding
 
Old 07-15-2003, 06:22 PM   #14
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
can anybody help w/ this?
 
Old 07-15-2003, 09:17 PM   #15
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
I was hoping that there was going to be some crystal clear evidence in the log (and maybe there is and I'm just not bright enough to spot it).

I did a little googling on the Xlib errors and found 2 things.

1) a LOT of people run into something like this and
2) it seems to be related to NVDIA drivers

You are probably going to want to do some googling on your own, but a fairly common reccomendation was to get into your XF86Config file and uncomment (or add) the Load "glx" line in the Modules section of the file.

Of course this begs the question of why doesn't this rear its ugly head when you are NOT running KDE over VNC.

There was one other thread that piqued my interest. The upshot is that the user was starting VNC from within a Gnome session and subsequently the VNC Gnome session was all garbled. In this thread the solution was the user logged into Gnome as root, popped open a console then used su to log into his regular account and start VNC. When he did that, the VNC Gnome session was fine.

You could try either the above approach or maybe just use ssh to log in and start vncserver.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Not getting IP addy from Comcast on RH? WorldBuilder Linux - Networking 8 02-16-2005 08:16 PM
Not determining IP addy? PlentifulBalls Fedora 16 09-28-2004 08:27 PM
What does it mean when letters are mixed in with IP addy? johnMG Linux - Networking 2 03-27-2004 02:27 PM
ip addy on Fedora DragonCat Linux - Newbie 5 02-20-2004 07:14 AM
New Ip Addy matt3333 Slackware 2 10-05-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration