LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to make X.org listen for incomming connections ? (https://www.linuxquestions.org/questions/linux-general-1/how-to-make-x-org-listen-for-incomming-connections-244758/)

qwijibow 10-24-2004 09:21 PM

yeah i already did that.

Sorry, i meant i want a user to be alble to shutdown from inside KDE.. without having to logout first.

zsazs 11-01-2004 08:00 AM

Here's how to fix your problem with KDM not allowing X to listen for tcp connections.

(I have a Debian system, but the location should be similar if not the same)

In the file /etc/kde3/kdm/Xservers file there should be a line like:

:0 local@tty1 /usr/X11R6/bin/X -dpi 100 -nolisten tcp

Just take out the "-nolisten tcp" and you should be able to run X apps remotely without SSH X tunnelling. I, too, like to run them directly for that little bit of less latency.=B

qwijibow 11-01-2004 01:17 PM

PERFECT..... this is what i was looking for....
good answers come to those who wait ;)

grayd 11-08-2004 02:12 AM

Thanks qwijibow for persevering with this thread. I have had exactly the same problem and I am about to try the solution outlined by zsazs.
I use Gnome so I hope the Xservers file exists there as well.

grayd 11-08-2004 04:27 AM

Nope, FC2 does not have the file... but it was the clue I needed.

For me the critical switch is in /etc/X11/gdm/gdm.conf
In the security section set:
DisallowTCP=false

Alternatively use the 'gdmsetup' gui accessible from System Settings -> Login Screen -> 'security' tab -> uncheck the appropriate box.

jeroen_trappers 11-28-2004 06:17 PM

THE ANSWER!
 
in gentoo, the default startup options are in :

/usr/kde/3.3/share/config/kdm/Xservers :

the first uncommented line has -nolisten tcp in the end. If you comment that option out and restart your x-server, it should work just fine.


greetings,

Jeroen Trappers

qwijibow 11-28-2004 07:29 PM

lol.. you were beaten to it by 18 days :p
look at zsazs post a few posts up.

evilbohdran 09-30-2005 08:35 AM

Thanks for the help, I was looking for this too.

For those running plain X servers (not using kdm,xdm or gdm), know that you can set this on a per user basis
by adding a ~/.xserverrc to your home directory, contents of which are:

exec /usr/bin/X -dpi 100

(replace X with wherever your xserver is).

As well, on my gentoo install, the system-wide default file is at -
/etc/X11/xinit/xserverrc

jfs_linux 06-16-2006 10:06 PM

For SUSE 10.0 the -nolisten TCP is in /etc/opt/kde3/share/config/kdm/kdmrc
on a line ServerArgsLocal=-nolisten tcp

Exto 12-23-2009 02:42 AM

Running OpenSuse11, given that I searched a bit, thought i would update this old thread.

it appears this option has moved to:

/etc/sysconfig/displaymanager

setting:

# TCP port 6000 of Xserver. When set to "no" (default) Xserver is
# started with "-nolisten tcp". Only set this to "yes" if you really
# need to. Remote X service should run only on trusted networks and
# you have to disable firewall for interfaces, where you want to
# provide this service. Use ssh X11 port forwarding whenever possible.
#
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"


All times are GMT -5. The time now is 06:32 AM.