Connecting to the internet using command line

Hi,i just set up the image of ubuntu 11.10 using this “ubuntu-11.10-r3-minimal-armel.tar.xz”. It only has the command line and no GUI. In my PC i connect to the internet by opening a web page where i enter the username and password. How do i connect to the net using the command line alone in Beagle Board xM?? Any help is appreciated thanks…

You could use the Lynx browser. It converts webpages to ASCII so you can view them through a terminal.

http://en.wikipedia.org/wiki/Lynx_(web_browser)

Another option would be to try and bypass the authentication be doing it on your PC, then changing the MAC address of the BBxM to match your PC. The network would then think the BBxM already authenticated. This depends on the network and how the authentication is enforced.

-Jon

Hi,i just set up the image of ubuntu 11.10 using this
"ubuntu-11.10-r3-minimal-armel.tar.xz". It only has the command line and no

btw, that image was released on 12/23/2011 and is not supported anymore...
See: http://elinux.org/BeagleBoardUbuntu#Demo_Image

GUI. In my PC i connect to the internet by opening a web page where i enter
the username and password. How do i connect to the net using the command
line alone in Beagle Board xM?? Any help is appreciated thanks....

sudo ifconfig -a
sudo dhclient eth0

(now you have ip)

sudo apt-get install (pkg to access web)..

Regards,

i had the same problem. in the end i used python urllib for form
submission. took some work though.

stu

Hi Jon, thanks for the prompt reply…
I dont mind using either so long as i can get a proper GUI up and running. Could you provide a link or tell me how to get lynx browser working in my beagleboard. Alternatively…about the MAC address…im a newbie and dont really know how to get about, so…if its not much of a hassle could you please advice on that topic too…whichever you think would be easiest.
On another note…aren’t there ways in which i can directly setup the ubuntu OS with GUI on my Beagleboard xm without having to go through one like I used…

Robert,
Thanks for the reply…i tried the step u mentioned…but nope…its the same no connection…i used
sudo ifconfig -a
sudo dhclient eth0
sudo apt-get install cpp

did i miss out on something or do something wrong…?

Robert,
Thanks for the reply...i tried the step u mentioned...but nope...its the
same no connection...i used
sudo ifconfig -a
sudo dhclient eth0

Does "/sbin/ifconfig" show an actual connection?

sudo apt-get install cpp
did i miss out on something or do something wrong...?

Regards,

using /sbin/ifconfig the last line of eth0 shows the bytes of rx increasing. This means there is an active connection right? or should i be looking for some other parameters?
The problem persists…cant connect to webpages…

ah... actually look at the "inet" line that you have a proper ip
address for you network..

eth0 Link encap:Ethernet HWaddr 00:19:b8:00:f0:87
          inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::219:b8ff:fe00:f087/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:395389 errors:0 dropped:0 overruns:0 frame:0
          TX packets:377601 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:258873058 (246.8 MiB) TX bytes:466184831 (444.5 MiB)

Regards,

yup…I do hav an inet line with proper ip address. But still the download seems to fail…ok this is what i do after sudo dhclient eth0

sudo apt-get install gdm xfce4 xserver-xorg-video-omap3 network-manager

this is to install the xfce GUI. The terminal then shows a lot of “get” but when actually trying to connect to the site it fails. Is this due to the fact that the image is no longer supported or is there something else…

yup..I do hav an inet line with proper ip address. But still the download seems to fail...ok this is what i do after sudo dhclient eth0

sudo apt-get install gdm xfce4 xserver-xorg-video-omap3 network-manager
this is to install the xfce GUI. The terminal then shows a lot of "get" but when actually trying to connect to the site it fails. Is this due to the fact that the image is no
longer supported or is there something else....

Have you checked the routing from your Beagle to the network?
What do you get from 'route -n'?

Ah, did you update your local apt database, before trying to install
any packages?

sudo apt-get update

Regards,

yes i tried sudo apt-get update…but its the same problem…it prepares packages for update but cant download them…

i’ll check route -n and let you know…

Would you happen to be on a Hughsnet satellite connection? On the new
satellite? If so then their web accelerator breaks apt-get, auto update
and several other protocols. If you are on the sat, tell me and I'll
walk you through turning off the accelerator.

John