![]() |
Giving root permissions to a command in queen beecon?
I've come across jakiman's post here http://talk.maemo.org/showpost.php?p...postcount=2867 where he pipes the kernel-load command into sudo gainroot. This doesn't work for me unfortunately, I'll get permission errors instead since it doesn't go through. How would I be able to accomplish this? I've tried sudo gainroot && (commands) but that doesn't work either.
I'm basically trying to set up on-demand overclocking from my desktop. |
Re: Giving root permissions to a command in queen beecon?
Have you tried doing it with the sudo followed by the command. The "| sudo gainroot" method wasn't working for me on Queen BeeCon so I used the following :
sudo /usr/sbin/kernel-load /home/user/MyDocs/files/overclock900 (where overclock900 is my copied/modified file of the kernel power setting for 900Mhz). |
Re: Giving root permissions to a command in queen beecon?
Quote:
I tried something else, that is creating a script called ideal and default that just executes Code:
#!/bin/sh... scratch all that. I just realized I have to prepend sudo to the command to run it. I was just executing the command, assuming it would run with root permissions automatically. I'll just leave what I wrote above so someone doesn't accidentally lock up their widget/desktop screen! |
Re: Giving root permissions to a command in queen beecon?
1 Attachment(s)
Hello,
I use this command in queenbee sudo /root/oc-850 "oc-850" is a single line executable with this content echo 850000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq I'm still playing/learning about OC so its pretty simple, but it seems to work. |
Re: Giving root permissions to a command in queen beecon?
okay. I also tried my old commands with the new leaked kernel with QBW and it wouldn't work.
Now I use this: (will update my posts mentioned) Quote:
|
Re: Giving root permissions to a command in queen beecon?
Quote:
This file is /home/user/scripts/default and has an entry in sudoers via sudoers.d since using vimsudo is supposedly bad see here. Quote:
I have both the Ideal and Stock widgets to only update when pressed and the Speed widget to updates on default. Here's an image: http://imgur.com/4zEGc.png Now what I'd like to know is if it's possible to edit my stock/ideal scripts to update just the speed widget as soon as they are pressed. I'm also curious as to how to back up my widget/desktop screen as they're a pain in the *** to redo and I actually lost all my widgets due to a beecon command being sudo'd being entered in without being in sudoers. Anyone have any ideas? |
Re: Giving root permissions to a command in queen beecon?
Quote:
|
Re: Giving root permissions to a command in queen beecon?
Quote:
I found all that information is saved in /home/user/.queen_beecon What I don't know is where all the settings/configuration files for hildon desktop are. I found /home/user/.config/hildon-desktop/home.plugins and that seems to show instantiations of widgets but doesn't have their x,y coordinates. The config file that has all the coordinates of the widgets would be great to backup since trying to place something precisely is tedious |
Re: Giving root permissions to a command in queen beecon?
Quote:
Code:
/var/lib/gconf/apps/osso/hildon-desktop/applets |
Re: Giving root permissions to a command in queen beecon?
Quote:
Also if I understand right you're the one who made Queen Beecon. Is there anyway I can say, press a button and also have it execute the update of another button? For instance in the picture I have in the earlier post, I can press stock/ideal, and it updates the CPU speed without me having to press it. |
Re: Giving root permissions to a command in queen beecon?
Quote:
I'm evaluating the implementation of basic Dbus server capabilities in QBW in order for each instance to receive "run-standalone.sh dbus-send ..." messages from external commands or other QBW instances. But as of now this seems quite complex and I need to study a bit more. |
| All times are GMT. The time now is 09:40. |
vBulletin® Version 3.8.8