You are not logged in.

#1 2003-05-05 09:58:49

hApy
Member
From: Victoria, BC
Registered: 2003-04-13
Posts: 194
Website

hosts file

I was having a problem with xcdroast where it wouldn't start after "su" to root claiming it wasn't allowed to connect to display :0.0, etc. This only started once I started using /opt/kde/bin/kdm to start directly in kde with runlevel 5.

I was looking for a solution and noticed my kdm.log was saying "X: Client 20 rejecetd from local host".... googled a bit, and a site mentioned that the hosts file (for redhat actually) was incorrect.  I found that it was the same incorrect format for arch as well

was:

127.0.0.1               localhost.localdomain localhost

and should be

127.0.0.1               localhost localhost.localdomain

according to this site anyways. I made the change and had no problem. (before I couldn't even run "xhost +localhost")

anybody comment on this? is it true about the format being wrong? if it is the case, then it should be fixed as part of the default setup for arch, right?

Hapy.

Offline

#2 2003-05-05 10:05:35

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: hosts file

i believe you are correct.


AKA uknowme

I am not your friend

Offline

#3 2003-05-08 07:26:07

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: hosts file

I'm pretty sure the format is

IP          full-name           nicknames

so the first version should be correct. You should substitute localdomain with your actual local domain, e.g. foo.bar.com

About connecting as root to X and xhost stuff : you probably have an incompatible .Xauthority file. When I su to root, I usually copy the ~/.Xauthority file from the user I normally run X to /root/ and it will work.

Offline

Board footer

Powered by FluxBB