Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2009 10:25:08 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Jeronimo Calvo <jeronimocalvop@googlemail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: VirtualBox not opening... from 7.2 STABLE, (GUI KDE 3.5)
Message-ID:  <20090910102508.f7aac2f1.freebsd@edvax.de>
In-Reply-To: <beaf3aa50909091010s1b8fd965u8b463f9a3cb7cf8d@mail.gmail.com>
References:  <beaf3aa50909091010s1b8fd965u8b463f9a3cb7cf8d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Sep 2009 17:10:11 +0000, Jeronimo Calvo <jeronimocalvop@googlemail.com> wrote:
> But I am getting following error when launched from the terminal:
> 
> > # VirtualBox
> > No protocol specified
> > Failed to open the X11 display!

Of course. You are trying to write to the X display as root, but
the display belongs to !root (non-root user, i. e. you).

There's a quick, but very unelegant way to solve this problem:

	# setenv DISPLAY :0.0
	# VirtualBox

The program should then run. If your root shell is a different
one than the standard C shell, have a look at its manpage about
how to modify environment variables.

You need DISPLAY to point at the local device, which is :0.0 in
this case.

There are better ways, such as using xauth.



> When used the Icon created on System>VirtualBox (Using KDE 3.5)
> [...]
> Seems to open for few secs... and suddenly disappears...

Maybe it has to be run as root? In general, it's not a good idea
to run X applications as root.



> Any ideas?

I can only provide some quite generic advices, because I never
used VirtualBox. :-(



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090910102508.f7aac2f1.freebsd>