Dr Thrall Posted September 26, 2003 Report Share Posted September 26, 2003 can ne body tell me where r the environment variables store. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted September 26, 2003 Report Share Posted September 26, 2003 That depends on the variable. What exactly do you need to do that requires an environment variable? Quote Link to comment Share on other sites More sharing options...
iphitus Posted September 26, 2003 Report Share Posted September 26, 2003 They can be in the /home/yourname/.bashrc James Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted September 26, 2003 Report Share Posted September 26, 2003 Or /etc/profile if this variable is for everyone. Quote Link to comment Share on other sites More sharing options...
Dr Thrall Posted September 26, 2003 Author Report Share Posted September 26, 2003 Or /etc/profile if this variable is for everyone. oh yea i need this thnx a lot, lemme c it Quote Link to comment Share on other sites More sharing options...
Gowator Posted September 26, 2003 Report Share Posted September 26, 2003 Thrall, Ill answer literally ... its not the answer your looking for but it should prove helpful with your next stage :D Where do env var's store... In memory of course ..... I know that sounds a stupid answer so bear with me. envvars have 'scope' You can set an envvar for a process and you can declare it private or global. If its global it will be inherited. So if you set it manually in a console and start another console it will inherit the envvar. etc. Setting the globally in /etc is a bit dangerous. Root has very few envvars installed for good reason. envvars are VERY powerful... you can alias ls to rm -rf / and delete your whole tree. Therefore be careful where you set them and try and understand their scope and inheritance. They can be set individually for a command interpreter like csh/sh/bash All of these use files in ~ so it depends on the login shell for the user. By default mandrake uses bash and these are ~/.bash_profile etc. You should man .bashprofile and see exactly where you want to set them... You can set them in any script For instance you could had a xhost + 192.168.10.42 to startx and then your X desktop would inherit this (I think....) Quote Link to comment Share on other sites More sharing options...
Dr Thrall Posted September 26, 2003 Author Report Share Posted September 26, 2003 yea i agree that in /etc variable setting is very dangerous. i required it cuz i want to define QTDIR, PATH etc for all users on my machine. as i install 3.2.1 on Mandrake 9.1 btw can u help me ... i install QT 3.2.1 & delete Old one, after that KDE failed to run. How to fix it, i search but can't find nething Quote Link to comment Share on other sites More sharing options...
Gowator Posted September 27, 2003 Report Share Posted September 27, 2003 You might need to do it in the other order. Make sure X is stopped to be safe :D Try reinstall QT in case some unchanged files were deleted ?? Quote Link to comment Share on other sites More sharing options...
Dr Thrall Posted September 27, 2003 Author Report Share Posted September 27, 2003 hmmm nehow i 'm trying to downlaod 9.2 RC2 ... i'll try it on it ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.