View Single Post
  #5  
Old 15th October 2012, 14:12
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 416
Thanks: 13
Thanked 5 Times in 5 Posts
Default

Just in case that website on the link someday goes offline, I'll post here a solution:


Quote:
Set http_proxy shell variable

Type the following command to set proxy server:

$ export http_proxy=http://server-iport/
$ export http_proxy=http://127.0.0.1:3128/
$ export http_proxy=http://proxy-server.mycorp.com:3128/
How do I setup proxy variable for all users?

To setup the proxy environment variable as a global variable, open /etc/profile file:
# vi /etc/profile
Add the following information:
export http_proxy=http://proxy-server.mycorp.com:3128/
Save and close the file.
So here is what I added in /etc/profile

Code:
export http_proxy=http://147.91.173.31:8080/
export https_proxy=http://147.91.173.31:8080/
export ftp_proxy=http://147.91.173.31:8080/
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote