Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    xterminal "top" shortcut

    Reply
    Page 8 of 10 | Prev |   6     7   8   9     10   | Next
    b666m | # 71 | 2010-02-19, 19:21 | Report

    Originally Posted by fatalsaint View Post
    As user.. run this in a terminal window:

    echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot
    works.

    Code:
    Root shell enabled
    cd
    nof
    rn
    rr
    2.conf
    cp
    that are all of my debugging-echos

    but it doesn't work by calling it via desktop-shortcut?! o.O

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 72 | 2010-02-19, 19:22 | Report

    Hrmm.. that is strange.

    Copy/paste your desktop file here again with the changes.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 73 | 2010-02-19, 19:26 | Report

    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.1
    Type=Application
    Terminal=true
    Name=randomvid
    Exec=/bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot'
    Icon=terminal
    #X-Window-Icon=
    X-Window-Icon=     
    X-HildonDesk-ShowInToolbar=true
    X-Osso-Type=application/x-executable
    edit: maybe i should delete the "sh -c"!? ^^

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 74 | 2010-02-19, 19:29 | Report

    Originally Posted by b666m View Post

    edit: maybe i should delete the "sh -c"!? ^^
    No I think that's needed by the busybox wrapper. Try running the whole command as user from a command window:

    /bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot'

    If that works.. I'd start removing items from the file like X-Osso-Type and Terminal=true..

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fatalsaint For This Useful Post:
    b666m

     
    b666m | # 75 | 2010-02-19, 19:37 | Report

    Originally Posted by fatalsaint View Post
    /bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot'
    works.

    xterm changes to busybox, executes the script and i'm able to see the echo-outputs.

    so i guess... i will remove some lines in the desktop-file. ^^

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 76 | 2010-02-19, 19:56 | Report

    ok... please don't ask me why... but after writing a sms and going back to test the desktop file... it works!
    strange... but i'm happy now *g*

    ok... not 100%... the terminal pops up, leaves everything black except the top bar and closes after a few seconds...
    it would be nice to see the output of my echos too (:

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 77 | 2010-02-19, 19:59 | Report

    You'd probably have to work osso-xterm into there somewhere instead of using busybox.. not sure how'd you do that without something to test with.

    It probably started working because the .desktop file was finally reloaded by Hildon. Maybe it caches them or something.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 78 | 2010-02-19, 22:09 | Report

    [QUOTE=fatalsaint;537192]You'd probably have to work osso-xterm into there somewhere instead of using busybox.. not sure how'd you do that without something to test with. [/code]

    can't get xterm to work. maybe there is a hack-around too. ^^

    Originally Posted by
    It probably started working because the .desktop file was finally reloaded by Hildon. Maybe it caches them or something.
    oh... i think the tracker (or something equal) is very aggressive. just after editing the file my cpu-usage goes up. so i think it's scanning the complete hildon-folder right afterwards. (:

    Edit | Forward | Quote | Quick Reply | Thanks

     
    borgmountain | # 79 | 2010-03-02, 14:25 | Report

    I need to run 2 commands from the desktop file command ala:
    'root' and afterwards 'start bluetoothd' in one x-terminal session.
    Anyone got an idea on how to do this?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 80 | 2010-03-02, 14:27 | Report

    Originally Posted by borgmountain View Post
    I need to run 2 commands from the desktop file command ala:
    'root' and afterwards 'start bluetoothd' in one x-terminal session.
    Anyone got an idea on how to do this?
    Add an sudoers entry (see /etc/sudoers.d for examples) and then 'sudo /sbin/start bluetoothd'.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 8 of 10 | Prev |   6     7   8   9     10   | Next
vBulletin® Version 3.8.8
Normal Logout