![]() |
Re: xterminal "top" shortcut
hi folks... i'm struggeling with this one...
my desktop-file: Code:
[Desktop Entry]Code:
chmod 755 /etc/hildon-welcome.d/lalala.shand my script: Code:
#!/bin/bashwhen i try to execute it (i'm already in the right folder) with: Code:
lalala.shCode:
./lalala.shit only works with Code:
sh lalala.shbut i can't get the shortcut to work ;( help appreciated! thanks in advance! :) |
Re: xterminal "top" shortcut
hmpf... i have to execute this whole script as root or a few commands in it... how do i do that!? o.O
|
Re: xterminal "top" shortcut
tried to start it with
Exec=osso-xterm "sudo sh /etc/hildon-welcome.d/lalala.sh" then i'm asked for the root password... -.- even if i edit my script and write "sudo" before every command which have to be executed as root i'm getting asked for this password.... then i tried "sudo gainroot" as first line of my script. it opens xterm but my script isn't executed... it's driving me crazy o.O |
Re: xterminal "top" shortcut
I just type 'root' in the terminal when I want root access. I have installed rootsh, that may be it.
|
Re: xterminal "top" shortcut
i have installed rootsh too.
and i can get root-access to my files via "sudo gainroot" in xterm. but my problem is following: i have a script and a desktop-shortcut to this script. and now i have to execute this script with root-rights. so how can this be done? do i have to write something special after Exec= in the desktop-file? do i have to write something special before the critical commands in the script? what do i have to do!? i've tried so many things till now - nothing worked :( |
Re: xterminal "top" shortcut
Code:
Exec=/bin/busybox sh -c 'echo /etc/hildon-welcome.d/lalala.sh | sudo gainroot' |
Re: xterminal "top" shortcut
thanks for your reply... but that also doesn't work... :/
|
Re: xterminal "top" shortcut
Try adding the SH before it:
Quote:
|
Re: xterminal "top" shortcut
nope :(
i have added some echos in my script for watching where the problem might be... but... if i click on the shortcut... a terminal opens up... it just says "randomvid", with a progress indicator to the right and a big black screen under the top bar... after a few seconds the window closes itself :( should i see my script running? (with all these echos in the terminal?!) |
Re: xterminal "top" shortcut
As user.. run this in a terminal window:
echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot |
| All times are GMT. The time now is 19:34. |
vBulletin® Version 3.8.8