SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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.
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:
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.
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.
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.
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?
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
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.
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";
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.