From owner-freebsd-questions@FreeBSD.ORG Tue Aug 14 20:23:08 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13A0016A417 for ; Tue, 14 Aug 2007 20:23:08 +0000 (UTC) (envelope-from steveo@uschartco.com) Received: from hermes.barchart.com (ns1.barchart.com [69.211.177.5]) by mx1.freebsd.org (Postfix) with ESMTP id E0A6013C45D for ; Tue, 14 Aug 2007 20:23:07 +0000 (UTC) (envelope-from steveo@uschartco.com) Received: from hermes.barchart.com (localhost [127.0.0.1]) by hermes.barchart.com (Postfix) with ESMTP id 7526CF0011; Tue, 14 Aug 2007 14:59:53 -0500 (CDT) Received: from uscsteve (unknown [71.32.220.108]) by hermes.barchart.com (Postfix) with SMTP id EAF92F0009; Tue, 14 Aug 2007 14:59:52 -0500 (CDT) From: "Steve O'Connor" To: "'matt donovan'" , References: <28283d910708141241u10041d59ga09f66fc731ffe96@mail.gmail.com> In-Reply-To: <28283d910708141241u10041d59ga09f66fc731ffe96@mail.gmail.com> Date: Tue, 14 Aug 2007 13:08:00 -0700 Message-ID: <8C6DAAE908004F3F8D1F536FAA9CD369@gp.uschartco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcferXu898s75Qg5TRWdcjrINDkeUQAAUaug X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480 Cc: Subject: RE: I was having an xauth error about the hexkey not found this is myfix for it X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2007 20:23:08 -0000 How does this affect Windows VISta and OSX connections? -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of matt donovan Sent: Tuesday, August 14, 2007 12:42 PM To: freebsd-questions@freebsd.org Subject: I was having an xauth error about the hexkey not found this is myfix for it I just had to redo this part # set up default Xauth info for this machine case `uname` in Linux*) if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then hostname=`hostname -f` else hostname=`hostname` fi ;; *) hostname=`hostname` ;; esac authdisplay=${display:-:0} mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"` if x"$mcookie" = x; then echo "Couldn't create cookie" exit 1 fi To this # set up default Xauth info for this machine authdisplay=${display:-:0} mcookie=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"` for displayname in $authdisplay `hostname`$authdisplay; do if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then xauth add $displayname . $mcookie removelist="$displayname $removelist" fi done xinit $client $clientargs -- $server $display $serverargs and it seems to work for me doesn't complain about the magic cookie not being found anymore _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"