From owner-freebsd-questions@FreeBSD.ORG Thu Sep 10 14:12:10 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 E61551065670 for ; Thu, 10 Sep 2009 14:12:10 +0000 (UTC) (envelope-from jeronimocalvop@googlemail.com) Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by mx1.freebsd.org (Postfix) with ESMTP id 789898FC15 for ; Thu, 10 Sep 2009 14:12:10 +0000 (UTC) Received: by ewy4 with SMTP id 4so143179ewy.36 for ; Thu, 10 Sep 2009 07:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pQAbMxjphU3TxzxAxcX/XcgfhXrpw/rh/WkH+MqIAeI=; b=acccSidGUUarfwNfMhzWmfK6SKrKLACRuimh134dk5sDYenlVzgs5C+ODU9WalJRnZ HBmIbGbIRtQeolU5Lgal2NNRS+m46DSJyHQ/pFm/HiAlCh7oBasS7Pb2LV4OaJ03SJLi gSIhwBIDntUSEQK1It87ToZaceK1yb5FEnEZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TIXNayRzc/fD6cCSSFby/3J5chBads0GTW4AqXiXo0/GhM8ARQjOcT24+hueGjmHcx wQxm7lSbK/+EdNkkgwCvrnxdMvj61lXQ/d0hbvmHg5nHGWQoefgiE/3IaSr6cx0bGrcN npW99ocOBs7Wk1/eIRv4Wy6h7luSj29q3mCTQ= MIME-Version: 1.0 Received: by 10.216.29.211 with SMTP id i61mr365839wea.212.1252591928897; Thu, 10 Sep 2009 07:12:08 -0700 (PDT) In-Reply-To: <20090910102508.f7aac2f1.freebsd@edvax.de> References: <20090910102508.f7aac2f1.freebsd@edvax.de> Date: Thu, 10 Sep 2009 15:12:08 +0100 Message-ID: From: Jeronimo Calvo To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2009 14:12:11 -0000 Great!! I will try running the app as a regular user, as I did add myself on the virtualbox group... Should be alright from there... I'll let u know as soon as i finish my portupgrade -a (thats taking year and a half) lol Thanks!!! 2009/9/10 Polytropon : > 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: > > =A0 =A0 =A0 =A0# setenv DISPLAY :0.0 > =A0 =A0 =A0 =A0# 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, ... >