Jump to content

some stuff in /etc/rc.local doesnt run! [solved]


ERD
 Share

Recommended Posts

either this is a bug in mandiva, or i really havent gotten the hang of linux yet...

 

ibe been told that if i want something to get done at startup (globaly - for all users), i should put it in the file /etc/rc.local, this is "confirmed" by the file itself, cause if i open it it sais:

 

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff here if you dont
# want to do the full Sys V style init stuff.

 

the deal is this:

ibe tried experimenting with this file adding this to it:

 

touch /home/erd/madeby.rclocal

 

and it works as expected, after i reboot the system, i got a file madeby.rclocal in my home dir.

 

however... if i add this instead:

 

set SOMEVAR=/usr/local/someapp/someapp
export SOMEVAR

 

or...

 

export SOMEVAR=/usr/local/someapp/someapp

 

 

after i reboot the system, if i type

echo $SOMEVAR

i get absolutely NOTHING!

 

this brings me back to a question ibe been asking for a while,

how in Gods name, can i globally define an eviroment variable???

 

BTW: the "default" browser defining system doesnt work if i installed firefox myself, even after setting the default browser to point to it in gnome control panel. (for example, the menu item to run swat does not work at all), so i would really like to completely get rid of this www-browser stuff and simply point BROWSER to firefox ALLWAYS, regardless of anything else. but i also cant get this done.

 

:(

 

thanks!

Edited by ERD
Link to comment
Share on other sites

Thanks for your answer

 

 

global environment variables can go in /etc/bashrc or /etc/profile.d

 

/etc/bashrc sais:

#System wide functions and aliases
#Environment stuff goes in /etc/profile

 

so i went to etc/profile and added my stuff at the end.

 

Works fine. (solved) Thanks a Lot! :)

 

use gconf-editor to define the default browser

 

yes, but, what happens when i use blackbox or windowmaker or whatever?

is there a way to tell mandrake to ALLWAYS, no matter what desktop env im using, *ALLWAYS* use firefox as the default browser? or do i have to configure each desktop env. to use firefox?

 

Once again, Thank you for your answer (and your patience for this newby :) )

Link to comment
Share on other sites

yes, but, what happens when i use blackbox or windowmaker or whatever?

is there a way to tell mandrake to ALLWAYS, no matter what desktop env im using, *ALLWAYS* use firefox as the default browser? or do i have to configure each desktop env. to use firefox?

 

ibe just answered my own question.

 

ibe added this to /etc/profile:

 

BROWSER = /usr/local/firefox/firefox
export BROWSER

 

now typing echo $BROWSER gives me what i expect:

/usr/local/firefox/firefox

 

 

thanks again for your help

 

:thanks:

Edited by ERD
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...