Date: Wed, 23 May 2007 16:28:52 -0500 From: Scott Allendorf <scott-allendorf@uiowa.edu> To: x11@freebsd.org Subject: startx problem (was Re: HEADS UP: xorg upgrade plans) Message-ID: <4654B214.8090008@uiowa.edu>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, 2 May 2007, Stephen Montgomery-Smith wrote:
> On Wed, 2 May 2007, Kris Kennaway wrote:
>
>> On Wed, May 02, 2007 at 02:40:26PM -0500, Stephen Montgomery-Smith
wrote:
>>
>>> Secondly, X7.2 as I tried it wouldn't "startx" if some other login had
>>> created a .Xauthority file. While "rm .Xauthority" solved the problem
>>> completely, I don't think this is user friendly.
>>
>> I think I ran into this once a while back, I don't know what is the
>> correct solution.
>
> Perhaps you could put in some kind of "setenv XAUTHORITY
.Xlocalauthority"
> in a script somewhere.
>
> Actually this one can bite you quite badly. If you are running X, and
> then you login from somehwere else, and then go back to the X session,
> then suddenly all your X commands like xterm will completely stop
working.
> It can be really disconcerting if you don't know what caused it, and
I can
> see a large number of help messages being generated on the various
> bulletin boards.
I compared the 6.9 startx script to the one installed by the 7.2
x11/xinit port. I found that the older script contained a block of code
that fixes the problem described above. In the x11/xinit port the code
is present in startx.cpp, but is protected by:
#if defined(HAS_COOKIE_MAKER) && defined(MK_COOKIE)
...
#endif
If these defines are set properly during the build, then startx should
return to its previous behavior. I have verified this by using the 6.9
script (with paths changed) on a system that has 7.2 installed.
From /usr/local/lib/X11/config/FreeBSD.cf:
#if OSMajorVersion >= 4
#define HasCookieMaker YES
#define MkCookieCmd \
'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e
\\"%08x\\"'
#else
#define HasCookieMaker NO
#endif
#endif
Cheers,
Scott
--
Scott C. Allendorf Email: scott-allendorf@uiowa.edu
UNIX Systems Administrator Office: 216A Van Allen Hall
Department of Physics and Astronomy Voice: (319) 335-0003
The University of Iowa FAX: (319) 335-1753
Iowa City, Iowa 52242-1479 ICBM: 41 39 43.6 N 91 31 55.1 W
[-- Attachment #2 --]
0 *H
010 + 0 *H
#00U`|0&PAɃ0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
070323142913Z
080322142913Z0K10UThawte Freemail Member1(0& *H
scott-allendorf@uiowa.edu0"0
*H
0
&FmH|&4Pul
п64iyMy~>$
@I#"/X9>/Mqq
h(nb]Ֆ|`isGQ3h>
+%bɢh{
wmZkNnӯ/Eh)M"y'okP?Gݹm惥e @RM?-Că@|T8UDJM/Qv-q.{?)9o;#C:!n 6040$U0scott-allendorf@uiowa.edu0U0 0
*H
3N|TKfXPap|s%0.,f_q%#i-~Q%t?͌Y@v@6$r]IEKr<w 'P6_00U`|0&PAɃ0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
070323142913Z
080322142913Z0K10UThawte Freemail Member1(0& *H
scott-allendorf@uiowa.edu0"0
*H
0
&FmH|&4Pul
п64iyMy~>$
@I#"/X9>/Mqq
h(nb]Ֆ|`isGQ3h>
+%bɢh{
wmZkNnӯ/Eh)M"y'okP?Gݹm惥e @RM?-Că@|T8UDJM/Qv-q.{?)9o;#C:!n 6040$U0scott-allendorf@uiowa.edu0U0 0
*H
3N|TKfXPap|s%0.,f_q%#i-~Q%t?͌Y@v@6$r]IEKr<w 'P6_0?0
0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
*H
0 Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr` 00U0 0CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
*H
HP.
fgCL!6-6/P p<ab:~ t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA`|0&PAɃ0 + 0 *H
1 *H
0 *H
1
070523212852Z0# *H
1%>&gBJ0R *H
1E0C0
*H
0*H
0
*H
@0+0
*H
(0 +71x0v0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA`|0&PAɃ0*H
1xv0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA`|0&PAɃ0
*H
'q }*H\rؖsy]
2LHP<3Ry23_ӌgp?wZKgKMwFG>) ~Uet'oI,KI:Tu
ڶ[hwitdX?Iٴqqm5Z)@}gU/ed<7`h-@
4p5!:2~k"n$O{wJƩ^!k
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4654B214.8090008>
