LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-08-2005, 02:12 AM   #1
dwight
LQ Newbie
 
Registered: Sep 2004
Location: Estonia
Distribution: Arch
Posts: 14

Rep: Reputation: 0
debian and environment variables


I've been using Debian for about a week now and I just don't get this.. How do you set environmental variables so that they stick? Right now everytime I open a new tab in Konsole i have to manually enter
Code:
source /etc/profile
Ok. Isn't very difficult, but it's annoying. So, does anyone know which into which magic file do i have to enter my variables so that they'd stick? On thing though, if I open a new session with ctrl+alt+"some number" then the variables are correct. But i need them in Konsole too.
 
Old 08-08-2005, 02:35 AM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
For non-login shells (such as Konsole) you should use .bashrc in your home directory.
 
Old 08-08-2005, 05:22 AM   #3
dwight
LQ Newbie
 
Registered: Sep 2004
Location: Estonia
Distribution: Arch
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you. That took care of it. For some reason i had added all the stuff into .bash_profile. Read from someplace that this was where i needed to put my definitions.
 
  


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
environment variables nasht Linux - General 3 08-11-2005 02:12 PM
environment variables Prakhardeep Linux - Software 3 10-06-2004 03:30 AM
environment variables moeminhtun Linux - General 4 01-15-2003 09:50 AM
Environment variables kdnt Linux - Newbie 11 11-01-2002 08:19 AM
environment variables. jISV Linux - General 0 04-05-2002 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:51 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