Results 1 to 4 of 4

Thread: How to start an script in terminal at startup as root

  1. #1
    Join Date
    Jun 2011
    Beans
    304

    How to start an script in terminal at startup as root

    How can I start a script in terminal at startup as root? I am running Cinnamon desktop on linux-mint-13 (based on ubuntu precise). Thanks for your help.

  2. #2
    Join Date
    Oct 2004
    Location
    Denmark - Scandinavia
    Beans
    17,619
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to start an script in terminal at startup as root

    Moved to Other OS/Distro Support.
    elementary OS Luna
    My Screenshot

  3. #3
    Join Date
    Feb 2008
    Beans
    Hidden!

    Re: How to start an script in terminal at startup as root

    Quote Originally Posted by rng View Post
    How can I start a script in terminal at startup as root? I am running Cinnamon desktop on linux-mint-13 (based on ubuntu precise). Thanks for your help.
    Never use your computer as root.
    stick whatever in /etc/rc.local and it will run after all system daemons have started.
    It's the fast and easy method and perfectly ok to do.

    Cron is another way to run still 'as root'

    make backups before edit.
    DorkBlog

    If you want something you've never had, then you must do things you've never done.
    Tools every shell scripter should have, explainshell, shellcheck, and crontab sandbox.

  4. #4
    Join Date
    Nov 2007
    Location
    Wisconsin
    Beans
    1,139

    Re: How to start an script in terminal at startup as root

    Use Upstart. That's exactly what it's for.
    http://upstart.ubuntu.com/cookbook/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •