Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 14:44:10 -0800
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Is QEMU working/reliable under ....
Message-ID:  <871tme34qt.fsf@elk.localnet>
In-Reply-To: <54C945C3.3070607@hiwaay.net> (William A. Mahaffey, III's message of "Wed, 28 Jan 2015 14:25:39 -0600")
References:  <54C7C62A.5030605@hiwaay.net> <20150127210422.GA27921@slackbox.erewhon.home> <54C838CE.7040502@hiwaay.net> <20150128071441.GA29698@slackbox.erewhon.home> <54C8EFF3.6050803@hiwaay.net> <20150128192444.GA31295@slackbox.erewhon.home> <54C945C3.3070607@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"William A. Mahaffey III" <wam@hiwaay.net> writes:


> DISPLAY=:0.0
> [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
> (<unknown>:20227): Gtk-WARNING **: cannot open display: :0.0
> [root@kabini1, WinXP, 10:21:48am] 504 %
>
>
> I have had this problem before, when I 'su' to root (usually from an
> rxvt terminal running csh as a regular user), the environment isn't
> set up correctly for most X11 stuff to work correctly when invoked
> from that root CLI. I have posted about this before, but it still
> persists. Any clue how to get this to work for me :-) ? TIA & thanks
> for your reply.

I don't usually run X11 apps as root, but I have ~/.Xauthority for root
symbolic linked to ~/.Xauthority for the user that is running X11.  I
just tested with xclock and root can run that properly.

-- 
Carl Johnson		carlj@peak.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?871tme34qt.fsf>