Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

X11 tcp listen on localhost?

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

X11 tcp listen on localhost?

#1 Post by dieselnutjob »

Hi I want to be able to have a client app (like xterm) in a chroot be able to talk to the X11 server on localhost.
I know that this is normally considered a security risk but this is a single use laptop so I don't need to worry about other users sending me unwanted X sessions.

If I search /etc for any file with "listen" in it

Code: Select all

/etc# grep -r listen *
cups/cupsd.conf:# Only listen for connections from the local machine.
default/exim4:# 'combined' -     one daemon running queue and listening on SMTP port
default/exim4:# 'queueonly' - only a queue running daemon is started, no SMTP listener.
default/exim4:# options common to quez-runner and listening daemon
default/exim4:# Options for the SMTP listener daemon. By default, it is listening on
default/exim4:# port 25 only. To listen on more ports, it is recommended to use
exim4/conf.d/main/01_exim4-config_listmacrosdefs:# listen on all all interfaces?
exim4/exim4.conf.template:# listen on all all interfaces?
ffserver.conf:# Port on which the server is listening. You must select a different
init.d/exim4:      log_progress_msg "exim4_listener"
init.d/exim4:      log_progress_msg "exim4_listener"
init.d/exim4:# we try to kill eximqr and exim SMTP listener, no matter what
init.d/exim4:    log_progress_msg "exim4_listener"
init.d/exim4:      log_progress_msg "exim4_listener"
init.d/exim4:  SMTPNAME="SMTP listener daemon"
init.d/exim4:      SMTPNAME="combined SMTP listener and queue runner daemon"
network/if-up.d/openssh-server:# listening on new addresses.
X11/xinit/xserverrc:exec /usr/bin/X -listen tcp "$@"
you can see that I already edited /etc/X11/xinit/xserverrc and changed -nolisten tcp to -listen tcp

But I look at my processes

Code: Select all

root@R9M0DXA:/home/philip# ps -aux |grep listen
root       678  2.9  0.7 315980 59572 tty7     Ssl+ 14:54   0:01 /usr/lib/xorg/Xorg -nolisten tcp -auth /var/run/sddm/{445060af-6846-4725-8061-013d3fe23fcb} -background none -noreset -displayfd 18 vt7
root      6211  0.0  0.0  12780   936 pts/0    S+   14:54   0:00 grep listen
where did this /usr/lib/xorg/Xorg --nolisten tcp come from?

how do I change it?

thanks

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: X11 tcp listen on localhost?

#2 Post by Head_on_a_Stick »

I presume you're using LightDM to start the desktop so it must be that.

Use a console login and startx instead, that will run X under your normal user rather than root and /etc/X11/xinit/xserverrc will be applied.

It would probably be best to revert your edit and use

Code: Select all

startx -- -listen tcp
deadbang

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: X11 tcp listen on localhost?

#3 Post by dieselnutjob »

thanks, I'm using sddm

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: X11 tcp listen on localhost?

#4 Post by dieselnutjob »

creating this one new file seems to work

Code: Select all

~$ cat /etc/sddm.conf 
[X11]
ServerArguments=-listen tcp

Post Reply