LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2007, 06:29 PM   #1
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
making shell "export" variable permanent forever: user/system


hi all,

if you are running opensuse 10.3 and opera or netbeans, then u know they don't work without this option:

export LIBXCB_ALLOW_SLOPPY_LOCK=1

because java attempts to sloppy lock...


does anybody know a way so that this option is applied to me as a user, and/or to the entire desktop enviornment (preferably including all terminals i open.)

Thanks everybody.
 
Old 10-29-2007, 08:04 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Put the export command in your ~/.bash_profile (or .bashrc, I don't know which SuSE uses). Every time you log in, it will export it.
 
Old 10-29-2007, 08:57 PM   #3
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Original Poster
Rep: Reputation: 30
thank you.

btw, if you're wondering, suse uses ~/.bashrc (since i see that...)

Last edited by lambchops468; 10-29-2007 at 08:58 PM.
 
Old 05-21-2009, 05:31 AM   #4
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Rep: Reputation: 32
You can also put in :
/etc/init.rd/rc
 
Old 10-13-2009, 05:37 AM   #5
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
if you want to change it for all users, edit: /etc/bash.bashrc
(as root)
 
  


Reply

Tags
export, permanent


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
"Broken" envirnment variable (MANPATH) and "/etc/profile.d" question. ErV Slackware 3 03-20-2007 09:42 AM
Shell Variable available within Samba "print command" thibert Linux - Networking 0 12-12-2005 01:02 PM
Making system "bad shutdown" ready Red Squirrel Debian 6 07-31-2005 12:13 PM
shell scripting - using ${variable:=","} Steve Riley Linux - General 7 02-08-2005 05:07 AM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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