[SOLVED]cannot connect to X server :0 when launching as root

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]cannot connect to X server :0 when launching as root

Postby DiBosco » Jan 13th, '16, 19:08

My OS is further deteriorating! I'm using Mageia 5 and am now having the following issue as well as being unable to run MCC.

I have to launch Cutecom as root because it will not connect toi /dev/ttyACM devices as user. I've spent hours trying to fix this to no avail, so now I just run Cutecom as root.

However, when I try to launch it I get this error:

No protocol specified
cutecom: cannot connect to X server :0


I've Google it and there are plenty of similar-ish problems, but no-one seems to have a fix for it, or it doesn't help in this instance.

Anyone seen this and able to help please?

Thanks!
Last edited by DiBosco on Jan 13th, '16, 19:24, edited 1 time in total.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: cannot connect to X server :0 when launching as root

Postby DiBosco » Jan 13th, '16, 19:23

Finally found a solution when stopped looking for Mageia problems and just went for general problems:

xhost +local:root

This just makes it work for some reason. I can also launch mcc GUI now. Weird shit! Anyway, hopefully this might help others with a similar issue. :)
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest