Subject: Re: pkg/33034: xfce4 doesn't start unless you tweak things
To: None <gnats-bugs@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-bugs
Date: 03/08/2006 16:36:52
On Wed,  8 Mar 2006 21:05:02 +0000 (UTC)
joerg@britannica.bec.de wrote:

> The following reply was made to PR pkg/33034; it has been noted by GNATS.
> 
> From: joerg@britannica.bec.de
> To: gnats-bugs@netbsd.org
> Cc: 
> Subject: Re: pkg/33034: xfce4 doesn't start unless you tweak things
> Date: Wed, 8 Mar 2006 22:02:59 +0100
> 
>  On Wed, Mar 08, 2006 at 08:05:03PM +0000, Steven M. Bellovin wrote:
>  >  >  > 	You have to create a few directories first as root.  See
>  >  >  > 	http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2005-03/3277.html
>  >  >  > 	for details.
>  >  >  
>  >  >  That's bogus. What does running iceauth produce?
>  >
>  >  When do I run it?  Before starting X?  While using a different window
>  >  manager?  After starting xfce4 per the formula I gave in the PR?
>  
>  Well, let us assume you have run the bare bone xinitrc. What's the output of
>  iceauth? If you run startxfce4 after running it, does it fix the
>  problem? Both are interesting for me.

If I replace the invocation of 'twm' in my .xinitrc with 'startxfce4'
and run 'xinit', I get this:

(==) Using config file: "/etc/X11/xorg.conf"
/usr/pkg/bin/startxfce4: X server already running on display :0
xmodmap:  /home/smb/.xmodmaprc:4:  bad keysym target keysym 'Pause', no corresponding keycodes
xmodmap:  1 error encountered, aborting.
Agent pid 2209
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
_IceTransSocketUNIXCreateListener: mkdir(/tmp/.ICE-unix) failed, errno = 2
_IceTransMakeAllCOTSServerListeners: failed to create listener for local
xfce4-session: Unable to establish ICE listeners: Cannot establish any listening sockets
Agent pid 2209 killed
xscreensaver: 16:27:49: SIGHUP received: restarting...
xscreensaver: 16:27:49: initial effective uid/gid was root/smb (0/54047)
xscreensaver: 16:27:49: running as smb/smb (54047/54047)

ConsoleXterm:  fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"

waiting for X server to shut down xterm:  fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
The application 'xfce-mcs-manager' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.
xterm:  fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
FreeFontPath: FPE "/usr/pkg/xorg/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
X connection to :0.0 broken (explicit kill or server shutdown).

It then exits X.  (X had fired up, and even shown a window or two before
everything died.  I ran 'iceauth -v list' when I got back to my login
shell:

ICE "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop13432-1060465658 MIT-MAGIC-COOKIE-1 ab08a1c687b4dd522320d99e7f4c95aa
DCOP "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop13432-1060465658 MIT-MAGIC-COOKIE-1 ab08a1c687b4dd522320d99e7f4c95aa
ICE "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop9913-1060466158 MIT-MAGIC-COOKIE-1 8f1c25faab08a1c687b4dd522320d99e
DCOP "" local/berkshire.research.att.com:/tmp/.ICE-unix/dc

I switched my xinitrc file back to using twm, started X, and ran the same comand:

Using authority file /home/smb/.ICEauthority
ICE "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop13432-1060465658 MIT-MAGIC-COOKIE-1 ab08a1c687b4dd522320d99e7f4c95aa
DCOP "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop13432-1060465658 MIT-MAGIC-COOKIE-1 ab08a1c687b4dd522320d99e7f4c95aa
ICE "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop9913-1060466158 MIT-MAGIC-COOKIE-1 8f1c25faab08a1c687b4dd522320d99e
DCOP "" local/berkshire.research.att.com:/tmp/.ICE-unix/dcop9913-1060466158 MIT-MAGIC-COOKIE-1 8f1c25faab08a1c687b4dd522320d99e

If, while running X (and twm), I run my (xfce) xinitrc, I get 

xmodmap:  /home/smb/.xmodmaprc:4:  bad keysym target keysym 'Pause', no corresponding keycodes
xmodmap:  1 error encountered, aborting.
Agent pid 3315
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
_IceTransSocketUNIXCreateListener: mkdir(/tmp/.ICE-unix) failed, errno = 2
_IceTransMakeAllCOTSServerListeners: failed to create listener for local
xfce4-session: Unable to establish ICE listeners: Cannot establish any listening sockets
Agent pid 3315 killed

If a create a .xinitrc file with just 'xterm' in it and get a single
window in which I run startxfce4, I get the came .ICE-unix errors
shown above.  Running the iceauth command afterwards produces
identical output.