Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-29-2007, 02:49 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 20

Rep: Reputation: 0
run everytime i start the computer

Hello everyone,

How do i run a script everytime i start the computer? Whenever i start bash, .bashrc will be executed, is there any such script so that i can append my script to that file so that it runs everytime i start the computer?
Old 04-29-2007, 03:01 AM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On most distros you an put

@reboot /path/to/script_file

in crontab
Old 04-29-2007, 08:47 AM   #3
Patrick K
Registered: Apr 2007
Distribution: Feisty (Ubuntu Studio)/Edgy
Posts: 69

Rep: Reputation: 15
/etc/rc.local is the place. It runs on every boot. Just put in the path above exit 0.


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
Computer restarting everytime Linux - Hardware 2 01-19-2007 03:18 AM
have to run alsaconf everytime I boot Chinook06 Debian 1 01-18-2007 04:36 PM
Making some commands run everytime I start Linux (Slack 9.1) Agna Linux - Newbie 7 08-26-2005 10:38 PM
Need to run alsaconf everytime i boot up! RaVilj Red Hat 3 06-13-2004 06:23 PM
How do I get fortune to run everytime I start an xshell dtheorem Linux - Software 3 05-19-2004 01:22 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration