Arvin Juan Posted April 26, 2007 Report Share Posted April 26, 2007 I am using Mandriva 2007 and I am connected to a LAN thru a proxy. Using Mozilla Firefox, I can connect to the Internet but using the console, I am not able to. How do I configure this? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted April 26, 2007 Report Share Posted April 26, 2007 You have to set two variables: export http_proxy=192.168.1.1:3128 export ftp_proxy=192.168.1.1:3128 this is an example, replace your IP address, and the port I used is for squid proxy, so change this for the port that you need to use. You would need to add this to /etc/bashrc I think for it to be enabled each time you restart the computer. Quote Link to comment Share on other sites More sharing options...
Arvin Juan Posted May 22, 2007 Author Report Share Posted May 22, 2007 After running the above commands I am now able to access the urpmi from the console. Thanks to ianw1974. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 23, 2007 Report Share Posted May 23, 2007 If you want these to be active each time you login to your system, add them to /etc/bashrc file, I usually put them somewhere at the top. I know already mentioned it, but just in case you didn't add them, it's worth doing to save you retyping them. If I don't set permanently, you can use: history | grep -i proxy and it will filter all commands used for proxy, and then you can copy and paste them again in the terminal window to use them without having to retype. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.