Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: >:O auto starting things in BASH

  1. #1
    Join Date
    Dec 2007
    Beans
    291
    Distro
    Ubuntu 10.04 Lucid Lynx

    >:O auto starting things in BASH

    Excuse the grumpy face in the title, but I am pulling my HAIR OUT trying to get a few simple commands to automatically issue when my Ubuntu machine starts up.

    I have checked other threads, and tried several things, from editing /etc/rc.local to allowing sudo without a PW for a specific script - nothing is seeming to work.

    I have several miscellaneous commands that need to issue when the computer boots, and they need to be run as different users - some as root, and some as a different user.

    Can someone help me out? Or at least point me to a tried and tested tutorial? I don't want to have to use the GUI at all. There is a way, I know there is.
    technical and fundamental hacker


    My Security Blog

  2. #2
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    628
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: >:O auto starting things in BASH

    to run a command as another user, you can use sudo -u.
    Intel core i5-2400, 8GB RAM, NVIDIA GeForce GTX 550 Ti

  3. #3
    Join Date
    Dec 2007
    Beans
    291
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: >:O auto starting things in BASH

    Zorgoth - How can I achieve this without user interaction? I need (for example) a VNC server to startup with the user "owner" automatically when the server starts up, with no user interaction.
    technical and fundamental hacker


    My Security Blog

  4. #4
    Join Date
    Dec 2007
    Beans
    291
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: >:O auto starting things in BASH

    Does anyone know?? It needs to be 100% unmanned and start up automatically with the system.
    technical and fundamental hacker


    My Security Blog

  5. #5
    Join Date
    Feb 2009
    Location
    Singapore
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: >:O auto starting things in BASH

    Try under System->Preferences->Startup Applications

    Click add and enter command in there.

  6. #6
    Join Date
    Dec 2007
    Beans
    291
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: >:O auto starting things in BASH

    Nebileix -- I need to do this all without a gui, please
    technical and fundamental hacker


    My Security Blog

  7. #7
    Join Date
    Feb 2009
    Location
    Singapore
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: >:O auto starting things in BASH

    Quote Originally Posted by B34ST1Y View Post
    Nebileix -- I need to do this all without a gui, please
    Then try upstart.

    It is the default to run services during boot for lucid.

    http://upstart.ubuntu.com/getting-started.html

    or

    http://wiki.frugalware.org/index.php/Upstart_Job_HOWTO

  8. #8
    Join Date
    Dec 2007
    Beans
    291
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: >:O auto starting things in BASH

    Will this also work for Red Hat? I'm looking for the generic Linux autostart-a-script 100% unmanned. There has to be one....
    technical and fundamental hacker


    My Security Blog

  9. #9
    Join Date
    Feb 2009
    Location
    Singapore
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: >:O auto starting things in BASH

    Quote Originally Posted by B34ST1Y View Post
    Will this also work for Red Hat? I'm looking for the generic Linux autostart-a-script 100% unmanned. There has to be one....
    If you're using ubuntu lucid, then it is upstart.

    As for redhat, i think they are still using rc to run jobs at different runlevel.(Not very sure thou)

  10. #10
    Join Date
    Dec 2007
    Beans
    291
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: >:O auto starting things in BASH

    ok, and then how can I get a script to run as userX without asking for a password?
    technical and fundamental hacker


    My Security Blog

Page 1 of 3 123 LastLast

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
  •