Arvin Juan Posted April 26, 2007 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? Link to comment Share on other sites More sharing options...
ianw1974 Posted April 26, 2007 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. Link to comment Share on other sites More sharing options...
Arvin Juan Posted May 22, 2007 Author Share Posted May 22, 2007 After running the above commands I am now able to access the urpmi from the console. Thanks to ianw1974. Link to comment Share on other sites More sharing options...
ianw1974 Posted May 23, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now