Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    xterminal "top" shortcut

    Reply
    Page 3 of 10 | Prev |   1     2   3   4     5   | Next | Last
    timwatt | # 21 | 2009-12-11, 08:56 | Report

    thanks naabi,
    when I say for dummies i mean it. I have created an icon file:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.1
    Name=SSH 
    Terminal=true
    Type=Application
    Comment=SSH Login
    Exec=/usr/bin/osso-xterm
    Icon=terminal
    #X-Window-Icon=timerwidget
    X-Window-Icon=     
    X-HildonDesk-ShowInToolbar=true
    X-Osso-Type=application/x-executable
    in "/usr/share/applications/hildon/" folder i now want it to run this command:
    Code:
    ssh -l root -L 3389:192.111.1.1:3389 222.222.222.222 -p 22
    what should my *.desktop file look like to run this command?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    timwatt | # 22 | 2009-12-11, 17:52 | Report

    anyone know how to do the above?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mikec | # 23 | 2009-12-11, 18:08 | Report

    Try
    osso-xterm -e ssh -l root -L 3389:192.111.1.1:3389 222.222.222.222 -p 22

    Edit | Forward | Quote | Quick Reply | Thanks

     
    juhar | # 24 | 2009-12-11, 18:11 | Report

    Exec=/usr/bin/osso-xterm 'ssh -l root -L 3389:192.111.1.1:3389 222.222.222.222 -p 22'

    That should work

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

     
    timwatt | # 25 | 2009-12-11, 18:23 | Report

    Thanks Juhar that works great I am loving Linux.

    so now: after running SSH command is it potable to run another command from teh same file?
    like launching rDesktop?
    Code:
    rdesktop-cli -f -u username -p password host
    thanks,
    Tim

    Edit | Forward | Quote | Quick Reply | Thanks

     
    archebyte | # 26 | 2009-12-11, 19:05 | Report

    Originally Posted by timwatt View Post
    slightly off topic, but it looks like the expertises exist here.
    I want to run a command in xTerminal (ssh) i would like to create an icon on my desktop.

    Please explain how to make a desktop icon to run a xTerminal command for dummy?
    thanks Tim (ps I used "personal menu" on my n810 to do this)
    An easy way to add an icon to a shortcut for let say, my post above, would be first to find/create a PNG image of dimension 48x48. google this. save file to /usr/share/icons/hicolor/48x48/hildon/

    Modify the .desktop file to include the following line. The right side should be the name of file without the .png. (the name of my file was topx.png)
    Code:
    Icon=topx
    Save the file and reboot to see the icon for the shortcut.

    my topx.desktop shortcut-with-icon for 'top' looks like this:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.1
    Type=Application
    Terminal=true
    Name=topx
    Exec=/usr/bin/osso-xterm top
    Icon=topx
    X-Osso-Type=application/x-executable
    HTH

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
      

    Last edited by archebyte; 2009-12-11 at 19:07.
    The Following 19 Users Say Thank You to archebyte For This Useful Post:
    Andre Klapper, b666m, Bahador, BrettQ, cardiff-blues, dreixel, dvergin, efekt, Flynx, Helmuth, jsbigs, Marshall Banana, MyNokiaN900, noobmonkey, nymajoak, quailstorm, Reflektorfalke, timwatt, totalentropy

     
    go1dfish | # 27 | 2009-12-11, 19:21 | Report

    Originally Posted by kwotski View Post
    For anyone as puzzled as I was by this, I think Andre is really talking about a different file... or maybe.

    At least on my phone, I discovered the following commented-out stanza:

    Code:
    <!--
     <menuitem priority="20" name="Reboot">
      <return>6</return>
      <po>osso-powerup-shutdown</po>
     </menuitem>
     <menuitem priority="10" name="Soft poweroff">
      <return>7</return>
      <po>osso-powerup-shutdown</po>
     </menuitem>
     <menuitem priority="5" name="Top in XTerm">
      <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xter
       <argument type="string">/usr/bin/top</argument>
      </callback>
     </menuitem>
    -->
    in /etc/systemui/systemui.xml while poking around.

    Edit: on a whim I uncommented it (removing the <!-- and --> lines) and it seems to work fine.
    Thanks I was confused by this as well.

    I changed the systemui.xml config but see no change yet, I suppose a reboot is in order?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by go1dfish; 2009-12-11 at 19:32.

     
    les_garten | # 28 | 2009-12-11, 19:21 | Report

    Originally Posted by archebyte View Post
    An easy way to add an icon to a shortcut for let say, my post above, would be first to find/create a PNG image of dimension 48x48. google this. save file to /usr/share/icons/hicolor/48x48/hildon/

    Modify the .desktop file to include the following line. The right side should be the name of file without the .png. (the name of my file was topx.png)
    Code:
    Icon=topx
    Save the file and reboot to see the icon for the shortcut.

    my topx.desktop shortcut-with-icon for 'top' looks like this:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.1
    Type=Application
    Terminal=true
    Name=topx
    Exec=/usr/bin/osso-xterm top
    Icon=topx
    X-Osso-Type=application/x-executable
    HTH
    Glad you brought this up. I have a question about how the icon file is associated. I used a 26x26 file I made for a desktop shortcut. Would yours have worked if you had used a 26x26? I'm wondering about paths and icon directories and how they work. Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??

    There are a lot of icon directories in diff sizes and I'm trying to understand them.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    juhar | # 29 | 2009-12-11, 19:27 | Report

    Originally Posted by les_garten View Post
    Glad you brought this up. I have a question about how the icon file is associated. I used a 26x26 file I made for a desktop shortcut. Would yours have worked if you had used a 26x26? I'm wondering about paths and icon directories and how they work. Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??

    There are a lot of icon directories in diff sizes and I'm trying to understand them.
    I think if you put your icon to /usr/share/icons/hicolor/scalable/hildon/ it will automatically scale your icon at right size to every place where it's needed.
    I'm not so sure about this but just a guess..

    And also i didn't get to work my icon to xterm ssh until i changed "Terminal=true" to "Terminal=false" in app.desktop file.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    archebyte | # 30 | 2009-12-11, 19:44 | Report

    Originally Posted by les_garten View Post
    Would yours have worked if you had used a 26x26?
    Yes. but it doesn't scale nicely.

    Originally Posted by les_garten View Post
    Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??
    If it doesn't show up after a reboot, I am not sure what the problem may be.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 10 | Prev |   1     2   3   4     5   | Next | Last
vBulletin® Version 3.8.8
Normal Logout