How To Use Proxy Server To Access Internet via Shell Prompt ?
If you are accessing the text based internet in linux especially when you are accessing the application or the web configured behind proxy server(squid specifically), you might not be able to get the complete functionality / application working.
For enabling the access you will have to enable the environment variable called http_proxy on your server / machine. This variable enables the access to the application or the text based sessions via the proxy server. You will just need to know the hostname (or IP address) of the proxy server and the proxy port number of the proxy server.
You can enable the variable by using the following command to set proxy server.
[root@server]# export http_proxy=http://server-ip:port/
If you are using an IP address for enabling the variable you can use the following command:
[root@server]# export http_proxy=http://10.0.0.1:3128/
If you are using hostname for the proxy server you can use the following command:
[root@server]# export http_proxy=http://proxy_server_domainname:3128/
You are now all set to go!