You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How to Run a Command at Every Bootup?

Author (Read 5429 times)

0 Members and 1 Guest are viewing this topic.

Re: How to Run a Command at Every Bootup?
« Reply #4 on: June 09, 2018, 02:19:35 AM »
 

warhawk8080

  • New to Forums
  • *
  • 8
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Pentium(R) Dual-Core CPU T4500 @ 2.30GHz

  • MEMORY: 2Gb

  • VIDEO CARD: Mobile 4 Series Chipset Integrated Graphics Controller
Just make sure it looks like this

Code: [Select]
#!/bin/sh -e
#
# rc.local - executed at the end of each multiuser runlevel
#
# Make sure that the script will "exit 0" on success or any other
# value on error.

all the stuff you wanna run up there...yadda yadda

exit 0
https://unix.stackexchange.com/questions/49626/purpose-and-typical-usage-of-etc-rc-local

Or it might hang
 

Re: How to Run a Command at Every Bootup?
« Reply #3 on: April 21, 2014, 07:08:59 PM »
 

leegold

  • Guest
Many thanks.
 

Re: How to Run a Command at Every Bootup?
« Reply #2 on: April 19, 2014, 03:04:52 AM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Reputation: 155
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • View Profile
    • Orphans for Christ, Self Advocates of Mecklenburg

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

Unless someone suggests a better way, you could add it to your /etc/rc.local file. Of course, you'll have to edit this file as root, using nano or the text editor.

In a terminal window [CTRL-ALT-T],

Code: [Select]
sudo nano /etc/rc.local
should allow you to execute that command at startup...

73 DE N4RPS
Rob


A gun in your hand is worth more than a whole police force on the phone.
 

How to Run a Command at Every Bootup?
« Reply #1 on: April 18, 2014, 06:24:32 PM »
 

leegold

  • Guest
Somewhat of a general question, using LinuxLite and want to have a command executed when ever the system boots. It's not a "root command", does not need sudo when I do it from the terminal. From my memory since I'm not at that computer the command is:

djmount  /home/linuxlite/av

it just connects to a Upnp server and gets the media. Be nice if it did that at boot. How to do this automatically at boot?

Thanks.

 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section