Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
xauth in panther

Posted by Custard (Custard), 24 November 2003
I'm having trouble with xauth in MacOS X Panther.

If I run xauth list, I get

Code:
timewave:~/bin jamesb$ xauth list
timewave.pomegranate.net/unix:0  MIT-MAGIC-COOKIE-1  f7b0e96e71a59f5001dd17991e538d32
timewave.pomegranate.net:0  MIT-MAGIC-COOKIE-1  f7b0e96e71a59f5001dd17991e538d32
localhost:0  MIT-MAGIC-COOKIE-1  f7b0e96e71a59f5001dd17991e538d32


Which is fine.

if I run xauth list $DISPLAY I get...

Code:
timewave:~/bin jamesb$ xauth list $DISPLAY
timewave.pomegranate.net/unix:0  MIT-MAGIC-COOKIE-1  f7b0e96e71a59f5001dd17991e538d32


Which isn't. It's a unix socket entry which if you export to another machine by...

Code:
xauth extract - $DISPLAY | rsh indica /usr/X/bin/xauth merge -


Completely fails to work.
Also...

Code:
xauth extract - timewave:0


Doesn't work. The only display that seems to match with list or extract is :0 which then lists the timewave.../unix:0 line above

Soooooo, I came up with the following get round if anyone has similar problems.

(it's a shell script, but I haven't got the hash key working yet. Macs, you gotta love 'em
Code:
XAUTH=` xauth list|grep -v unix|grep timewave`;
rsh indica /usr/X/bin/xauth add $XAUTH
rsh indica /usr/X/bin/xterm -display timewave.pomegranate.net:0 -ls -bg black -fg yellow&


It's a bit 'hacky' though, but works for me.
If anyone has any other bright ideas though, I'd like to hear them..

Incidentally, the reason for this is because Panther changes the cookie in .Xauthority each time it reboots. I'm sure it's not supposed to do that either.

B

Posted by admin (Graham Ellis), 30 November 2003
Glad the hack worked .... I haven't got Panther yet (an extra Mac laptop for our training fleet is on order as I write will come with 10.3) so haven't been able to experiment with throwing windows across the network yet.   That's why I've been unusualy quiet on this thread to date .... remind me mid-December if you want me to play with this (always looking for an excuse to play   )

Posted by Custard (Custard), 30 November 2003
He he, certainly wil Graham.

After a certain amount of 'playing' with some other unix boxes I have access to, I'm not sure it's confined to Panther. (Sorry apple).

The docs for xauth say that you can use the rsh method of transferring the cookie, which works in some cases but not others.  The 'others' being when there is a /unix:0 display in the list which gets sorted to the tp of the list and returned as the first match for the display.
If I echo $DISPLAY it returns :0.0 which only matches the /unix.0 entry.
And it changes the cookie on reboot which is annoying as you have to keep copying the key about.

Also with respect to NFS on panther...
It works, but I get strange errors sometimes (error 150 error copying file), mainly if I transfer a file like  Solaris-package-local
If I transfer it zipped, it's ok. Weird.
Even weirder is that I haven't had one that's corrupt (yet) only the error message.

Anyway, those aside, I'm sure you'll like panther for it's other features, and those that have returned from macos9.

Take care.

B



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho