LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-16-2006, 01:24 AM   #1
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Rep: Reputation: 30
SuSE and Xnvc


Hello all,

I'm having trouble with the Xnvc program on my SuSE machine.
I run Xvnc and it starts the vnc no problem.

When the remote machine connects via its vnc viewer, I can see the Connect message on my machine, but it will not open up the xterm on the remote machine like it is supposed to.

Here is my xstartup file inside my .vnc directory:
Code:
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Any ideas? Any help is greatly appreciated.

Tnx.
L8rz
 
Old 06-16-2006, 05:38 AM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Quote:
When the remote machine connects via its vnc viewer...
How remote is remote? Is this a problem with port forwarding? Are there firewalls between the vnc server and remote machines? If so they need to forward port 5901 for the first session, then 5902 for the next etc (these are defaults, can be changed in /etc/vnc.conf - I think).

Or is that not the problem? You think you're getting a connection, but no Window??

My understanding is that vnc is a kind of X server, so you don't actually start a proper X session.

I had a lot of trouble with my vnc until I changed my ~/.vnc/xstartup to only:
Code:
/usr/kde/3.5/bin/startkde
I think the correct way is
Code:
exec startkde
but this didn't work when I was running kde 3.4 because I didn't have the path sorted out. Haven't bothered to tidy it up even though I'm now slightly wiser.

Of course, if it's not kde you want, you'd have to change this to whatever you need to start whatever GUI you want.

All other settings are in /etc/vnc.conf

I use vnc through ssh from work (behind firewall) - works very well, you can create a tunnel through any firewall, if it lets ssh through, you can pass everything else through.

Hope this helps.
 
Old 06-16-2006, 08:22 PM   #3
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
Thanks for the reply.

I say remote, but it's only a machine on the same local network. No firewalls, nothing really to deal with except the local HUB. It's a pretty simple network as far as I can tell. (not my network... I'm forced to work in an environment where you get little to no info )

I'm going to give it a try as soon as I can free up the machines again. Should be fairly soon.
I'll report back with my next findings.

Thx again.
L8rz
 
Old 06-16-2006, 11:32 PM   #4
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
Ok, well this is what's new:

Cannot find any /etc/vnc.conf file.
So I changed the xstartup file to the following:
Code:
#!/bin/sh
/usr/local/bin/aterm
I do understand that the vnc is not an actual X server, but rather a pseudo X server. That being said, it should atleast be able to start a simple terminal window should it not?

Upon starting Xvnc :1 on my machine I get the following in the terminal window:
Code:
16/06/2006 23:22:10 Xvnc version XF4VNC-4.4.0.0
16/06/2006 23:22:10 Copyright (C) 2001-2003 Alan Hourihane.
16/06/2006 23:22:10 Copyright (C) 2000-2003 Constantin Kaplinsky
16/06/2006 23:22:10 Copyright (C) 1999 AT&T Laboratories Cambridge
16/06/2006 23:22:10 All Rights Reserved.
16/06/2006 23:22:10 See http://www.tightvnc.com/ for information on TightVNC
16/06/2006 23:22:10 See http://xf4vnc.sf.net for xf4vnc-specific information
16/06/2006 23:22:10 Desktop name 'x11' (eMach:1)
16/06/2006 23:22:10 Protocol versions supported: 3.130, 3.3
16/06/2006 23:22:10 Listening for VNC connections on TCP port 5901
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Then, when I use the second machine (the remote one on the same network, no firewalls), I connect using a vnc viewer program on window$ xp. I tell it to connect to my IPaddress:1
After this, my machines' terminal window displays:
Code:
16/06/2006 23:25:10 
16/06/2006 23:25:10 Got connection from client 10.211.19.xxx
16/06/2006 23:25:10 Protocol version 3.8
16/06/2006 23:25:10 Ignoring minor version mismatch
(the xxx in the IP address was added by myself for this post)
So at this point, I'm assuming that the remote machine is connected, just not showing the aterm, if the aterm is actually being executed when connecting.

I also get a message when disconnecting on the XP machine, as well as if I simply stop the vnc server on my machine. So, again, this leads me to believe that there is atleast some connection happening wether or not it's a good/correct one I still don't know.

I'm still trying a few other things to see if I can get it going. Doing a massive Google too, but coming up short so far.

Tnx for the help thus far.
 
Old 06-17-2006, 06:04 PM   #5
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Hmmmm, your output is very different to mine:
Code:
New 'MAX:1 (bernie)' desktop is MAX:1

Starting applications specified in /home/bernie/.vnc/xstartup
Log file is /home/bernie/.vnc/MAX:1.log
and the log file looks like this:
Code:
Xvnc version 4.0 - built Feb 26 2006 16:11:53
Underlying X server release 60801000, The X.Org Foundation


Sat Jun 17 23:55:55 2006
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5901
 vncext:      created VNC server for screen 0
Could not init font path element /usr/share/fonts/CID/, removing from list!
xset:  bad font path element (#38), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
startkde: Starting up...
Xlib:  extension "XInputExtension" missing on display ":1.0".
Failed to get list of devices
Xlib:  extension "XInputExtension" missing on display ":1.0".
Failed to get list of devices
kbuildsycoca running...
Xlib:  extension "XInputExtension" missing on display ":1.0".
Failed to get list of devices
Server has no DPMS extension
kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.5/lib/kde3/kcm_kdnssd.so: undefined symbol: init_kdnssd
Xlib:  extension "XFree86-Misc" missing on display ":1.0".
server does not have extension for "r rate" option
Could not find 'artswrapper' executable.
Xlib:  extension "XInputExtension" missing on display ":1.0".
Failed to get list of devices
Xlib:  extension "XInputExtension" missing on display ":1.0".
Failed to get list of devices
kaccess: ERROR: X server has not matching XKB extension
Xlib:  extension "XInputExtension" missing on display ":1.0".
Failed to get list of devices
it actually goes on for quite a lot longer than that with more issues, a bit embarrassing it's so messy, but it does work.

Woah - are you running a vncserver with that command? Or a viewer?

wait a bit, going to look at some docs
 
Old 06-17-2006, 06:24 PM   #6
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Ok, so your suse installation is different to my gentoo one. Gentoo seems to have sweetened the whole shebang up, unless you've missed something.

To start a server, I use vncserver, not Xvnc, however see this (this is just after I started a new vnc display with vncserver):
Code:
$ ps -ef | grep vnc
bernie    8038     1  0 Jun17 pts/1    00:00:02 Xvnc :1 -desktop MAX:1 (bernie) -auth /home/bernie/.Xauthority -geometry 1280x1024 -depth 24 -rfbwait 30000 -rfbauth /home/bernie/.vnc/passwd -rfbport 5901 -pn -nevershared
So, apparently vncserver is a friendly script that starts Xvnc.

Read this:
http://www.realvnc.com/products/free/4.0/man/Xvnc.html
especially the last line in the Description section

Do you have vncserver? Can you get a package with that name?

The other thing you could look at is the XP end. Which viewer are you using and why is it a different protocol version to your server?
 
Old 06-19-2006, 01:57 PM   #7
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
Actually, I originally tried with the vncserver command. I started using the Xvnc command just to see if it would help.
But yes, my vncserver does start Xvnc like you stated.

I went back to using the vncserver command and it still gives the same results. I've gone thru the Xvnc page, the vncserver page, the TightVnc page, and the RealVnc page as well. They all pretty much say the same thing.

Trying some new options at the moment. I'll post back with results.
EDIT:
I grep'd the system after starting vncserver and got the following:
Code:
friq@eMach:~> vncserver

New 'X' desktop is eMach:1

Starting applications specified in /home/friq/.vnc/xstartup
Log file is /home/friq/.vnc/eMach:1.log

friq@eMach:~> ps aux | grep vnc
friq      5821  1.6  1.3 19016 6844 pts/1    S    13:58   0:00 Xvnc :1 -desktop X -httpd /usr/share/vnc/classes -auth /home/friq/.Xauthority -geometry 1276x776 -depth 16 -pixelformat rgb565 -rfbwait 120000 -rfbauth /home/friq/.vnc/passwd -rfbport 5901 -fp /usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/truetype,/usr/X11R6/lib/X11/fonts/uni,/usr/X11R6/lib/X11/fonts/CID
friq      5825  0.0  0.2  8920 1432 pts/1    S    13:58   0:00 /bin/sh /home/friq/.vnc/xstartup
Thanks again.

Last edited by DaFrEQ; 06-19-2006 at 02:02 PM.
 
Old 06-19-2006, 07:33 PM   #8
DaFrEQ
Member
 
Registered: Mar 2002
Location: Earth... for now
Distribution: SuSE9.2 AMD64; LFS; GentooAMD64; Ubuntu10.04; RHEL 5.5; Solaris10(SPARC)
Posts: 418

Original Poster
Rep: Reputation: 30
Still a no-Go. I wonder if I need to specify screen resolution, size, and all of that mess. I'd figured that it would just default to a setting that should be adequate to both machines.

Should I maybe try a different version of the vncserver on the Host machine? Or perhaps it has something to do with my xstartup file.
I've been looking for examples of this file, but not finding much info other than alot of repeated (i.e. copy/pasted) texts on web pages.
 
Old 06-20-2006, 03:22 AM   #9
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
I would try a different viewer - I use TightVNC on XP machines.
In fact that's what I'm about to do on a new Kubuntu install, because the Kubuntu vncviewer is giving me grief.
But I already know my server is working.

You said you didn't have a /etc/vnc.conf
See if there's any useful information in mine:
Code:
# /etc/vnc.conf written by Marcus Brinkmann. This file is in the Public Domain.
#
# This is the configuration file for the vncserver package.
# It is perl syntax, but only variable assignment is allowed.
# A semicolon will be added if missing.
# Every value has suitable defaults, so you probably don't need any file.
#
# This file will be sourced by `vncserver' and `vncpasswd'.
# After this file, $(HOME)/.vncrc will be sourced, so values can be
# overwritten on a per-user basis. If you want to reactivate the default
# value there, you have to specify an empty value. For example, $fontPath
# will set to the default value after
#
# $fontPath = "/foo";
# $fontPath = "";
#
# If you are missing something, please let me know.
# Marcus.Brinkmann@ruhr-uni-bochum.de

# System configuration
# --------------------
#
# This section contains entries that should be true for all users.

# $vncClasses should be the path to the java classes of server.
# $vncClasses = "/usr/share/vncserver";

# $XFConfigPath   can be set to the global XF86Config file. This will be
#                 parsed to gain default values for $fontPath and $colorPath.
#                 If you want to disable this feature, point it to an
#                 invalid file, "/foo" for example.
# $XFConfigPath = "/etc/X11/XF86Config";

# $fontPath should be a comma seperated list of fonts to be added to the font
#           path. If not specified, and $XFConfigPath is valid, vncserver
#           will read the $fontPath from there. If both are not set, the
#           default will apply.
# Example: $fontPath = "tcp/localhost:7100";     # would make vnc to use xfs.
# Example: $fontPath = "";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/misc/,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/Type1/,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/Speedo/,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/freefont/,";
#       $fontPath .= "/usr/X11R6/lib/X11/fonts/sharefont/";
# I don't know what the default is, though.

# $colorPath should be the RGB file to be used by X. This can also be taken from
#            XF86Config file if specified by $XFConfigPath
# $colorPath = "/usr/X11R6/lib/X11/rgb";

# User configuration
# ------------------
#
# This section contains entries that may change from user to user.

# $vncUserDir contains the filename for the log files directory of Xvnc
#             (the server) and the viewers that are connected to it.
# $vncUserDir = "$ENV{HOME}/.vnc";

# $vncPasswdFile contains the filename of the password file for Xvnc.
# $vncPasswdFile = $vncUserDir . "/passwd";

# $vncStartup points to a script that will be started at the very beginning.
$vncStartup = "/etc/X11/Sessions/Xsession";

# $xauthorityFile should be the path to the authority file that should be used
#                 by your vnc X server.
# $xauthorityFile = "$ENV{HOME}/.Xauthority";

# $defaultDesktopName should be set to the default name of the desktop.
#                     This can be changed at the command line with -name.

$defaultDesktopName = "linux";

# $geometry sets framebuffer width & height. Default will be calculated if
#           server is started from within a running X servers. Can be changed at
#           the commandline (-geometry). A fixed default will be used if
#           vncserver is not invoked in a running X session.

$geometry ="1024x768"

# $depth       sets the framebuffer color depth. Must be between 8 and 32.
# $pixelformat sets the default pixelformat.
#              The default will be calculated if none of both is specified
#              and when vncserver is called from within a running X servers.
#              Can be changed at the command line with option -depth.
#              A fixed default value will be used if vncserver is not
#              invoked in a running X session.

$depth = "16";

#           $pixelformat = "rgb565";

# $getDefaultFrom sets the display from which you can query the default of
#                 the above three options, if you don't want to start vncserver
#                 from within a running X server. It will be added to the call
#                 of xdpyinfo.
#                 It is useful to get the default from the X server you will
#                 run xvncviewer in.
# Example:  $getDefaultFrom = "-display localhost:0"

# $rfbwait sets the maximum time in msec to wait for vnc client viewer.
# $rfbwait = "120000";
 
  


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
PSC 2210 I know worked on SUSE 9.3 had to reinstall SUSE and now scanner problems izquierdista SUSE / openSUSE 1 02-28-2006 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:27 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