MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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 have a new machine, I installed Mandriva 2006 x86_64. I did the usual install adding tightvnc server and client. I cannot get the vncserver to work.
The vnc client does not generate an error, it does nothing, not even ask me for a password.
I have a second machine, Mandriva 2005LE - 32bit running. I have compared the vnc setup and they both seem to be the same. I can easily connect to this second machine using vnc from Linux or Windows.
Currently the new system is running Apache, MySQL, WebMin and ssh; all are working and I can connect to any of them remotely. I am on a secure network, so for now I disabled the firewall.
Yes, sorry I should be more specific. When I say the vnc client does nothing when connecting to the vncserver, what I have found is this:
On Linux the VNC client apparently connects, but the window is black, displaying nothing. As well it never prompted me for a password even though I had set one.
On Windows the VNC client does not show after I attempt to connect. There is no timeout or anything. If I check the task list I find that the vnc client is running.
With with both vnc clients I am able to connect to a second Linux server in my office with no problems.
check the vncserver logs in ~/.vnc/host:display#.log. if you're running the server as a service, try just using the vncserver command directly instead, if only for debugging purposes.
Last edited by acid_kewpie; 11-03-2005 at 06:10 PM.
02/11/05 14:37:59 Xvnc version 3.3.tight1.2.9
02/11/05 14:37:59 Copyright (C) 1999 AT&T Laboratories Cambridge.
02/11/05 14:37:59 Copyright (C) 2000-2002 Constantin Kaplinsky.
02/11/05 14:37:59 All Rights Reserved.
02/11/05 14:37:59 See http://www.uk.research.att.com/vnc for information on VNC
02/11/05 14:37:59 See http://www.tightvnc.com for TightVNC-specific information
02/11/05 14:37:59 Desktop name 'X' (myserver:1)
02/11/05 14:37:59 Protocol version supported 3.3
02/11/05 14:37:59 Listening for VNC connections on TCP port 5901
02/11/05 14:37:59 Listening for HTTP connections on TCP port 5801
02/11/05 14:37:59 URL http://myserver:5801
failed to set default font path 'unix/:-1'
Fatal server error:
could not open default font 'fixed'
XIO: fatal IO error 104 (Connection reset by peer) on X server ":1.0"
after 0 requests (0 known processed) with 0 events remaining.
It appears there is a font issue. With a lot of googling all I could come up with is to add a /etc/vnc.conf file and set the font path. However I could not find any examples. Any ideas how to resolve this, or is adding a vnc.conf file the solution?
I modified the /etc/X11/xorg.conf file and still I cannot connect. However there was one thing, the ~/.vnc/xxxx:1.log file no longer had the font error.
But that is confusing to me as Mandrake has been running a font server for along time, and should not require the extra font info to be added to the xorg.conf file.
With much googling for the previous error "failed to set default font path" and "vncserver", I have found that lots of Debian systems have had to maintain a /etc/vnc.conf file, with the font paths in it. Are you familiar with this?
This is how i got my vnc server to work, mabye it will work for you too...
First, as root open /etc/sysconfig/vncservers
Add line: VNCSERVERS="1:your_username"
Save and exit.
Then open /home/your_username/.vnc/xstartup
Uncomment the #!/bin/sh (remove the #-sign)
Save and exit.
Then open /etc/rc.d/rc.local
Add line at end: su your_username -c "vncserver -depth 16 -geometry 1280x1024"
This is to set the colordepth and geometry, you can set them as you want
Then start terminal.
As root: chkconfig --level 35 vncserver on
This will start the vnc sever at boot
The first time you restart your computer you will have to set a vnc password.
Start terminal:
As your_username: vncpasswd
then set a password and it should work.
i think i had an issue a while ago similar to this, where the fonts had moved between the use of xfree86 and xorg. as such vncserver was looking in the wrong location for fonts. either use the -fp option to tell it where the new location is, or edit the vncserver script yourself and change the line in there.
When I edited the vncserver file I got a string of new errors looking for the 100dpi fonts. This server does not have the 100dpi fonts, but neither does my other 32bit server which is currently running vncserver.
This is rather confusing, but I will attempt to install the fonts.
I have the same problem with the same installation,
how did you fix it (if you did)??
Quote:
Originally posted by ejennings_98 Chris:
When I edited the vncserver file I got a string of new errors looking for the 100dpi fonts. This server does not have the 100dpi fonts, but neither does my other 32bit server which is currently running vncserver.
This is rather confusing, but I will attempt to install the fonts.
I did not fix it. I decided to use Webmin to remote administer the machine. By using ssh and webmin I can do pretty much anything I need.
This is what I tried:
- I installed the 100dpi fonts,
- I tried all other suggestions mentioned in this thread,
- I did extensive searching on Google and tried a number of other tips, tricks and magic,
Nothing worked!
Just to recap the systems that I have worked with:
- I currently have two 32 bit machines both running Mandriva 2005 LE and I have had no problems running VNC server. I have run VNC on about 5 other Linux based machines in the past with little problems.
- I have setup two 64 bit machines, one with Mandriva 2005 LE and the other with Mandriva 2006. I cannot get VNC server to work with either of them.
I have decided not to waste any more time on this issue.
[QUOTE]Originally posted by ejennings_98
[B]smiler:
Same here, all my i586 installations never had any problems with VNC.
I had the same experience as you with the A64 one, except I had never any font errors, so I think it is unrelated to these.
I have found that I can tunnel X over SSH, so I can bring up the applications one by one by first connecting with ssh -X server-address and then just starting applications from the remote console command-line -- /usr/sbin/drakconf & to get the Mandriva control center remotely.
Also uninstallling tightvnc-server and installing the 32 bit version makes it able to connect to, but a lot of kded crash messages pops up, but u can use the applications
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.