From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 1 12:55:53 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 029461065676 for ; Mon, 1 Feb 2010 12:55:53 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id 782848FC26 for ; Mon, 1 Feb 2010 12:55:52 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id o11Ctm6r006926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2010 13:55:48 +0100 Received: from [147.83.40.234] ([147.83.40.234]) (authenticated bits=0) by ackerman2.upc.es (8.13.8/8.13.8) with ESMTP id o11Ctl0x005355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Feb 2010 13:55:47 +0100 Message-ID: <4B66CF4E.1000709@entel.upc.edu> Date: Mon, 01 Feb 2010 13:55:42 +0100 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Thunderbird 2.0.0.23 (X11/20100112) MIME-Version: 1.0 To: Hubert Tournier References: <18D68DBE18AC435984C5F66597A869D3@artemis> <201001280000.16773.doconnor@gsoft.com.au> <201001290913.36223.doconnor@gsoft.com.au> <27396532.post@talk.nabble.com> In-Reply-To: <27396532.post@talk.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dash.upc.es [147.83.2.50]); Mon, 01 Feb 2010 13:55:48 +0100 (CET) Cc: freebsd-emulation@freebsd.org Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 12:55:53 -0000 En/na Hubert Tournier ha escrit: > Hello, > > > Daniel O'Connor-3 wrote: > >>>> Is there any prospect of being able to build the VNC server >>>> extension in parallel with X11/QT4? >>>> >>> There might not be problem. I'm not using X11. That is all of the >>> reason. >>> >> Ahh.. I think that the VNC option is orthogonal to X11. >> >> IMO it should probably be installed unconditionally as it is only a very >> minor code increase which makes the headless server much, much more >> useful. >> >> > > Yes, apart from the port makefile patch, the VNC option is perfectly > "orthogonal" to X11/QT4. > > I made an integrated copy of virtualbox-ose port with Daisuke's patches, > called virtualbox-ose-vnc, adding libvncserver as a lib dependency. > > In order to use it : > # pkg_delete virtualbox-ose > # cd /usr/ports/emulators > # tar vxyf > http://old.nabble.com/file/p27396532/virtualbox-ose-vnc.3.1.2_1.tar.bz2 > virtualbox-ose-vnc.3.1.2_1.tar.bz2 > # cd virtualbox-ose-vnc > # make install clean > > You can select any combination of options with it (X11 if you want to have > the "VBoxSDL" binary, QT4 if you want to have the "VirtualBox" binary). I > tested it with X11 and VNC Free Edition Stand-alone Viewer. > > If possible, it would be great to have Daisuke's patches integrated into the > mainstream port. > > Best regards, > > Hubert > I tried the modified port. If works fine to some extend. I checked the patches in the files dir and I saw this : +#ifdef VBOX_WITH_LIBVNC + " -v, -vnc, --vnc on|off Enable (default) or disa ble the VNC Server\n" + " -a, -vncaddress, --vncaddress IP address the VNC serve r will bind to\n" + " -p, -vncport, --vncport Port number the VNC serv er will bind to\n" + " -k, -vnckeymap, --vnckeymap Keyboard mapfile (defaul t: builtin US)\n" + " -S, -vncsecret, --vncsecret VNC Authentication secre t\n" +#endif /* VBOX_WITH_LIBVNC */ The modified file should be : src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp But when starting a vm with VBoxManage, i can't see those startvm's options. Moreover, my ${wrksrcdir}/LocalConfig.kmk contains this : VBOX_WITH_LIBVNC = 1 That should trigger that options. But it doesn't. So you can only have one vm with the vnc-server, can not have a second vm with vnc activated. Regards, -- PGP KEY : http://www-entel.upc.edu/gus/gus.asc