View previous topic :: View next topic |
Author |
Message |
xilokawa n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/51010758540fbca050373b.jpg)
Joined: 19 Jul 2004 Posts: 7
|
Posted: Mon Jul 19, 2004 1:22 pm Post subject: Automatic Proxy variable [SOLVED] |
|
|
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!! ![Crying or Very sad :cry:](images/smiles/icon_cry.gif) _________________ I can resist everithing... except the temptation!! ![Very Happy :D](images/smiles/icon_biggrin.gif)
Last edited by xilokawa on Mon Jul 19, 2004 2:39 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
spudicus Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_darth_vader.gif)
Joined: 05 Dec 2002 Posts: 177 Location: Geraldton, Australia
|
Posted: Mon Jul 19, 2004 1:47 pm Post subject: |
|
|
You could add it to /etc/profile, then run env-update |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xilokawa n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/51010758540fbca050373b.jpg)
Joined: 19 Jul 2004 Posts: 7
|
Posted: Mon Jul 19, 2004 2:42 pm Post subject: it worked...but |
|
|
Okya!! It worked, but the file to edit is /etc/profile.env ant then make a _________________ I can resist everithing... except the temptation!! ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andyknownasabu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/204683489642a073986f3f4.jpg)
Joined: 06 Feb 2003 Posts: 281 Location: Zurich, Switzerland
|
Posted: Mon Jul 19, 2004 3:52 pm Post subject: Re: Automatic Proxy variable [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
spudicus Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_darth_vader.gif)
Joined: 05 Dec 2002 Posts: 177 Location: Geraldton, Australia
|
Posted: Mon Jul 19, 2004 5:02 pm Post subject: Re: it worked...but |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|