Page 1 of 1

get rid of -nolisten tcp

PostPosted: Jan 24th, '18, 23:37
by mtm
Hi guys,

On Mageia 6. I need to enable the X Server to listen to tcp.
using grep I found the -nolisten tcp option in quite a number of files both in /etc and in various scripts in /usr
I replaced ALL of them with -listen tcp. Yet ... the server still starts with the -nolisten option.

What is going on ? Is some sort of binary file that have hardcoded that option inside or what ?
As a suggestion: Please make that configurable from the management GUI.

Thank you,
MTM

Re: get rid of -nolisten tcp

PostPosted: Jan 25th, '18, 18:34
by markwk
I've never been able to get this to work with any distro using sddm. Putting ServerArguments="-listen tcp" into sddm.conf just does not work for me.
So to workaround this, I changed my session manager to lxdm, and put the following in /etc/lxdm/lxdm.conf

Code: Select all
arg=/usr/bin/X -background -listen tcp
# uncomment this if you really want xserver listen to tcp
tcp_listen=1


Also I changed /etc/X11/xdm/Xservers accordingly.

The display manager is set in /etc/sysconfig/desktop, i.e.

Code: Select all
DISPLAYMANAGER=LXDM


Of course you have to install lxdm to get this to work.

If anyone has solved the problem with sddm I'd love to hear of it.

Re: get rid of -nolisten tcp

PostPosted: Jan 25th, '18, 20:17
by doktor5000
mtm wrote:As a suggestion: Please make that configurable from the management GUI.

As a suggestion, if you actually want to have that changed, this is the wrong place. Best raise a feature request for that, if it wouldn't have been reported already (read below) https://wiki.mageia.org/en/How_to_report_a_bug_properly

Although this setting can already be changed from MCC via msec. It's on the first screenshot at http://doc.mageia.org/mcc/6/en/content/ ... ml#d4e3184
See also https://bugs.mageia.org/show_bug.cgi?id=19612

[SOLVED] Re: get rid of -nolisten tcp

PostPosted: Feb 13th, '18, 17:49
by mtm
Found this tool:

http://www.mageia-gr.org/rpm/6/x86_64/s ... x86_64.rpm

install it and then in the tax X11 type:

-listen tcp

in the field "Arguments passed to the X server invocation"

then it works.

To bad that this useful tool is not in the main repository.
Hope this helps ...

Re: get rid of -nolisten tcp

PostPosted: Feb 13th, '18, 23:14
by doktor5000
Well, that only applies when using sddm, and you don't need a tool for that - you can simply edit /etc/sddm.conf.