Just got a new n900 device, and i'm trying to make this combination work - i fixed it in my old device, but can't make it work in the new one.
hildon shortcut of xterm changes:
-----
Exec=/usr/bin/osso-xterm 'sudo gainroot'
#X-Osso-Service=xterm
#X-Osso-Type=application/x-executable
-----
.bashrc is in /root and /home/user
starting xterm from hildon desktop opens it after "sudo gainroot" execution, but bash commands are ignored.
What did i forget here?
[Solved] - edit "/usr/sbin/gainroot" and make the following code change:
-----
echo 'Root shell enabled'
/bin/bash # new code - will load bash automatically
HISTFILE=/root/.ash_history /bin/sh
-----
hildon shortcut of xterm changes:
-----
Exec=/usr/bin/osso-xterm 'sudo gainroot'
#X-Osso-Service=xterm
#X-Osso-Type=application/x-executable
-----
.bashrc is in /root and /home/user
starting xterm from hildon desktop opens it after "sudo gainroot" execution, but bash commands are ignored.
What did i forget here?
[Solved] - edit "/usr/sbin/gainroot" and make the following code change:
-----
echo 'Root shell enabled'
/bin/bash # new code - will load bash automatically
HISTFILE=/root/.ash_history /bin/sh
-----
Last edited by impeham; 2013-02-27 at 16:24.