Active Topics

 


Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1
Hi
Is it possible to execute script as ROOT from desktop icon ?
for example on N9 we could to run something like this:
Code:
Exec=sh -c "echo rootme | devel-su -c 'sh /path/to/script.sh'"
Can we do the same on Jolla ?

And second question, someone know what the command to show notification bar ? Or where I can check it ?

Thanks
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#2
Originally Posted by Schturman View Post
Hi
Is it possible to execute script as ROOT from desktop icon ?
for example on N9 we could to run something like this:
Code:
Exec=sh -c "echo rootme | devel-su -c 'sh /path/to/script.sh'"
Can we do the same on Jolla ?

And second question, someone know what the command to show notification bar ? Or where I can check it ?

Thanks
well, isnt that easy to try out ?
 

The Following User Says Thank You to For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#3
he is always asking before
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#4
I still not at home and yes I always asking before
But I also tried just command (without script), I tried killall sailfish-browser:
echo rootme | devel-su -c "killall sailfish-browser"

Not worked...

p.s. and what about notification command ?

Last edited by Schturman; 2014-01-24 at 17:24.
 
Posts: 204 | Thanked: 443 times | Joined on Jul 2012 @ Germany - Potsdam
#5
Originally Posted by Schturman View Post
....I tried killall sailfish-browser:
echo rootme | devel-su -c "killall sailfish-browser"

Not worked...

p.s. and what about notification command ?
rootme is not the correct password. May be its nemo, I don't remember it - I have changed mine. Open a terminal and try devel-su manually.
 
Mikkosssss's Avatar
Posts: 645 | Thanked: 519 times | Joined on Apr 2012 @ Finland
#6
You need to set password when you activate developer mode.
__________________
────────────────────
Try:My N9 bootvideo
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#7
notifications should be same with meego
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#8
Coderus thanks, will try..
I already set pass for nemo and root users..
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#9
Ok, Finally I tried with script, it not work Also it not show any errors...
Here is the script:
Code:
#!/bin/bash

echo rootme | devel-su -c "killall sailfish-browser"
Also I tried to find the notification commands, but also without success:
Code:
[root@localhost ~]# dbus
-bash: dbus: command not found
Any advice ?
 
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#10
Originally Posted by Schturman View Post
Ok, Finally I tried with script, it not work Also it not show any errors...
Here is the script:
Code:
#!/bin/bash

echo rootme | devel-su -c "killall sailfish-browser"
Also I tried to find the notification commands, but also without success:
Code:
[root@localhost ~]# dbus
-bash: dbus: command not found
Any advice ?
If you install sudo and add nemo to sudoers file you should be able to simply run with 'sudo xyz'

edit: In /etc/sudoers you just need this line:
Code:
nemo ALL=(ALL) NOPASSWD: ALL
and no more password typing, so you can keep it longer/more randomized

Last edited by szopin; 2014-01-24 at 20:55.
 

The Following 3 Users Say Thank You to szopin For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:34.