Related Posts Plugin for WordPress, Blogger...

Tuesday, December 21, 2010

Proxy settings in Linux Ubuntu and Debian for apt-get wget

A proxy server, also known as a "proxy" or "application level gateway", is a computer that acts as a gateway between a local network (e.g., all the computers at one company or in one building) and a larger-scale network such as the Internet. Proxy servers provide increased performance and security. In some cases, they monitor employees' use of outside resources.


One can do proxy settings graphically from System --> Preferences --> Proxy Settings
and apply "System wide" But if there is an authenticated proxy, It was unable to apply properly. That's why it is better to apply manually all the settings.

Proxy settings has to be done in 3 areas...

(Don't Use System --> Preferences --> Network Proxy after making the following settings. )

1)

Open a terminal and typein the following command.


gksudo gedit /etc/apt/apt.conf




Enter the following details as it is, then save and close.
Here user ---> is proxy user name
password ---> is your password for network access.

Acquire::http::Proxy "http://user_name:password@10.0.0.21:3128";
Acquire::ftp::Proxy "http://user_name:password@10.0.0.21:3128";
Acquire::https::Proxy "http://user_name:password@10.0.0.21:3128";

http://i55.tinypic.com/8yi3j9.png


2)



After this enter:

gksudo gedit /etc/profile.d/proxy.sh



Enter the following things and save and close.

for example:

export http_proxy=http://username:password@10.0.0.21:3128
export ftp_proxy=http://username:password@10.0.0.21:3128
export all_proxy=http://username:password@10.0.0.21:3128
export https_proxy=http://username:password@10.0.0.21:3128
export no_proxy=localhost,127.0.0.1

http://i54.tinypic.com/in4nye.png


3)


Then enter:

gksudo gedit /etc/wgetrc



The file will look like this...

http://i55.tinypic.com/34xgpd0.png


Now enter the following things at the end of the file and save and close.

for example:

http_proxy=http://username:password@10.0.0.21:3128
ftp_proxy=http://username:password@10.0.0.21:3128
https_proxy=http://username:password@10.0.0.21:3128
no_proxy=localhost,127.0.0.1

http://i53.tinypic.com/1hctc8.png

Now one need to edit the software sources list

using the following command

gksudo gedit /etc/apt/sources.list



The file will look like this.



http://i52.tinypic.com/2wgyflj.png

Search for #deb and #deb-src and delete the # symbol before deb
Don't delete the # symbol before deb cdrom


http://i52.tinypic.com/v5h7wi.png

The final file should look like this. You may need to remove two times # symbol. Now save it and close.


http://i56.tinypic.com/hv77mq.png

NOW RESTART THE SYSTEM..

Now one can install "flashplugin-nonfree" directly from System --> Administration --> Synaptic.


For details, follow the instructions in the post:


under the head: Installing new softwares :-


Otherwise open the terminal and enter the following commands:


sudo apt-get update
sudo apt-get install flashplugin-nonfree

Cheers...


Is this post useful?
Working well!
Not working...
Needs some modifications..

  
pollcode.com free polls

24 comments:

  1. fantastic man, thanks; works for crunchbang!

    ReplyDelete
  2. How does one escape special characters like "@" and ":" in the username and password?

    ReplyDelete
    Replies
    1. Ah - nevermind. Found the answer! Use URL encoding, e.g. "@" => "%40".

      Delete
  3. It is truly a great and helpful piece of information and nice collection.
    it support fort lauderdale

    ReplyDelete
  4. Great tips on how i can conquer my computer. these are like life saving computer hacks! so easy and simple to understand. thanks for sharing and i love your content.

    ReplyDelete
  5. This post helped me to know about the illusion of control. I think it is the tendency for people to overrate their ability to control different events. It occurs when someone feels a sense of control over outcomes that they demonstrably do not influencejogos friv gratis
    Jogos online
    jogos 4 school
    abcya games 4 school

    ReplyDelete
  6. Thank you for posting this blog.Buy Printer Accessories online at low prices in India at Partsbaba.com. We are the Best Online Store For Printer Parts in India. We Offer -
    Fuser film sleeve
    Formatter cards
    Plotter parts
    License free walkie talkie

    ReplyDelete
  7. great info ...
    I like always editing work on monitor if you find
    best monitor for video editing then visit..

    ReplyDelete
  8. i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. To find top account on instagram, please check link storiesig

    ReplyDelete
  9. I'm truly enjoying the design and layout of your website. It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Excellent work!apple service provider berlin

    ReplyDelete
  10. Having the right betting strategies doesn’t guarantee a win, but it increases your chances of winning. This is why you need to pick out the right betting site.
    https://agustinwmartinez4664.amebaownd.com/posts/14523254

    ReplyDelete
  11. The mobile sector of the online gambling world has grown over time to the point that it has overtaken computer play as the most popular way to gamble. This mirrors a similar growth of mobile usage in other areas, which has primarily come thanks to the proliferation of mobile-friendly content. Now people from all over the world use mobile gambling sites and real money gambling apps for betting and gaming on the go.
    https://www.methodspace.com/members/cricketbetting/profile/

    ReplyDelete
  12. Cricket betting india only provides the most up-to-date information on online betting in India, online cricket betting, and other related topics. Get the most up-to-date information on today's headlines, as well as cricket betting tips.
    https://gervaisjervis9.wixsite.com/tooltech/post/betting-advice-and-cricket-match-forecasts-for-cricket

    ReplyDelete
  13. I was very happy to seek out this internet-site.I wished to thanks for your time for this excellent read!! I definitely having fun with every little little bit of it and I have you bookmarked to check out new stuff you weblog post.web developer berlin

    ReplyDelete
  14. Why are you looking further? When cricket betting india has made it very simpler for you by updating you with all the recent cricket betting tips and cricket betting terminologies. Stop here and scroll cricket betting india to find the best cricket betting tips for free.
    https://my-blogging-channel-15.webself.net/blog/2021/03/11/understandin-the-winning-on-cricket-betting-sites-in-india

    ReplyDelete
  15. Wow, exceptional and fantastic post....this post is very impressive..keep writing like this in our blog..thank you for this post and keep it up.

    https://linktr.ee/bestbettingIndia

    ReplyDelete
  16. betvictor live chat is an online betting website that offers a variety of guidelines and free betting tips that prove to be very useful for people just entering betting. It is among the top websites for betting in India.
    https://www.hashatit.com/654067

    ReplyDelete
  17. This information was quite beneficial. The courteous posting impressed me. This is a fantastic post. Thank you for this post, and please continue. https://www.tripadvisor.com.my/Profile/dfdc2021

    ReplyDelete
  18. Hey There. I found your blog using msn. This is a very well written article. I will make sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will certainly comeback. mac neukölln berlin

    ReplyDelete
  19. This information was quite useful. I was impressed by the respectful posting. This is an excellent post. Thank you for this post, and please keep them coming. https://community.windy.com/user/emailmarketing

    ReplyDelete
  20. Great Post! Thanks for sharing. You may get in touch with Techy to get same day repair services & lifetime warranty on all parts & labor associated with the preceding repair for your Computer.

    ReplyDelete
  21. This is my first time visiting here. In this forum, I discovered many interesting issues, and I would like to propose that you continue to write such intelligent writings. Thank you kindly. You did an outstanding job. I thoroughly enjoyed reading your blog. Outstanding effort. https://kasperskyclub.com/amazingtour#post.116963

    ReplyDelete
  22. Well, our professional CPA in Vancouver looks over your balance sheets, payroll systems deeply for getting understand your current scenario. After having deep financial insights into your business, our financial advisors will give the best advice that will in return help your firm grow.
    http://86x.org/home.php?mod=space&uid=464464

    ReplyDelete
  23. while there are many financing options for first time buyers, considering all of them is a complex issue and researching different financing methods will take much time for first time buyers. Therefore, using the knowledge and experience of mortgage brokers who have experience in providing suitable mortgages for first time buyers can greatly save their time, money and energy.
    https://www.wellarticles.com/various-development-finance-options-in-the-uk/

    ReplyDelete