From owner-freebsd-questions@FreeBSD.ORG Thu Jan 29 04:05:32 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62C7BC92 for ; Thu, 29 Jan 2015 04:05:32 +0000 (UTC) Received: from mail.cyberleo.net (paka.cyberleo.net [216.226.128.180]) by mx1.freebsd.org (Postfix) with ESMTP id 3EFB481B for ; Thu, 29 Jan 2015 04:05:31 +0000 (UTC) Received: from [172.16.44.4] (vitani.den.cyberleo.net [216.80.73.130]) by mail.cyberleo.net (Postfix) with ESMTPSA id BFBB3178AB; Wed, 28 Jan 2015 23:05:29 -0500 (EST) Message-ID: <54C9B188.2050808@cyberleo.net> Date: Wed, 28 Jan 2015 22:05:28 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "William A. Mahaffey III" , "FreeBSD Questions !!!!" Subject: Re: Is QEMU working/reliable under .... References: <54C7C62A.5030605@hiwaay.net> <20150127210422.GA27921@slackbox.erewhon.home> <54C838CE.7040502@hiwaay.net> <20150128071441.GA29698@slackbox.erewhon.home> <54C8EFF3.6050803@hiwaay.net> <54C8FB09.5030305@cyberleo.net> <54C90E98.3080304@hiwaay.net> In-Reply-To: <54C90E98.3080304@hiwaay.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2015 04:05:32 -0000 On 01/28/2015 10:30 AM, William A. Mahaffey III wrote: > [root@kabini1, WinXP, 10:21:44am] 503 % qemu-system-i386 -cdrom > ../../../ISOs/winxp.iso -hda HDD.img -m 256 -boot d -cpu athlon -vga std > -no-acpi -localtime > Invalid MIT-MAGIC-COOKIE-1 key > (:20227): Gtk-WARNING **: cannot open display: :0.0 > [root@kabini1, WinXP, 10:21:48am] 504 % > > I am logged into root via 'su' from my regular user, rxvt-2.6.4_6 > terminal window, system tcsh, xfce-4.10_7 desktop, > xorg-server-1.14.7_1,1, FreeBSD 9.3-RELEASE-p5 .... The su process > doesn't get the graphics environment set correctly for root, I see this > a lot :-/ .... What do I need to do to get the GUI to display for me ? > TIA & thanks for your reply. Either authorize root by running this, as the user logged into X: xhost +si:localuser:root or copy the xauth cookie into root's account using something like the following: sh -c 'xauth list "${DISPLAY}" | sed -e "s/^/add /" | sudo xauth' But I suppose a better question is: why are you running qemu as root? -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://www.fur.com/peace/