VNC and Network sharing with Windows

1,060 views
Skip to first unread message

scott....@gmail.com

unread,
Oct 26, 2008, 1:29:52 PM10/26/08
to Beagle Board
You will want a VNC client on your PC. A good opensource option is
UltraVNC
http://sourceforge.net/projects/ultravnc

connect the serial port from the beagleboard to the PC using the
beagleboard serial adapter

connect USB to PC and boot Beagleboard
the beagleboard will boot causing windows to detect the device

install the NDSIS drive per
http://embedded.seattle.intel-research.net/wiki/index.php?title=Setting_up_USBnet&redirect=no
the required .inf is linked in the documentation
and setup the network connection (IP address 192.168.0.1 or your
preferred private address, and network mask 255.255.255.0 )

using a terminal program (hyperterm or realterm in ansi mode) connect
to the serial port at 115200 8n1

log into beagle username and password angstrom

(you may need to be logged in as root to execute from sbin)
configure network on beagleboard with the following command
>/sbin/ifconfig usb0 192.168.0.2 netmask 255.255.255.0

now add a default route
>/sbin/route add default gw 192.168.0.1

test the connection by pinging the windows box
>ping 192.168.0.1

make sure your windows box is sharing the connection (advanced tab for
the network connection)

setup name services, edit /etc/resolv.conf
vi /etc/resolv.conf
you will have one line that points to the windows box
nameserver 192.168.0.1

now you should be able to ping a nearby network address by name eg:
>ping google.com

update the package from the beagle terminal
>opkg update

install VNC for beagle with the following
>opkg install x11vnc

now create the VNC server on the beagle board
>x11nvc -display :0 &

now connect to the vnc server using the windows vnc viewer
start->programs->ultraVNC->Ultra VNC Viewer

in the VNC Server window type the IP address and display, such as
192.168.0.2:0
The default setting for connection speed of LAN (>1Mbit/s) is fine,
click connect

You should see the beagleboard desktop in a window on your PC

Jason Kridner

unread,
Dec 3, 2008, 9:46:51 PM12/3/08
to Beagle Board
On Oct 26, 11:29 am, scott.l.d...@gmail.com wrote:
...
> make sure your windows box is sharing the connection (advanced tab for
> the network connection)
...

I have a Windows XP machine with a Cisco VPN installed. I don't
believe it is possible, but I'd like to know if there is some way to
share a connection when this VPN is installed (doesn't have to be
currently running). I've tried some registry hacks[1] to try to turn
bridging/routing on, but that hasn't worked so far.

I can ssh into the Beagle Board from my XP machine, so it might make
sense for me to open up ports to the outside world for specific
functions, or even to a SOCKS_PROXY, but that is extremely limiting.
Below is an example for sharing a web proxy:

C:\>ssh -R 8080:webproxy.company.com:80 ro...@192.168.0.2
# 8080 is the port to open up on the BeagleBoard to forward to
webproxy.company.com:80
# webproxy.company.com is the address of the web proxy
# 80 is the web proxy port
# 192.168.123.2 is the IP address assigned to the BeagleBoard with
'ifconfig'

root@beagleboard:~# export http_proxy=http://localhost:8080/
root@beagleboard:~# opkg update

This works pretty well when you have a web proxy server, but only
handles web accesses. Setting up every port you might need could be a
real pain.

[1] http://www.handhelds.org/moin/moin.cgi/WindowsIpaqRoutingHowto
Reply all
Reply to author
Forward
0 new messages