LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-06-2004, 12:16 AM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Regarding rc.local


I know that this file is to auto start whatever things you entered in the script after all other init has been started. But I'm just wondering if a particular distro don't have this file, can it be created somewhere?
 
Old 10-06-2004, 12:26 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The question is not whether you can create the
file somewhere, the question is whether any other
process is going to look for it.

Basically you'll need to verify that somewhere
along the "chain of command" (starting from
init) something is going to be started that will
be executed last, and have a call to rc.local
in it ...

On your Slack-installation (if you still have it)
rc.M will call rc.local. You can easily check on
other distro's by running
grep -R 'rc.local' /etc/*


Cheers,
Tink



Cheers,
Tink
 
Old 10-06-2004, 02:42 AM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Gentoo uses /etc/conf.d/local.start
 
Old 10-06-2004, 08:44 AM   #4
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
suse uses boot.local
 
Old 10-06-2004, 10:46 PM   #5
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Is there any distro that doesn't have this type of file?
 
Old 10-11-2004, 12:56 AM   #6
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by amfoster
suse uses boot.local
hmm.. is there a .bashrc or .bash_profile under the user directory in suse? I can't find it.
 
Old 10-11-2004, 02:45 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
If they are not there, simply create them.

Code:
vi .bash_profile
--Ian
 
Old 10-11-2004, 03:24 AM   #8
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Actually what I'm looking for is after the user login at the GUI (Runlevel 5), the script will execute.

I'm wondering if .profile is the one I'm looking at? Cause I tried creating the file but it did not work.
 
Old 10-11-2004, 04:33 AM   #9
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
I think the file you may be after is .xinitrc, but I don't know wheather this is used when a user logs in using the GUI or not.

When a user logs straight in to a Window Manager, as far a I know, Bash is not actually started on login.

--Ian
 
Old 10-11-2004, 05:19 AM   #10
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by IBall
I think the file you may be after is .xinitrc, but I don't know wheather this is used when a user logs in using the GUI or not.

When a user logs straight in to a Window Manager, as far a I know, Bash is not actually started on login.

--Ian
It seems that this file only works when root login from the console.

It doesn't works when root login from the GUI. And other users doesn't even have this file, tried creating but din work.
 
Old 10-11-2004, 08:03 AM   #11
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Maybe .xsession ??

See man xdm, man gdm, or man kdm for details.

Sorry but I am only guessing here.
--Ian
 
Old 10-11-2004, 09:04 AM   #12
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by IBall
Maybe .xsession ??

See man xdm, man gdm, or man kdm for details.

Sorry but I am only guessing here.
--Ian
NP, will give it a try tomorrow.
 
  


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
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 08:11 PM
Where is rc.local? rwescoat Debian 2 10-16-2004 12:51 PM
where's my rc.local TheChicken Linux - Newbie 4 04-05-2004 02:38 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 12:03 PM


All times are GMT -5. The time now is 01:39 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