From owner-freebsd-questions@FreeBSD.ORG Tue Aug 14 20:09:31 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 3420716A421 for ; Tue, 14 Aug 2007 20:09:31 +0000 (UTC) (envelope-from kitchetech@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by mx1.freebsd.org (Postfix) with ESMTP id 00DC113C468 for ; Tue, 14 Aug 2007 20:09:30 +0000 (UTC) (envelope-from kitchetech@gmail.com) Received: by rv-out-0910.google.com with SMTP id f1so1323142rvb for ; Tue, 14 Aug 2007 13:09:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=mrgcp15ypkMw8C0PdOEbVKYRtHivYCjWRqhhOuO/jqAEWO+nl7P/mqxbnICW1E7nplJJD7GnSo+SNALrin9sx6C8rjtw/weRUxjx6EV+wZ5JsAuRdA5YHCQdH9cOukHnfXnV1Jrj69JebQTDN9apWD8nwTxSfxbwVxVjkVnHFq0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=Jvn7/j7anacWz8YBJzPmzoPaVE8SUWOEPmAQHcUkHXqmdpFddIl+nYwvAnVTHdC2nd08RauRIh+yWmdo8Ij8sYxhx0nmFLq7allbhuODQHQ9MUjP3S5sUfM9U/jpBmRVv9sU+p6bE3ADw70Y6xSgECS0CXzsw8uMRFsd1OgChDs= Received: by 10.115.76.1 with SMTP id d1mr2489793wal.1187120512662; Tue, 14 Aug 2007 12:41:52 -0700 (PDT) Received: by 10.115.59.5 with HTTP; Tue, 14 Aug 2007 12:41:52 -0700 (PDT) Message-ID: <28283d910708141241u10041d59ga09f66fc731ffe96@mail.gmail.com> Date: Tue, 14 Aug 2007 15:41:52 -0400 From: "matt donovan" Sender: kitchetech@gmail.com To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: 64285433de56b9e9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: I was having an xauth error about the hexkey not found this is my fix 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:09:31 -0000 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