Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Abominus

Linux startup configuration files for newbie

This topic is 5933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

what are the configuration files that are accessed when linux boots right up till the user is logged in? is there an equivalent of an "autoexec.bat" script of file that is automatically run when the system boots/user logs in? Im running redhat 7.1 btw. Thanks. Edited by - Abominus on February 24, 2002 8:32:59 AM

Share this post


Link to post
Share on other sites
Advertisement
Depending on what runlevel it is, different files are run. You should have a directory of symbolic links. read man init.

If you want to run a file just for when your user starts up, I think redhat has .bashrc in your home directory. At the end of it just put the full path to your program.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I am using slackware (which isn''t SYS V) but i use this file /etc/rc.d/rc.local. You may or may not have that file.

Share this post


Link to post
Share on other sites
quote:
Original post by Ravuya
.profile in a home directory can also be edited to allow echo''ing on login and execution of scripts.


Thanks. But where if the .profile for root kept? And .profile is user specific. Is there another file which is global to the entire machine. What I mean is a startup file which is run regardless of which user logs in.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
/etc/profile
/etc/rc.local

You probably don''t want to touch the latter, and messing with the former can lead to a nice mess too, so be careful with what you''re trying to do.

Share this post


Link to post
Share on other sites
Ok, a couple of clarifications seem in order.

/etc/profile: run right after the user enters their username and password. Can be overrided by a (homedir)/.profile depending on system configuration.

/root/.profile: the location of the .profile file for root.

(note that you have to use an "ls -a" command to see files that begin with a ".".

/etc/rc.d/rc.local: run when the system boots up. Not that scary.

/etc/rc.d/rc#.d: (replace # with run-level number). Run on system boot into appropriate run level. Kind of messy.

Each have different uses.

They''re coming for you!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!