[PATCH] VirtualBox headless VNC support by LibVNCServer (20100211)

2010-02-14 Thread Daisuke Aoyama

Hi, all

First, thank you for using my patch.
This archive contains individual patch files and modified Makefile.
Please select options you want before building. then make with normal way.

What's new?:
Send ScrollLock when press Ctrl+Scroll or Ctrl+Pause.
Fixed 16bpp mode have incorrect settings.
(it may cause the viewer confuse, now is send 32bpp instead of 16bpp)
Show port 0 when VNC Server disabled.
Code cleanup.

# cd /usr/ports/emulators/virtualbox-ose
# tar xvf /path/to/vboxvnc-20100211.tar.gz
# make config
# make

It provides VNC server for guest OS console access in VBoxHeadless frontend.
Supported Options:
  -v, -vnc, --vnc on|offEnable (default) or disable the VNC
Server
  -a, -vncaddress, --vncaddress ipIP address the VNC server will bind
to
  -p, -vncport, --vncport portPort number the VNC server will
bind to
  -k, -vnckeymap, --vnckeymap keymap  Keyboard mapfile (default: builtin
US)
  -S, -vncsecret, --vncsecret secret  VNC Authentication secret

three options at one line is an equivalent option, for example:
-v on, -vnc on, --vnc on are same feature.

-v option specify whether VNC server starts in the machine.
default is on (enable).

-a and -p options specify IP address and port number of VNC server.
default IP is wildcard, port is 5900. If you have multiple IPs(NICs) in your
system,
you can select the listen address of the server.

-k option specify the keyboard layout convert from VNC keys to Scancodes.
default is US standard 101keys. (I tested only US 101 keyboard)
If you want another keyboard, you can spcify the path of kbdmap(5).
In standard installation of FreeBSD, it's located in
/usr/share/syscons/keymaps/.
for example, -k /usr/share/syscons/keymaps/jp.106.kbd uses JP 106
keyboard.

-S option specify the password of the VNC server.
However, it have security risk in common server. It assumed used with
FreeNAS
(limited user environment). Please consider the risk by using command line.

When starting the VM, the proctitle is changed like below (you can see by
ps axww):
VBoxHeadless: VM: TestVM4 Port: 5900 Auth: off (VBoxHeadless)

Regards,
Daisuke Aoyama


vboxvnc-20100211.tar.gz
Description: Binary data
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-28 Thread Daisuke Aoyama

Thank you for your reply.


I put VBox-VNC-20100127.patch in files an modified the paths to be
acceptable to the ports tree and applied the Makefile patch and it
works well. (I say this as IMO it's easier to try if you distribute it
like that :)


I think too. I have created it to use with FreeNAS. I assumed that it is 
used internally.

The first mail of FreeBSD ML is here:
http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007336.html
Next time, I will try to change you said.


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.

Daisuke Aoyama

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-28 Thread Daniel O'Connor
On Fri, 29 Jan 2010, Daisuke Aoyama wrote:
 I think too. I have created it to use with FreeNAS. I assumed that it
 is used internally.
 The first mail of FreeBSD ML is here:
 http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007
336.html Next time, I will try to change you said.

OK thanks.

 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.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-27 Thread Daisuke Aoyama

Hi, all

I updated for 3.1.2_1 and fixed bug of initial pixel format.

Before building, install ports/net/libvncserver.
I recommend you backup virtualbox-ose directory before doing.
Uncheck QT4, X11, NLS by make config before extracting.

Howto apply the patch:
# cd /usr/ports/emulators/virtualbox-ose
# make config
# make extract
# patch -p  /path/to/VBox-VNC-Makefile.patch
# patch -p  /path/to/VBox-VNC-20100127.patch
# make

Regards,
Daisuke Aoyama
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-27 Thread Daisuke Aoyama

Sorry, I forgot attached files.

- Original Message - 
From: Daisuke Aoyama aoy...@peach.ne.jp

To: freebsd-emulat...@freebsd.org
Cc: freebsd-curr...@freebsd.org; freebsd-stable@freebsd.org
Sent: Wednesday, January 27, 2010 7:46 PM
Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer



Hi, all

I updated for 3.1.2_1 and fixed bug of initial pixel format.

Before building, install ports/net/libvncserver.
I recommend you backup virtualbox-ose directory before doing.
Uncheck QT4, X11, NLS by make config before extracting.

Howto apply the patch:
# cd /usr/ports/emulators/virtualbox-ose
# make config
# make extract
# patch -p  /path/to/VBox-VNC-Makefile.patch
# patch -p  /path/to/VBox-VNC-20100127.patch
# make

Regards,
Daisuke Aoyama

VBox-VNC-Makefile.patch.gz
Description: Binary data


VBox-VNC-20100127.patch.gz
Description: Binary data
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: [PATCH] VirtualBox headless VNC support by LibVNCServer

2010-01-27 Thread Daniel O'Connor
On Wed, 27 Jan 2010, Daisuke Aoyama wrote:
  I updated for 3.1.2_1 and fixed bug of initial pixel format.
 
  Before building, install ports/net/libvncserver.
  I recommend you backup virtualbox-ose directory before doing.
  Uncheck QT4, X11, NLS by make config before extracting.
 
  Howto apply the patch:
  # cd /usr/ports/emulators/virtualbox-ose
  # make config
  # make extract
  # patch -p  /path/to/VBox-VNC-Makefile.patch
  # patch -p  /path/to/VBox-VNC-20100127.patch
  # make

I put VBox-VNC-20100127.patch in files an modified the paths to be 
acceptable to the ports tree and applied the Makefile patch and it 
works well. (I say this as IMO it's easier to try if you distribute it 
like that :)

Is there any prospect of being able to build the VNC server extension in 
parallel with X11/QT4?

-- 
Daniel O'Con
Thanks.
nor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.