I install custom software in /usr/local/lib
. How do I set the PATH and LD_LIBRARY_PATH in CentOS 6 system-wide to use /usr/local/lib
. I realize there may be more than one way. What's the simplest and most standard way?
Is there a more direct way to the environmental variables GUI then...
- Right click 'My Computer' and select 'Properties'.
- Click 'Advanced System Settings' link.
- Click 'Advanced' tab.
- Click 'Environment Variables...' button.
Can I make a shortcut to it?
I ran my crontab job 0 2 */1 * * /aScript >aLog.log 2>&1
as a 'root' user, and however I found the env is different from env of the 'root' user, and therefore experiencing a different runtime behavior of my scripts.
An attempt fix was placing export commands in rc.d files, but it still didn't show up! I end up placing export commands in the aScript itself.
My question is that is there a better way to approach this problem? and why env is missing even though it is from the same user 'root' ? (I modifies crontab by running 'crontab -e' from the root)
On my local terminal, I have TERM=konsole-256color, but not all remote machine I connect to have this definition.
Is it possible to make ssh change the TERM on remote machine? Without changing .bash* scripts on remote machine, just by changing configuration on my local desktop?
I would like to add an Environment variable to a Windows machine (desktop or server) and be able to use it without rebooting that machine.
Say you have a production server which hosts a variety of apps and a new app needs a particular Environment variable to run. You do not want to reboot it while users are connected to your other apps. What choices do you have? I don't like the wait-until-a-good-time-to-reboot option. There must be a better way. What am I missing?