Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Feb 2010 13:55:42 +0100
From:      =?ISO-8859-1?Q?Gustau_P=E9rez?= <gperez@entel.upc.edu>
To:        Hubert Tournier <hubert@frbsd.org>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: [PATCH] VirtualBox headless VNC support by LibVNCServer
Message-ID:  <4B66CF4E.1000709@entel.upc.edu>
In-Reply-To: <27396532.post@talk.nabble.com>
References:  <18D68DBE18AC435984C5F66597A869D3@artemis>	<B9B52D71C91E45B0BC0671061CA8C11C@artemis>	<201001280000.16773.doconnor@gsoft.com.au>	<F01C782F57DB41878576E58615F1DB53@artemis>	<201001290913.36223.doconnor@gsoft.com.au> <27396532.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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>    IP address
the VNC serve
    r will bind to\n"
    +             "   -p, -vncport, --vncport <port>        Port number
the VNC serv
    er will bind to\n"
    +             "   -k, -vnckeymap, --vnckeymap <keymap>  Keyboard
mapfile (defaul
    t: builtin US)\n"
    +             "   -S, -vncsecret, --vncsecret <secret>  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B66CF4E.1000709>