Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: BTNX autostart

  1. #11
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: BTNX autostart

    On 2013-03-28 12:26, rbarsoianu wrote:

    > I know what i have to run in order to start it, however i want it to
    > autostart, without asking me for a password. That's why i thought
    > sudoers might come in handy. However DD's solution seems rlly nice, it's
    > just that the runlevels don't show up for some reason, check the print
    > here : 'View image: yast2 000' (http://postimg.org/image/po7jlxuvv/)


    I should not be surprised... YaST is broken. Systemd has come, Yast
    developers are a scarce resource, and modules are not working any more
    as a result :-/

    I understand that you have to use "systemadm" now.

    View this
    thread here
    A post by jdmcdaniel3 explains it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  2. #12

    Default Re: BTNX autostart

    I red the forum you linked, glad to know i'm not the only one with this problem . However this is not the only way to go in order to solve this issue. I have TS3 and NOIP2 started up by using KDE Autostart. The only difference between those 2 and BTNX is that those 2 do not require root priviledges to run. So, comming back to my initial ideea, let's run btnx from normal user by modifiying sudoers. I did do that, and it still dosn't work, so most likely i didn't do it correctly. On a locate BTNX i get
    Code:
    /etc/btnx
    /etc/btnx/btnx_config_MadCatz
    /etc/btnx/btnx_manager
    /etc/btnx/btnx_settings
    /etc/btnx/events
    /etc/init.d/btnx
    /etc/udev/rules.d/99-btnx.rules
    /home/hornyoldman/.kde4/Autostart/btnx
    /run/btnx.pid
    /usr/sbin/btnx
    /usr/sbin/btnx-config
    /usr/sbin/rcbtnx
    /usr/share/applications/btnx-config.desktop
    /usr/share/btnx-config
    /usr/share/btnx-config/btnx-config.glade
    /usr/share/btnx-config/doc
    /usr/share/btnx-config/doc/btnx-manual
    /usr/share/btnx-config/doc/btnx-manual/C
    /usr/share/btnx-config/doc/btnx-manual/C/btnx-manual.xml
    /usr/share/btnx-config/doc/btnx-manual/C/figures
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-1.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-10.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-11.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-2.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-3.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-4.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-5.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-6.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-7.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-8.png
    /usr/share/btnx-config/doc/btnx-manual/C/figures/btnx-screenshot-9.png
    /usr/share/btnx-config/doc/btnx-manual/C/legal.xml
    /usr/share/doc/packages/btnx
    /usr/share/doc/packages/btnx-config
    /usr/share/doc/packages/btnx-config/ChangeLog
    /usr/share/doc/packages/btnx-config/VERSION
    /usr/share/doc/packages/btnx/AUTHORS
    /usr/share/doc/packages/btnx/ChangeLog
    /usr/share/doc/packages/btnx/COPYING
    /usr/share/doc/packages/btnx/NEWS
    /usr/share/doc/packages/btnx/README
    /usr/share/locale/de/LC_MESSAGES/btnx-config.mo
    /usr/share/locale/fr/LC_MESSAGES/btnx-config.mo
    /usr/share/locale/nl/LC_MESSAGES/btnx-config.mo
    /usr/share/locale/ru/LC_MESSAGES/btnx-config.mo
    /usr/share/omf/btnx-config
    /usr/share/omf/btnx-config/btnx-manual-C.omf
    /usr/share/pixmaps/btnx.png
    My sudoers is modified like this :

    Code:
      %users ALL = (here_goes_my_username)NOPASSWD: /etc/init.d/btnx
    And it dosn't work when i try to run btnx in terminal as a normal user. If i manage to do that, i can create a script to launch it and add it to KDE Autostart just as i did with the other 2. So, any1 knows what i'm doing wrong in sudoers ?

  3. #13
    dd NNTP User

    Default Re: BTNX autostart

    On 03/28/2013 06:26 PM, rbarsoianu wrote:
    > So, comming back to my initial ideea, let's run
    > btnx from normal user by modifiying sudoers. I did do that, and it still
    > dosn't work, so most likely i didn't do it correctly.


    i guess you put a copy of the btnx executable in ~/.kde4/autostart ?
    or is that a bash script pointing to the executable in /usr/sbin/btnx

    if the latter, that bash script has to figure out a way to provoke
    root powers....and, i don't know to do that..

    but i actually didn't know there was an /etc/init.d tree in systemd,
    but if there is, is there a /etc/init.d/after.local ??

    if so, just try listing /usr/sbin/btnx therein...since you execute
    everything in ~/.kde4/autostart and root executes _everything_ in
    /etc/init.d it should work......i think.

    btw, you never did say if the "Help" button helped.

    --
    dd
    http://tinyurl.com/DD-Caveat

  4. #14
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: BTNX autostart


    > And it dosn't work when i try to run btnx in terminal as a normal user.
    > If i manage to do that, i can create a script to launch it and add it to
    > KDE Autostart just as i did with the other 2. So, any1 knows what i'm
    > doing wrong in sudoers ?



    I tried it myself. I added this entry to sudoers:

    Code:
    cer Telcontar = (root) NOPASSWD: /etc/init.d/spamd
    With that entry I do:

    Code:
    
    > cer@Telcontar:~> sudo /etc/init.d/spamd
    > Usage: /etc/init.d/spamd {start|stop|status|try-restart|restart|force-reload|reload|probe}
    > cer@Telcontar:~> sudo /etc/init.d/spamd status
    > Checking for service spamd                                        dead
    >
    >
    > cer@Telcontar:~>
    So sudoers work if you want it - at least in 12.1. Notice how I call the
    script.


    But to activate a service on boot I simply run "chkconfig spamd on". I
    would never try to do it as an autostart job in kde.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  5. #15

    Default Re: BTNX autostart

    Quote Originally Posted by robin_listas View Post

    > And it dosn't work when i try to run btnx in terminal as a normal user.
    > If i manage to do that, i can create a script to launch it and add it to
    > KDE Autostart just as i did with the other 2. So, any1 knows what i'm
    > doing wrong in sudoers ?



    I tried it myself. I added this entry to sudoers:

    Code:
    cer Telcontar = (root) NOPASSWD: /etc/init.d/spamd
    With that entry I do:

    Code:
    
    > cer@Telcontar:~> sudo /etc/init.d/spamd
    > Usage: /etc/init.d/spamd {start|stop|status|try-restart|restart|force-reload|reload|probe}
    > cer@Telcontar:~> sudo /etc/init.d/spamd status
    > Checking for service spamd                                        dead
    >
    >
    > cer@Telcontar:~>
    So sudoers work if you want it - at least in 12.1. Notice how I call the
    script.


    But to activate a service on boot I simply run "chkconfig spamd on". I
    would never try to do it as an autostart job in kde.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

    Thq for the input, i wasn't calling the command using sudo at start. Now that i do sudo btnx from my normal user account it works without asking me for a password, so adding it to startup shouldn't be a problem. Thanks again.

  6. #16
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: BTNX autostart

    On 03/29/2013 08:06 PM, rbarsoianu wrote:
    > so adding it to startup shouldn't be a
    > problem. Thanks again.


    once you use sudo at a CLI it recognizes you as having used the root
    password for five minutes (default) so second and subsequent uses of
    sudo will not need the root pass again..

    however, that five minutes won't survive overnight, or even through a
    shutdown, so i predict that sudo in a bash scrip in the
    ~/.kde4/autostart won't work..

    but, give it a try..


    --
    dd

  7. #17
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: BTNX autostart

    On 2013-03-29 21:48, dd wrote:
    > so i predict that sudo in a bash scrip in the ~/.kde4/autostart won't
    > work..


    You are right, it can't work. There is no terminal where you can input
    the password, you need a graphical sudo. Ubuntu uses one, but there is
    no such thing on openSUSE that I can recall.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

Page 2 of 2 FirstFirst 12

Posting Permissions

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