Log in

View Full Version : vncserver: connection to "Knoppix:1.0" refused by



hugo
08-27-2003, 12:43 AM
When I run svncviewer, I get the following error:

Xlib: connection to "Knoppix:1.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
xsetroot: unable to open display 'Knoppix:1'

This is running on the CD, remastered to have svncviewer.
Does anybody know how to rectify that?

Thanks!

Hugo.

aaronforjesus
08-27-2003, 01:14 AM
I don't know if this helps or not, but XFree86 has the TCP/IP ports closed by default for Debian. You may have to grep for all occurances (there are 3 to 5, I can't remember) of the line " -nolisten tcp" in the major directories such as /etc and /usr. ***Warning: this will lower your security, allowing someone to run displays on your machine. Use with caution!*** You may also need to edit files according to the following advice I got from Kodjo Agbenu at the following website:
http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x0bbb50dde50cd71190050090279cd0f9,00.html

**********************************

Hello Khalid,

I guess you are using XDMCP for that connection (X Display Manager Control Protocol). To read more about it, read the manpage of "xdm" on any Unix-like system.

XDMCP implements security mechanisms that are disabled by default on Hp-ux 11.00, but enabled on Linux.

On your Mandrake system, you will then have to disable that security before being able to connect.

=> Edit /etc/X11/xdm/xdm-config. Make sure that the DisplayManager.requestPort variable is set to 177 instead of 0.

=> Edit /etc/X11/xdm/Xaccess. There should be a line with a single star "*" at beginning.

* #any host can get a login window

You can also enable the line :

* CHOOSER BROADCAST #any indirect host can get a chooser

=> This applies only if you are using gdm (Gnome Display Manager) : edit /etc/X11/gdm/gdm.conf (may be also located in /etc/opt/gnome2/gdm/gdm.conf). In the [xdmcp] section, make sure that "Enable" is set to "true" and optionally "HonorIndirect" too.

=> This applies only if you are using kdm (KDE display manager) : edit /usr/share/config/kdm/kdmrc. In the [Xdmcp] section, make sure that "Enable" is "true" and "Port" is "177".


After you applied that changes, close all graphical connections, open a telnet or local console and kill the xdm (or kdm or gdm) process. It will be automatically restarted with the new settings.

Then you will be able to use Exceed.

Good luck.

Kodjo

**************************************

You will then need to run xhost xxxxx:0.0 where xxxxx is the name of the machine you want run the program from. If this does not help, then you will want to change the settings back where they were because security on your machine will be lower, so make backups! Good luck!