If you are under a proxy server, and want to access net using http or ftp through Terminal,you will need to export http_proxy/ftp_proxy variables.
For a HTTP proxy, simply run the following command in a terminal
- export http_proxy='http://proxy_username:password@proxy_ip:port "
- export https_proxy=https://proxy_username:password@proxy_ip:port
- export ftp_proxy=ftp://proxy_username:password@proxy_ip:port
- " export https_proxy=https://proxy_ip:port "
- " sudo gedit /etc/apt/apt.conf "
- Acquire::http::proxy "http://proxy_username:password@proxy_ip:port ";
- Acquire::https::proxy "https://proxy_username:password@proxy_ip:port" ;
- Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port ";
Enjoy !!!!
-sudo gedit /etc/apt/apt/conf
ReplyDelete+sudo gedit /etc/apt/apt.conf
thanks Павел Гаврилов !!!
DeleteNice it worked for me
ReplyDeleteHow to add proxy_username like: abc\am2
ReplyDelete- abc is domain
- am2 is username
How to set SOCKS 5 proxy?
ReplyDeleteWorked for me. Thank you so much for the insight.
ReplyDeletehey how to disable proxy from terminal ?
ReplyDeleteClear the apt.conf file. Remove all the added settings.
Deletethanks
ReplyDeletethanks dude ! i was becoming too much irritated because of this problem ;now fixed
ReplyDeleteI m getting excited to get this way to access any blocked site. Now you can get by using this link
ReplyDeleteReddit UK proxy
Hi
ReplyDeleteI seem to have formatted the C-drive while creating a partition for installing windows. Could you please help me to recover it. It has my entire data and unfortunately i do not even the backup.
Regards
Karishma
If you have formatted your C drive, then there is no way to recover it. From next time, keep all your important data on cloud (Dropbox/SkyDrive).
DeleteI will recommend you very easy way to access any blocked site. It does not required any installation. Just click on this link and any block site will be open like a charm
ReplyDeleteReddit UK proxy
Dear Rahul Jain, thanks for your post. But I think the content of /etc/apt/apt.conf should be
ReplyDeleteAcquire::http::proxy "http://proxy_username:password@proxy_ip:port ";
Acquire::https::proxy "https://proxy_username:password@proxy_ip:port ;
Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port ";
instead of
" Acquire::http::proxy "http://proxy_username:password@proxy_ip:port ";
" Acquire::https::proxy "https://proxy_username:password@proxy_ip:port ;
" Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port ";
You have given and extra " in the beginning of each line, which will give the error "E: Syntax error /etc/apt/apt.conf:3: Extra junk at end of file". Thanks
Thanks Dtypist for the correction!!
DeleteIn my post above there is a " missing in the end of second line
ReplyDeleteHallo the quotation mark before Acquire has to be removed. And then it will work fine.
ReplyDeletethank you anyway.
Great! It works for me. Thanks a lot!
ReplyDeleteWhat a nice blog...I am really very impressed to read this..Thanks to admin for posting this nice blog....WOW!!!!!
ReplyDeletehttp://websiteproxy.co.uk/monova.org.html
But how to again remove it
ReplyDeleteI'm really impressed with your writing skills and also with the format on your weblog.
ReplyDeleteaccess torrentHound in UK
Proxy sites help us in a lot of ways in our online time. The mainly significant is that a proxy site helps us to unblock or most favorite social site.
ReplyDeleteMp3Raid UK proxy