WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: export http_proxy - repository access  (Read 8524 times)

Offline helasz

  • Newbie
  • *
  • Posts: 36
export http_proxy - repository access
« on: August 11, 2009, 02:26:32 AM »
Hi All,

I do not manage to access repository through our proxy.
I did follow suggested ways in FAQ, forums, but did not succeed.

1) Where should I put
   export http_proxy="193.134.32.12:8008" 
in order to set it up automatically at boot?

I have tried /opt/eth0.sh (referenced from /opt/bootlocal.sh), but http_proxy environmental variable is empty (not set) after boot process completes.

2) If I set http_proxy manually I can ping the same ip (152.46.7.109)  appbrowser claims not being able to access

Am I missing something?

any suggestion would be appreciated,

helasz

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: export http_proxy - repository access
« Reply #1 on: August 11, 2009, 10:27:38 AM »
1. that's not what it's meant for - see below
2. it isn't set, therefore it isn't used


Just for appbrowser: execute it after the export statement, i.e.
Code: [Select]
export http_proxy=...
...
appbrowser
...

Per-user session setting: add the export statement to ~/.profile (for the default shell)

System-wide setting: add it to /etc/profile

Offline helasz

  • Newbie
  • *
  • Posts: 36
Re: export http_proxy - repository access
« Reply #2 on: August 12, 2009, 03:06:22 AM »
Thanks!

per user session setting is working fro me, for the system wide one I guess I should remaster TC.

Offline helasz

  • Newbie
  • *
  • Posts: 36
Re: export http_proxy - repository access
« Reply #3 on: August 12, 2009, 03:30:20 AM »
export http_proxy="ip:port" is not working for me. I had to add 'http://' at the beginning of the string:

export http_proxy="http://193.134.32.12:8008"

if this is a rule the relative howtos should be updated.

Offline yonib

  • Newbie
  • *
  • Posts: 5
Re: export http_proxy - repository access
« Reply #4 on: May 01, 2011, 01:34:59 AM »
I think it's best to add the 'export http_proxy=http://....' to the .profile file in the tc home directory.

regards