Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to configure the startup application in Ubuntu. I want to perform the following tasks in sequence when a user login to Ubuntu's desktop:

  1. Ensure that the webserver is started automatically.
  2. After the webserver has been started, automatically start Firefox web browser and point it to the local webserver.

My question:

  1. Where should i put the startup script to perform these startup tasks?
  2. How to control Firefox from shell script? e.g. start firefox, and point it to localhost.

Thanks.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I assume you're using the apache httpd daemon.

You can either make it start automatically during boot using the /etc/rc.* folders, or putting /etc/init.d/apache start into your script. I think its apache in ubuntu anyhow, might be called httpd

This guide might help:

start firefox with "firefox localhost" or "firefox 127.0.0.1" in the script

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.