Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic Proxy variable [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xilokawa
n00b
n00b


Joined: 19 Jul 2004
Posts: 7

PostPosted: Mon Jul 19, 2004 1:22 pm    Post subject: Automatic Proxy variable [SOLVED] Reply with quote

Hi,

I've just installed Gentoo in 7 or 8 computers but there's a thing than I cannot resolve.

When I open a new console, i always have to define the proxy with :
Code:

export http_proxy="x.x.x.x:xxxx"
export ftp_proxy="x.x.x.x:xxxx"
export rsync_proxy="x.x.x.x:xxxx"


One mate told me than i should define this variables on .bash_profile file or .bash, but it does not work.

Please help!! i will suicide myself if i have to write it again!! :cry: :cry:
_________________
I can resist everithing... except the temptation!! :D


Last edited by xilokawa on Mon Jul 19, 2004 2:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
spudicus
Apprentice
Apprentice


Joined: 05 Dec 2002
Posts: 177
Location: Geraldton, Australia

PostPosted: Mon Jul 19, 2004 1:47 pm    Post subject: Reply with quote

You could add it to /etc/profile, then run env-update
Back to top
View user's profile Send private message
xilokawa
n00b
n00b


Joined: 19 Jul 2004
Posts: 7

PostPosted: Mon Jul 19, 2004 2:42 pm    Post subject: it worked...but Reply with quote

Okya!! It worked, but the file to edit is /etc/profile.env ant then make a
Code:

env-update

_________________
I can resist everithing... except the temptation!! :D
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Mon Jul 19, 2004 3:52 pm    Post subject: Re: Automatic Proxy variable [SOLVED] Reply with quote

xilokawa wrote:
One mate told me than i should define this variables on .bash_profile file or .bash, but it does not work.

Just for the sake of completeness: The right place would have been .bashrc instead of .bash_profile. The latter is sourced by bash when you log in interactively, the former with non-interactive logins (e.g. by opening a new xterm).
Back to top
View user's profile Send private message
spudicus
Apprentice
Apprentice


Joined: 05 Dec 2002
Posts: 177
Location: Geraldton, Australia

PostPosted: Mon Jul 19, 2004 5:02 pm    Post subject: Re: it worked...but Reply with quote

xilokawa wrote:
Okya!! It worked, but the file to edit is /etc/profile.env

You obviously didn't read the comment at the top of profile.env i.e.
Code:
# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum