Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Forgive me but was that meant to represent a serious answer, a time waste, evidence of a psychological disorder or an attempt to introduce disarray into a serious forum?
OK but I assumed the principles would remain the same regardless.
Here is the script:
#!/bin/bash
#
# Script: kaffstart
#
# Purpose: Start script to ensure that the MythTV backend is OFF so that
# kaffeine can access the TV tuners and to start kasffeine.
# Also to restore MythTV backend when it terminates.
#
OK but I assumed the principles would remain the same regardless.
Here is the script:
assuming you have sudo installed
Code:
#!/bin/bash
#
# Script: kaffstart
#
# Purpose: Start script to ensure that the MythTV backend is OFF so that
# kaffeine can access the TV tuners and to start kasffeine.
# Also to restore MythTV backend when it terminates.
#
sudo /etc/init.d/mythbackend stop
/usr/bin/kaffeine
sudo /etc/init.d/mythbackend start
and then edit your sudoers file ( important to use visudo )
as root
Code:
visudo
assuming your username is alan, add the 'alan' line
Code:
# User privilege specification
root ALL=(ALL:ALL) ALL
alan ALL=(root:root) NOPASSWD: /etc/init.d/mythbackend
via sudo alan will be able to run /etc/init.d/mythbackend as root, without the need for password.
Distribution: Debian lenny & squeeze servers. Mint 13 and 14 desktops
Posts: 16
Rep:
Quote:
Originally Posted by Firerat
assuming you have sudo installed
Code:
#!/bin/bash
#
# Script: kaffstart
#
# Purpose: Start script to ensure that the MythTV backend is OFF so that
# kaffeine can access the TV tuners and to start kasffeine.
# Also to restore MythTV backend when it terminates.
#
sudo /etc/init.d/mythbackend stop
/usr/bin/kaffeine
sudo /etc/init.d/mythbackend start
and then edit your sudoers file ( important to use visudo )
as root
Code:
visudo
assuming your username is alan, add the 'alan' line
Code:
# User privilege specification
root ALL=(ALL:ALL) ALL
alan ALL=(root:root) NOPASSWD: /etc/init.d/mythbackend
via sudo alan will be able to run /etc/init.d/mythbackend as root, without the need for password.
I was delighted to receive that solution and it certainly made sense and taught me something about the sudoers file. I had some other issues to clear up before I could test it but so far it has not worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.