This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to allow limited remote access to server

Tags: None
(comma "," separated)
mounty
Registered Member
Posts
10
Karma
0
OS
Hello, I would like to allow non-local clients to connect to the X server during a KDE session. I am running on Gentoo Linux. When I try to do this, the client reports that it cannot connect. Running xauth + locally doesn't help. The problem seems to me to be that netstat|grep 6000 produces no output, so the X server is not listening on the usual expected port.

It seems that the files /usr/share/config/kdm/* are the key but according to the README in that directory, genkdmconf should be used to (re-)generate the contents thereof. As I recall from running xdm, with its associated /etc/X11/xdm/* files, one of those files specifies remote access. Oh wait, that's the IP addresses and networks to which xdm listens, er, I think.

In /usr/share/config/kdm/kdmrc is the line
Code: Select all
ServerCmd=/usr/bin/X -br -novtswitch -quiet
but I don't think it is obeyed because I can switch to other VTs with ctrl-alt-F1 etc., which -novtswitch is supposed to prevent.

Anyway, the bottom line is: what is preventing remote access to the server, and how can I allow it ? It should be restricted to the networks 192.168.[012].0/24. Thanks.

Last edited by mounty on Tue Jun 08, 2010 7:47 am, edited 1 time in total.
mounty
Registered Member
Posts
10
Karma
0
OS
Almost immediately I found the answer, although I've been looking for days. In /usr/share/config/kdm/kdmrc is
Code: Select all
ServerArgsLocal=-nolisten tcp
I'll leave this here in case it helps someone else.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]