LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Script help ? (https://www.linuxquestions.org/questions/linux-newbie-8/script-help-754825/)

drfiaz 09-13-2009 10:39 AM

Script help ?
 
Hi to al,

how i write a script in rc.local file?

I want to run firefox automatically at reboot?

Plz help me.....

repo 09-13-2009 10:40 AM

Welcome to LQ
Quote:

how i write a script in rc.local file?
I want to run firefox automatically at reboot?
rc.local is executed before X is loaded.
You can set firefox to load in your windowmanager, when X starts
Which windowmanager do you use?

catkin 09-13-2009 11:35 AM

Quote:

Originally Posted by repo (Post 3681030)
Welcome to LQ

rc.local is executed before X is loaded.
You can set firefox to load in your windowmanager, when X starts
Which windowmanager do you use?

Wouldn't that mean FF was running as root (although you could preface it with a su - <username>)? Might be more convenient on the Desktop so how about adding it to the Desktop's autostarts?

repo 09-13-2009 11:37 AM

Quote:

Wouldn't that mean FF was running as root (although you could preface it with a su - <username>)? Might be more convenient on the Desktop so how about adding it to the Desktop's autostarts?
That was what I meant to say.
Sorry for the confusion.

sploot 09-13-2009 11:49 AM

In order to give recommendations on how to have your wm auto load programs, we must know which window manager you run. :cool:

schneidz 09-13-2009 08:11 PM

you could probably stick 'firefox &' on the last line of .bashrc or .profile or .bash_profile


All times are GMT -5. The time now is 02:46 AM.