1 |
Mike Kazantsev <mk.fraggod@×××××.com> [09-08-23 16:08]: |
2 |
> On Sun, 23 Aug 2009 10:20:08 +0200 |
3 |
> meino.cramer@×××.de wrote: |
4 |
> |
5 |
> > Is there any chance to start guvcview with user rights AND to give the |
6 |
> > application higer priorities so that whatever guvcview wants from the |
7 |
> > system will be served as soon as possible to avoid stuttering videos? |
8 |
> |
9 |
> You can create a simple script, say, /usr/local/bin/capture and give |
10 |
> permissions to lauch it as root via sudo. |
11 |
> |
12 |
> Script might be one-liner like |
13 |
> |
14 |
> #!/bin/sh |
15 |
> exec nice -n -10 ionice -c 1 capture-command |
16 |
> |
17 |
> and sudo line might look like this: |
18 |
> |
19 |
> user ALL=(root) NOPASSWD: /usr/local/bin/capture |
20 |
> |
21 |
> NOPASSWD here means that you just have to type |
22 |
> 'sudo /usr/local/bin/capture' to run the script as root, no questions |
23 |
> asked. |
24 |
> |
25 |
> -- |
26 |
> Mike Kazantsev // fraggod.net |
27 |
|
28 |
This will give the whole 'capture-comand# the rights of root, which |
29 |
I want to prevent (see my posting). Instead I want to give it only |
30 |
higher priorities for I/O-usage and CPU-usage. It should still act |
31 |
with user rights for all other puposes. |
32 |
But thank you for your help anyway. |
33 |
|
34 |
Best regards. |
35 |
mcc |
36 |
|
37 |
|
38 |
|
39 |
-- |
40 |
Please don't send me any Word- or Powerpoint-Attachments |
41 |
unless it's absolutely neccessary. - Send simply Text. |
42 |
See http://www.gnu.org/philosophy/no-word-attachments.html |
43 |
In a world without fences and walls nobody needs gates and windows. |