You are not logged in.

#1 2013-08-08 00:52:46

azuri
Member
Registered: 2012-08-07
Posts: 10

cannot start X applications after using netcfg-menu

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

#2 2013-08-08 00:54:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: cannot start X applications after using netcfg-menu

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

#3 2013-08-08 00:55:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: cannot start X applications after using netcfg-menu

Are you running as root?



Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-08-08 00:57:39

azuri
Member
Registered: 2012-08-07
Posts: 10

Re: cannot start X applications after using netcfg-menu

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

#5 2013-08-08 00:59:12

azuri
Member
Registered: 2012-08-07
Posts: 10

Re: cannot start X applications after using netcfg-menu

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

#6 2013-08-08 01:00:23

azuri
Member
Registered: 2012-08-07
Posts: 10

Re: cannot start X applications after using netcfg-menu

running
sudo netcfg-menu

Offline

#7 2013-08-08 01:03:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: cannot start X applications after using netcfg-menu

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

#8 2013-08-08 01:11:16

azuri
Member
Registered: 2012-08-07
Posts: 10

Re: cannot start X applications after using netcfg-menu

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

#9 2013-08-08 01:35:09

azuri
Member
Registered: 2012-08-07
Posts: 10

Re: cannot start X applications after using netcfg-menu

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

Board footer

Powered by FluxBB