LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hey

i am using ubuntu12.04. terminal has university proxy now i want to change it to non-proxy settings.chrome 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 address.now i want to change it to non-proxy settings. how to do that?

with regards
ajay
 
Old 12-24-2012, 09:01 AM   #2
alieblice
Member
 
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, 09:09 AM   #3
ajay06081993
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 09:10 AM.
 
Old 12-24-2012, 09:37 AM   #4
markush
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
Code:
export http_proxy=192.168.1.3
export https_proxy=192.168.1.3
export ftp_proxy=192.168.1.3
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"
Code:
# proxysettings
export http_proxy=192.168.1.3
export https_proxy=192.168.1.3
export ftp_proxy=192.168.1.3
then you can source it in your ~/.bashrc with the following command
Code:
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.

Markus
 
  


Reply



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 07:37 AM
LXer: Quick Tips: Change System Proxy Settings via Command Line in Ubuntu Precise LXer Syndicated Linux News 0 05-02-2012 11:31 AM
How to change proxy server settings? asiddique2u Linux - Newbie 8 09-21-2011 07:00 AM
Proxy settings under root terminal MichaelYoung Debian 6 03-27-2008 08:09 PM
How to change display settings Fedora 8 using terminal bowbalitic Linux - Newbie 1 03-05-2008 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

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