any suggestion on working behind company firewall?

Hi, BB community,

I am working behind company's firewall, I did manage to get
openEmbedded via git. However, I got the following error in the
angstrom building process using OE:

OE:beagleboard chuqdd@vu32:~/oe$ bitbake console-image
NOTE: Handling BitBake files: \ (6650/6650) [100 %]
NOTE: Parsing finished. 6369 cached, 0 parsed, 281 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: build 200905211357: started

...

--2009-05-21 12:46:38-- http://download.savannah.gnu.org/releases/quilt/quilt-0.46.tar.gz
Resolving download.savannah.gnu.org... failed: Name or service not
known.
wget: unable to resolve host address `download.savannah.gnu.org'
NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/quilt-0.46.tar.gz
--2009-05-21 12:46:38-- http://www.angstrom-distribution.org/unstable/sources/quilt-0.46.tar.gz
Resolving www.angstrom-distribution.org... failed: Name or service not
known.
wget: unable to resolve host address `www.angstrom-distribution.org'
NOTE: Task failed: Fetch failed: http://download.savannah.gnu.org/releases/quilt/quilt-0.46.tar.gz
NOTE: package quilt-native-0.46-r2: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/chud/oe/openembedded/recipes/quilt/quilt-
native_0.46.bb do_fetch failed
ERROR: Task 32 (/home/chud/oe/openembedded/recipes/quilt/quilt-
native_0.46.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 19 tasks of which 0 didn't need to be
rerun and 1 failed.
ERROR: '/home/chud/oe/openembedded/recipes/quilt/quilt-native_0.46.bb'
failed
NOTE: build 200905211238: completed

Basically it says host address `www.angstrom-distribution.org' can
not be resolved. It is true in the sense that I got the error of "**
server can't find www.angstrom-distribution.org: NXDOMAIN" if
"nslookup www.angstrom-distribution.org"; but if I just type" nslookup
www.angstrom-distribution.org" in the browser (firefox) address bar,
the browser has no problem finding the right address and download the
"quilt-0.46.tar.gz"

I guess this has to do with my company firewall policy, it is not
"www.angstrom-distribution.org", any external URL can not be resolved
in command line but the web browser can.

Anybody has experience dealing with this situation?

Thank you,

chuqdd

Hi, BB community,

I am working behind company's firewall, I did manage to get
openEmbedded via git. However, I got the following error in the
angstrom building process using OE:

OE:beagleboard chuqdd@vu32:~/oe$ bitbake console-image
NOTE: Handling BitBake files: \ (6650/6650) [100 %]
NOTE: Parsing finished. 6369 cached, 0 parsed, 281 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: build 200905211357: started

...

--2009-05-21 12:46:38-- http://download.savannah.gnu.org/releases/quilt/quilt-0.46.tar.gz
Resolving download.savannah.gnu.org... failed: Name or service not
known.
wget: unable to resolve host address `download.savannah.gnu.org'
NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/quilt-0.46.tar.gz
--2009-05-21 12:46:38-- http://www.angstrom-distribution.org/unstable/sources/quilt-0.46.tar.gz
Resolving www.angstrom-distribution.org... failed: Name or service not
known.
wget: unable to resolve host address `www.angstrom-distribution.org'
NOTE: Task failed: Fetch failed: http://download.savannah.gnu.org/releases/quilt/quilt-0.46.tar.gz
NOTE: package quilt-native-0.46-r2: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/chud/oe/openembedded/recipes/quilt/quilt-
native_0.46.bb do_fetch failed
ERROR: Task 32 (/home/chud/oe/openembedded/recipes/quilt/quilt-
native_0.46.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 19 tasks of which 0 didn't need to be
rerun and 1 failed.
ERROR: '/home/chud/oe/openembedded/recipes/quilt/quilt-native_0.46.bb'
failed
NOTE: build 200905211238: completed

Basically it says host address `www.angstrom-distribution.org' can
not be resolved. It is true in the sense that I got the error of "**
server can't find www.angstrom-distribution.org: NXDOMAIN" if
"nslookup www.angstrom-distribution.org"; but if I just type "
www.angstrom-distribution.org" in the browser (firefox) address bar,
the browser has no problem finding the right address and download the
"quilt-0.46.tar.gz"

I guess this has to do with my company firewall policy, it is not just
"www.angstrom-distribution.org", any external URL can not be resolved
in command line but the web browser can.

Anybody has experience dealing with this situation?

Thank you,

chuqdd

Hi Chuqdd,

I guess this has to do with my company firewall policy, it is not just
"www.angstrom-distribution.org", any external URL can not be resolved
in command line but the web browser can.

In order to use most Linux command line tools, you need to set the
http_proxy and ftp_proxy variables in your bash-environment. Search Google
for something like "wget proxy", "Open Embedded proxy" or similar.
Please find a quick starting point below.

Good luck
  Søren

Hi Chuqdd,

From: beagleboard@googlegroups.com [mailto:beagleboard@googlegroups.com]
On Behalf Of chuqdd
Sent: Friday, May 22, 2009 12:43 AM
To: Beagle Board
Subject: [beagleboard] Re: any suggestion on working behind company
firewall?

Hi, BB community,

I am working behind company's firewall, I did manage to get
openEmbedded via git. However, I got the following error in the
angstrom building process using OE:

Anybody has experience dealing with this situation?

On ubuntu 8.10 - I did the following to build Angstrom stable branch.

(1) Create/edit .wgetrc in HOME folder with below lines
http_proxy = <proxy.company.com>:<proxy port>
ftp_proxy = <proxy.company.com>:<proxy port>

(2) Create/edit .subversion/servers to add following lines
(To install subversion, sudo apt-get install subversion)
[global]
http-proxy-exceptions = *.company.com
http-proxy-host = <proxy.company.com>
http-proxy-port = <proxy port>
(3) Make GIT proxy-aware (To install git, sudo apt-get install git-core)

- sudo apt-get install corkscrew
- create a shell script say "git-proxy" in ~/bin folder as shown below
#!/bin/sh
exec corkscrew <proxy.company.com> <proxy port> $*

(4) Do export GIT_PROXY_COMMAND=~/bin/git-proxy in the shell were you do bitbake command

Soren and TK,

Thank you for the help.

I tried your suggestions, and found out only doing so in the /etc/
wgetrc will work.

chuqdd