You are not logged in.
Hi,
I recently changed to systemd. After rebooting a couple of times everything was working fine, at least for a while...
I now have a problem that every time after running netcfg-menu and connecting to a WiFi network, I cannot start any X applications anymore. I always get the error message
Invalid MIT-MAGIC-COOKIE-1 key[0x719f08] qt4 interface error: Could not connect to X server
or someting similar like
Invalid MIT-MAGIC-COOKIE-1 keyxgterm Xt error: Can't open display: :0
I found similar problems connected to wrong host names, but none of the solutions stated there worked for me
Offline
If you think it may be related to the hostname, you could provide relevant output about your hostname setting...
hostname, hostnamectl, cat /etc/hostname, something.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Are you running as root?
Not a Sysadmin issue, moving to NC...
Offline
hostname
azuri
hostnamectl
Static hostname: azuri
Pretty hostname: n/a
Icon name: computer-laptop
Chassis: laptop
Machine ID: da05f8416ad44b56aedad9e37a6e2cea
Boot ID: 3df0d5df3c0e491a925046f2974a0821
Operating System: Arch Linux
Kernel: Linux 3.7.10-1-ARCH
Architecture: x86_64
cat /etc/hostname
azuri
echo $HOSTNAME
localhost
cat /etc/rc.conf
...
# NETWORKING
# ----------
HOSTNAME=azuri
...
Last edited by azuri (2013-08-08 01:01:35)
Offline
not running as root, running as user azuri on azuri
path shown in xterm is
azuri@localhost:~/
used to be
azuri@azuri:~/
I think
Offline
running
sudo netcfg-menu
Offline
Some network management tools have had some errors where they reset HOSTNAME via /etc/hosts (I believe). I don't use any of these tools, so I don't know much of the history. But can you check /etc/hosts before and after running netfcg and getting this problem?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
before and after running
sudo netcfg-menu
cat /etc/hosts:
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost azuri
::1 localhost.localdomain localhost azuri
# End of file
Offline
Okay, found that using netcfg-menu changes $HOSTNAME from azuri to localhost.
Changing /etc/hosts from
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost azuri
::1 localhost.localdomain localhost azuri
to
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 azuri.localdomain azuri localhost
::1 azuri.localdomain azuri localhost
did the trick. Just hoping it doesn't influence anything else...
Offline