Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: How to autostart of a bin ( KDE, OS 11.2 )

  1. #1

    Question How to autostart of a bin ( KDE, OS 11.2 )

    Dear members,

    When my computer is completely started up i would like to start up a bin automaticaly. shap is the name of the bin. The bin is in folder /home/user/shap/ and the config for shap is in the same folder. ( shop.xml )

    When i start shap manualy then i open a terminal and login as root. Then i type:
    cd /home/user/shap
    ./shap -d shap.xml

    How can i manage to do this autmaticaly?

    Thank you for giving this n00b any hint or tip.

  2. #2
    Join Date
    Jun 2008
    Location
    Natchez, MS, USA
    Posts
    518

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    You can make a bash script of that command. Start it as a text file and name it something like shap.sh and then RightClick on it and Click Properties. Set it as an executable file. Put that in your Start Up.

    Now open YaST and go to the SUDOers add yourself as an SUDOer and point it to that file. Set it to run as root and no password. This will automatically run without any effort on your part.

    I had to do the same thing to get my NAS share mounted at start up.
    Free Fractal Wallpapers
    http://wilsonephillips.smugmug.com

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,157

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    Do you mean to start it at sytem boot (on reaching a certain runlevel) or do you mean start on logging in in your GUI (KDE or Gnome)?

    Imho Wilson_Phillips's solution is for the second case.
    Henk van Velden

  4. #4

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    Quote Originally Posted by hcvv View Post
    do you mean start on logging in in your GUI (KDE or Gnome)?

    Imho Wilson_Phillips's solution is for the second case.
    Yes, that is correct.

  5. #5

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    Quote Originally Posted by Wilson_Phillips View Post
    You can make a bash script of that command. Start it as a text file and name it something like shap.sh and then RightClick on it and Click Properties. Set it as an executable file. Put that in your Start Up.

    Now open YaST and go to the SUDOers add yourself as an SUDOer and point it to that file. Set it to run as root and no password. This will automatically run without any effort on your part.

    I had to do the same thing to get my NAS share mounted at start up.
    Thank you very much for this very quick reply. I will try to make a bash but first i have to do some research about making scripts ( like i said i'm a noob )
    The only thing i know is that it must start with

    #!/bin/bash

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,157

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    Quote Originally Posted by excal242 View Post
    The only thing i know is that it must start with

    #!/bin/bash
    That is correct as long as it is a bash script
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Natchez, MS, USA
    Posts
    518

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    #!/bin/bash
    cd /home/user/shap
    ./shap -d shap.xml



    I would think that this should do it. Good luck.
    Free Fractal Wallpapers
    http://wilsonephillips.smugmug.com

  8. #8

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    Quote Originally Posted by Wilson_Phillips View Post
    You can make a bash script of that command. Start it as a text file and name it something like shap.sh and then RightClick on it and Click Properties. Set it as an executable file. Put that in your Start Up.

    Now open YaST and go to the SUDOers add yourself as an SUDOer and point it to that file. Set it to run as root and no password. This will automatically run without any effort on your part.

    I had to do the same thing to get my NAS share mounted at start up.
    Where do i find this start up?

    I have put the bash in another folder and pointed to it but that doesn't work. So i want to try it true the start up.

    This is the script. Is this correct?

    #!/bin/bash
    ./home/user/shap -c /home/user/shap.xml

  9. #9

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    Quote Originally Posted by Wilson_Phillips View Post
    #!/bin/bash
    cd /home/user/shap
    ./shap -d shap.xml



    I would think that this should do it. Good luck.
    Cool!
    I will try it

  10. #10
    Join Date
    Jun 2008
    Location
    Natchez, MS, USA
    Posts
    518

    Default Re: How to autostart of a bin ( KDE, OS 11.2 )

    /home/~user~/.kde4/Autostart/
    Free Fractal Wallpapers
    http://wilsonephillips.smugmug.com

Page 1 of 4 123 ... LastLast

Posting Permissions

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