Results 1 to 2 of 2

Thread: Problems in terminal with proxy

  1. #1
    Join Date
    Jan 2010
    Beans
    15

    Problems in terminal with proxy

    I have configured the Gnome network Proxy to use my university's proxy. Everything works, including Google Chrome, Firefox, Synaptic, Dropbox. But I am facing problems with the terminal. There are things (like wget) which work and things (like apt-get) which do not. Is there any workaround for this?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2010
    Beans
    15

    Re: Problems in terminal with proxy

    Figured it out myself, or rather found it in the Ubuntu Help site. The solution is as follows:

    This method adds a two lines to your .bashrc file in your $HOME directory. This method is useful if you would like apt-get and other applications for instance wget, to use a http-proxy.


    gedit ~/.bashrc
    Add these lines to the bottom of your ~/.bashrc file (substitute your details for yourproxyaddress and proxyport)


    http_proxy=http://yourproxyaddress:proxyport
    export http_proxy
    Save the file. Close your terminal window and then open another terminal window or source the ~/.bashrc file:

    source ~/.bashrc
    Test your proxy with sudo apt-get update and whatever networking tool you desire.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •