VNC on beagleboard

Hello,

I am now running ubuntu 10.04 on my bealgeboard (C4). I have followed
this link http://elinux.org/BeagleBoardUbuntu#Lucid_10.04.1

Right now I have no monitor connected to the HDMI connector and I do
not have a DVI monitor for use right now. So I am working only through
the serial port.

I read that it is also possible to view the GUI using VNC client-
server. But I am a bit confused about how to set up VNC server on
beagleboard now.

I have got a USB to ethernet adapter (BAFO) but do not have an
internet connection to connect the beagleboad to. So not able to run
commands such as apt-get install .........

I tried connecting to beagleboad from "Remote desktop viewer" from my
host (running ubuntu lucid) but it says connection closed. SSH login
to beagleboard shows connection refused. But I am able to ping
successfully to beagleboad from host and vice versa.

Can anybody give some hints how to proceed?

Thanks..

Hi,

You can do that running the following commands in the console (serial port):

export DISPLAY=:0
startx & (or startxfce)
x11vnc &

Of course, that you have to have those packages installed.

BTW, I do not understand why you can’t apt-get install packages on your board. If you can ping the board, you can configure the gateway and DNS on the BB to access internet. If you don’t have a gateway, a simple iptables -j MASQ on your PC will make the PC act as gateway for your board to access the internet

My guess is that he just has them cross wired together.. He's going
to have to connect to the net somehow to install x11vnc and other
dependices...

Regards,

Well I have a wireless broadband connected to my host laptop. BB is
connected to laptop over ethernet. IP address of and gateway of
wireless broadband is different than that for the ethernet connection.
So in this configuration, is it possible to run apt-get from BB
console? I mean using the wireless broadband of the host?

Sure. You want to lookup how to do IP Masquerading using iptables on
your Linux host (if it's a Windows host, you have my sympathy). You
might also just install squid (the proxy server) on your laptop and
configure your laptop firewall to allow connections to tcp port 3128
(which it should know about as a service) from the wired connection.

Then you just need to do the following on the BB:

export http_proxy=http://ip.of.the.laptop:3128/

Before using apt to do the upgrades.

Masquerading will give you more flexibility, but if you're not familiar
with how to configure that and don't have a distro that gives you some
pretty GUI thingy to configure it, go with the proxy option.

Jon.

Thanks John.
I have ubuntu 10.04 on my laptop. (But also thanks for your sympathy
as it is a dual boot machine :slight_smile: )
I will try IP Masquerad or proxy.

I tried squid but still I can only ping to the laptop and not to any
other host. Am I missing something?
If I try ping www.google.com from BB console, it shows "unknown host
www.google.com"
If I try something like wget http://rcn-ee.net/deb/rootfs/ubuntu-10.04-minimal-armel.tar.7z,
it shows Resolving rcn-ee.net...
failed: Temporary failure in name resolution.
wget: unable to resolve host address `rcn-ee.net'

another approach would be to use a bridge

on the host:
$ ifconfig eth0 0.0.0.0
$ ifconfig eth1 0.0.0.0
$ brctl addbr br0
$ brctl addif br0 eth0
$ brctl addif br0 eth1

$ route add default gateway 192.168.1.1
$ dhclient br0

on the beagle:

$ ifup eth0
$ dhclient eth0

Gopal wrote:

Hello,

I could get it working well. I was missing mentioning nameserver
addresses on BB; and I was testing it by pinging google.com /
yahoo.com and so on..
Now I can successfully run apt-get install and even browse web. I have
another problem regarding VNC but I will post it in a separate thread.

Thanks all for help..

Rafael Aroca <rafaelaroca@...> writes:

Hi,You can do that running the following commands in the console (serial

port):export DISPLAY=:0startx & (or startxfce)x11vnc &Of course, that you have
to have those packages installed. BTW, I do not understand why you can't apt-get
install packages on your board. If you can ping the board, you can configure the
gateway and DNS on the BB to access internet. If you don't have a gateway, a
simple iptables -j MASQ on your PC will make the PC act as gateway for your
board to access the internet-- s Rafael.Linux User #56352

On Mon, Nov 15, 2010 at 5:33 PM, Gopal <gopal.amlekar-

Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:Hello,

I am now running ubuntu 10.04 on my bealgeboard (C4). I have followed
this link BeagleBoardUbuntu - eLinux.org
Right now I have no monitor connected to the HDMI connector and I do
not have a DVI monitor for use right now. So I am working only through
the serial port.
I read that it is also possible to view the GUI using VNC client-
server. But I am a bit confused about how to set up VNC server on
beagleboard now.
I have got a USB to ethernet adapter (BAFO) but do not have an
internet connection to connect the beagleboad to. So not able to run
commands such as apt-get install .........
I tried connecting to beagleboad from "Remote desktop viewer" from my
host (running ubuntu lucid) but it says connection closed. SSH login
to beagleboard shows connection refused. But I am able to ping
successfully to beagleboad from host and vice versa.
Can anybody give some hints how to proceed?
Thanks..
--
You received this message because you are subscribed to the Google Groups

"Beagle Board" group.

To post to this group, send email to beagleboard-

/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

To unsubscribe from this group, send email to beagleboard+unsubscribe-

/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

For more options, visit this group at

http://groups.google.com/group/beagleboard?hl=en.

I too need to get my BB-c4 GUI on my laptop..

pls help me in gettin that using VNC client server..
Thanx in advance