I connect to the ethernet using dhcpcd "blah". When I try to open an x application (e.g. firefox or gvim), I get the following error:
No protocol specified
No protocol specified
Error: cannot open display :0
I have to log out of xorg and then log back in and then everything is fine again.
Can someone help me debug this problem?
Last edited by shadeless (2013-07-14 00:23:54)
How do you start X? What are you running, a DE or WM? What is in your xorg.log?
Why do you think the two issues are related?
Please read How To Ask Questions The Smart Way.
Here is my xorg log. I don't think it has anything useful for this partilar problem though.
https://docs.google.com/document/d/1BLk … sp=sharing
I am using Awesome WM. I start X using the startx command. My .xinitrc file has the
However, if I remove my .xinit file, then when I do startx, it gives me one large terminal, 2 smaller ones, and an xclock. Whatever environment it is, it's definitely not Awesome WM. I then try to connect to the ethernet using dhcpcd and get the same error when I try to run firefox. Logging out and back into the environment solves the problem. The problem isn't there when I connect to the ethernet on the console and then do startx.
Also the error specifies that it can't open display. That's why I think it's a problem with X.
Why are you starting dhcpcd manually instead of using the dhcpcd service: https://wiki.archlinux.org/index.php/Dh … CP_at_boot ?
Are you using an xorg.conf file?
Last edited by 2ManyDogs (2013-07-03 00:34:50)
You wouldn't happen to 'su' to get a root terminal to run dhcpcd would you? If so, do you exit that session before trying to run other programs?
I'm using sudo, not su.
I had the same problem when I had the service working.
I'm not using a xorg.conf. I'm just using .xinitrc if that makes a difference.
It says :0. It says :0 before I do dhcpcd, after I do dhcpcd, and even after I restart Awesome.
When my computer starts up, HOSTNAME is localhost. After I do dhcpcd, it's still localhost. This setting causes my x applications to crash. I log out and back in again. My hostname is now rcervantes2.
Did you configure a hostname in /etc/hostname when you followed the Beginners' Guide to install Arch?
I actually didn't because I didn't know it was important
I'll be able to confirm whether or not specifying a hostname solves my problems this coming Wednesday.
try "xhost +" and then open the applcation
The problem was that I didn't configure a hostname in /etc/hostname when I installed Arch. Thanx cfr!