Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-24-2012, 09:33 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 20

Rep: Reputation: Disabled
how to change proxy settings through terminal in ubuntu12.04


i am using ubuntu12.04. terminal has university proxy now i want to change it to non-proxy and firefox is working fine and from terminal i want to download sudo apt-get install youtube-dl and it is showing that connecting to some proxy i want to change it to non-proxy settings. how to do that?

with regards
Old 12-24-2012, 10:01 AM   #2
Registered: Jul 2011
Posts: 80

Rep: Reputation: Disabled
check here :
system setting > network > network proxy > method

put method on "None" if it was on auto or manual
Old 12-24-2012, 10:09 AM   #3
LQ Newbie
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
thank it works for me. Is terminal proxy settings affect from network proxy if yes then i have to set proxy settings for terminal using this method.

Last edited by ajay06081993; 12-24-2012 at 10:10 AM.
Old 12-24-2012, 10:37 AM   #4
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
In general (independent of the distribution) in a terminal you could use the following commands
export http_proxy=
export https_proxy=
export ftp_proxy=
of course you will have to use the real IP-address of the university proxy. Note that this setting is only valid for the shell where the command was executed.
When you want to use the settings for your whole session, you could put the settings in a script which must be sourced, not executed create a script named (for example) "proxysettings"
# proxysettings
export http_proxy=
export https_proxy=
export ftp_proxy=
then you can source it in your ~/.bashrc with the following command
source proxysettings
The disadvantage is that this would always be done when you login, not only at university. If you only need the proxy in a terminal for downloading, you can source the script on the commandline with the same command.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] not able to install vlc through terminal in ubuntu12.04 ajay06081993 Linux - Newbie 8 11-29-2012 08:37 AM
LXer: Quick Tips: Change System Proxy Settings via Command Line in Ubuntu Precise LXer Syndicated Linux News 0 05-02-2012 12:31 PM
How to change proxy server settings? asiddique2u Linux - Newbie 8 09-21-2011 08:00 AM
Proxy settings under root terminal MichaelYoung Debian 6 03-27-2008 09:09 PM
How to change display settings Fedora 8 using terminal bowbalitic Linux - Newbie 1 03-05-2008 08:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration