From owner-freebsd-questions@FreeBSD.ORG Thu Sep 10 08:25:11 2009 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 86C81106566C for ; Thu, 10 Sep 2009 08:25:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 46F9E8FC13 for ; Thu, 10 Sep 2009 08:25:11 +0000 (UTC) Received: from r55.edvax.de (port-92-195-27-155.dynamic.qsc.de [92.195.27.155]) by mx02.qsc.de (Postfix) with ESMTP id B66711E1D4; Thu, 10 Sep 2009 10:25:09 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n8A8P9LO001586; Thu, 10 Sep 2009 10:25:09 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 10 Sep 2009 10:25:08 +0200 From: Polytropon To: Jeronimo Calvo Message-Id: <20090910102508.f7aac2f1.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: VirtualBox not opening... from 7.2 STABLE, (GUI KDE 3.5) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2009 08:25:11 -0000 On Wed, 9 Sep 2009 17:10:11 +0000, Jeronimo Calvo 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, ...