(Applicable to all the fedora releases ...,Fedora 14, 15, 16 , 17, ...)
Hey, this is a simple setting but has very important role to play in YUM and other internet based software used in the terminal.
If you are behind a proxy (with or without authentication) then this proxy setting in the /etc/bashrc file will help you
$ tail /etc/bashrc
unset i
unset pathmunge
fi
# vim:ts=4:sw=4
export http_proxy=http://username:password@172.31.1.6:8080/
export ftp_proxy=http://username:password@172.31.1.6:8080/
export https_proxy=http://username:password@172.31.1.6:8080/
The last three lines set the proxy server address and sends username password to the server for automated authentication. Append the three lines at the end of the /etc/bashrc file. You will need root permission for editing the file.
Once done, viola! Use every internet based bash program easily.
Hey, this is a simple setting but has very important role to play in YUM and other internet based software used in the terminal.
If you are behind a proxy (with or without authentication) then this proxy setting in the /etc/bashrc file will help you
$ tail /etc/bashrc
unset i
unset pathmunge
fi
# vim:ts=4:sw=4
export http_proxy=http://username:password@172.31.1.6:8080/
export ftp_proxy=http://username:password@172.31.1.6:8080/
export https_proxy=http://username:password@172.31.1.6:8080/
The last three lines set the proxy server address and sends username password to the server for automated authentication. Append the three lines at the end of the /etc/bashrc file. You will need root permission for editing the file.
Once done, viola! Use every internet based bash program easily.
Thank you for the information, it looks like a solution to my problem, which is trying to get "yum install ..." to work in a newly installed Fedora system. But the advice in the file /etc/bashrc is not to edit the file, but to create a shell to do so. I am no expert in this are, so, please, how do I find "username:password" to use in "export http_proxy=http://username:password@172.31.1.6:8080/", and have you any advice on doing it with a shell script, and do those numbers apply here too?
ReplyDeleteNeed to execute "exec bash" command to refresh the changes. Am i right?
ReplyDeleteThe information on this blog is very useful and very interesting. If someone needs to know about the just click. access Monova in UK
ReplyDeleteTe Amo!
ReplyDelete