Hi Bruce,

On Tue, Dec 4, 2012 at 9:11 AM, Bruce Rogers <[email protected]> wrote:
Mike
>
> I don't claim to be an expert on security, so I won't comment
> on the security implications here, but I was able to get qemu-kvm
> to use SDL by exporting both the DISPLAY and XAUTHORITY that is set
> in your session before doing a sudo -i, within that session.
>
> ie:
> sudo -i
> export DISPLAY=:0.0
> export XAUTHORITY=<whatever it was set to before sudo>
> qemu-kvm ...

No success...

mike@himon:~> echo $DISPLAY
:0
mike@himon:~> echo $XAUTHORITY
/var/run/gdm/auth-for-mike-NDRdlY/database
mike@himon:~> sudo -i
root's password:
himon:~ # export DISPLAY=:0
himon:~ # export XAUTHORITY=/var/run/gdm/auth-for-mike-NDRdlY/database
himon:~ # cd /ostree
himon:/ostree # qemu-kvm -vga vmware -cpu core2duo -M pc-0.15 -kernel
/boot/vmlinuz-$(uname -r) -initrd /boot/initramfs-ostree-$(uname
-r).img -hda ostree-qemu.img -m 1024M -vga vmware -append
'rd.plymouth=0 root=/dev/sda ostree=current ' -monitor stdio
Warning: default mac address being used, creating potential for address conflict
QEMU 1.2.0 monitor - type 'help' for more information
(qemu) No protocol specified
Could not initialize SDL(No available video device) - exiting


Mike
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to