How to put an autostart script at Ubuntu 10.04

Asked by Dimitrios Dimitrakopoulos

I want to put an autostart script at Ubuntu 10.04. Every time that Ubuntu begin I want to execute the command
"sudo route add -net 10.0.0.0/8 gw 192.168.1.2" . Please tell me what exactly I must do?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Greg Beam
Solved:
Last query:
Last reply:
Revision history for this message
Best Greg Beam (ki7mt) said :
#1

Hi Dimitrios,

For simple execution actions at the end of the boot process, you can add things to rc.local ( local file for Ubuntu / Debian distro's ) without having to write init-scripts to control them.

The following link will show you it's basic usage: https://help.ubuntu.com/community/RcLocalHowto

KE1HA

General Ubuntu Resources:
Ubuntu Manual - http://ubuntu-manual.org/
Server Manual - https://help.ubuntu.com/10.04/serverguide/C/serverguide.pdf
Other Documentation - https://help.ubuntu.com/10.04/index.html
IRC Channel Support on irc.freenode.net : #ubuntu #kubuntu #xubuntu

Revision history for this message
Dimitrios Dimitrakopoulos (ddimit1-gmail) said :
#2

KE1HA. Thank you very much.

Revision history for this message
Dimitrios Dimitrakopoulos (ddimit1-gmail) said :
#3

Thanks KE1HA, that solved my question.