LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2006, 07:58 PM   #1
nitrohuffer2001
Member
 
Registered: Apr 2006
Posts: 165

Rep: Reputation: 19
Export proxy settings


Hey guys sorry in advance for the noob question but I get so sick of typing export http_proxy=http://my.proxy.net:3128 every freaking time I login. Where can I put this so it is always there?

Thanks in advance.
 
Old 10-18-2006, 03:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Export the variable in your ~/.bash_profile.
 
Old 10-18-2006, 03:50 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
There are several files which are automatically read when you start a shell.

From the bash manual page (FILES section):

Code:
       /etc/profile
              The systemwide initialization file, executed for login shells
       ~/.bash_profile
              The personal initialization file, executed for login shells
       ~/.bashrc
              The individual per-interactive-shell startup file
       ~/.bash_logout
              The individual login shell cleanup file, executed when a login shell exits
Note that you will have to re-start you X session for environment variables set in these files to be available to programs you start from whatever X launcher you use (e.g. the K menu or the gnome panel). For programs started from a shell, you only need to start a new shell.

Last edited by matthewg42; 10-18-2006 at 03:52 AM.
 
Old 10-18-2006, 07:34 AM   #4
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
In FC5 System -> Preferences -> Network
& type in http, ftp proxy etc
I am sure something like this is there in your distro also
 
Old 10-18-2006, 11:05 AM   #5
nitrohuffer2001
Member
 
Registered: Apr 2006
Posts: 165

Original Poster
Rep: Reputation: 19
/etc/porfile

Added the export to the /etc/profile filke and everything works great. Thanks!

 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CenterICQ proxy settings deggial Slackware 3 03-30-2006 04:41 PM
Export Kmail settings Dankles Linux - General 1 01-03-2006 09:13 PM
Konquerer proxy settings hurstctj Linux - Newbie 5 12-17-2004 02:59 AM
proxy settings for apt? h/w Linux - Software 0 09-26-2003 09:51 AM
How to find proxy settings? JasonW Linux - Networking 2 02-03-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:16 PM.

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