LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2006, 02:15 AM   #1
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Rep: Reputation: 15
commands on booting linux


Hi, when logging in some user in his home directory is file ".profile" where some commands run when he loggin.
My question is where in linux put some commands when booting linux (not to user)?
 
Old 06-27-2006, 02:19 AM   #2
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
The file /etc/profile is run for all the users. so if you want to put some commands that should be run for all the users when they login, /etc/profile is the place.

p.s: I assume I am understanding your question here. Englisch is horeeble!
 
Old 06-27-2006, 02:27 AM   #3
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Original Poster
Rep: Reputation: 15
No, i want what these commands can run "only one time" and before logging (on linux boot time)
I need when users logging in, some processes would be already running.

ps: I know
 
Old 06-27-2006, 02:43 AM   #4
openbsd
LQ Newbie
 
Registered: May 2006
Distribution: Walnut Creek-Slackware 2.0 , August 1994
Posts: 8

Rep: Reputation: 0
Slackware, look in the /etc/rc.d directory (rc- runlevel control)


type "runlevel" to get your current.
"telinit" 1 to switch runlevel, 1 only if you have physical access to the console.
Runlevel 1 is single user mode and it may turn off networking depending on your configurations.

www slackbook org/html/book.html#SYSTEM-CONFIGURATION-RCD

To enable a script in the directory, all you need to do is add the execute permissions to it with the chmod u+x command

Last edited by openbsd; 06-27-2006 at 02:58 AM.
 
Old 06-27-2006, 02:45 AM   #5
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
then its the file /etc/rc.d/rc.local. put the command there and the system will run it once after it boots.
 
  


Reply


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
Linux commands... MikeyI258 Linux - Newbie 1 06-22-2006 03:56 PM
booting Linux from an image that lost booting capabilities tgr Linux - Software 1 03-05-2006 12:28 PM
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 01:45 AM
linux commands kamotekid Linux - Newbie 3 07-07-2002 12:11 PM
linux commands kamotekid Linux - General 2 06-24-2002 04:30 AM


All times are GMT -5. The time now is 11:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration