Announcement

Collapse
No announcement yet.

Executing Service Menu Commands on a Remote Server?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Executing Service Menu Commands on a Remote Server?

    I am trying to execute a service menu entry on a remote server through Dolphin, but instead of executing the service menu entry it tries to download the file or folder selected on the server to my desktop. Do I need to do something special to the exec line of the service menu?
    OS: Kubuntu 12.10/Windows 8
    CPU: Intel Core i7 2600K
    Motherboard: Gigabyte GA-Z77X-UD5H
    Memory: 2x4GB Corsair Dominator
    Graphics Card: MSI R7770
    Monitor: Dell 2208WFP
    Mouse: Mionix NAOS 5000
    PSU: Corsair 520HX
    Case: Thermaltake Mozart TX
    Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
    Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

    #2
    how are you accessing the sever ?

    samba,SSH,NFS,...ect,ect, ?

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Hey Vinny I tried using fish and sftp.

      Sent from my DROID2 Global
      OS: Kubuntu 12.10/Windows 8
      CPU: Intel Core i7 2600K
      Motherboard: Gigabyte GA-Z77X-UD5H
      Memory: 2x4GB Corsair Dominator
      Graphics Card: MSI R7770
      Monitor: Dell 2208WFP
      Mouse: Mionix NAOS 5000
      PSU: Corsair 520HX
      Case: Thermaltake Mozart TX
      Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
      Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

      Comment


        #4
        try SSH with the -x switch ......it will alow you to launch and see GUI apps on the remote box ...............or do as @SnowHog did hear.http://www.kubuntuforums.net/showthr...291#post303291

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          Thanks Vinny, I will explorer both of those options. I wanted to research -x a bit, but bash -x Didnt turn up any results on google so could you enlighten me on what -x stands for so I can read up on it?

          Sent from my DROID2 Global
          OS: Kubuntu 12.10/Windows 8
          CPU: Intel Core i7 2600K
          Motherboard: Gigabyte GA-Z77X-UD5H
          Memory: 2x4GB Corsair Dominator
          Graphics Card: MSI R7770
          Monitor: Dell 2208WFP
          Mouse: Mionix NAOS 5000
          PSU: Corsair 520HX
          Case: Thermaltake Mozart TX
          Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
          Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

          Comment


            #6
            -x Disables X11 forwarding.

            See man ssh
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              OOPS my bad yup that should have been -X ..........sorry

              VINNY
              i7 4core HT 8MB L3 2.9GHz
              16GB RAM
              Nvidia GTX 860M 4GB RAM 1152 cuda cores

              Comment


                #8
                -X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Originally posted by Xplorer4x4 View Post
                  Thanks Vinny, I will explorer both of those options. I wanted to research -x a bit, but bash -x Didnt turn up any results on google so could you enlighten me on what -x stands for so I can read up on it?

                  Sent from my DROID2 Global
                  sorry mised this one ...............-X is one of SSH's switches or options as it were .....as @Snowhog sead have a look at "man ssh" (type it in a terminal) almost all programs have a man page you can view like this ................man <program name> man is short for "manual"

                  VINNY
                  i7 4core HT 8MB L3 2.9GHz
                  16GB RAM
                  Nvidia GTX 860M 4GB RAM 1152 cuda cores

                  Comment


                    #10
                    Thanks for the info guys, I was able to get X11 fowarding set up and working but still can not seem to get my syntax just right. I opened konsole and played around with basic X11 forwarding:
                    Code:
                    ssh -X -C user@something.com konsole xclock
                    launches a forwarded konsole, but would not launch xclock but if I add -e in there like:
                    Code:
                    ssh -X -C user@something.com konsole -e xclock
                    the konsole and xclock launch. In this menu I am working with mktorrent, and when I execute the service menu, it always tries to download the file to my desktop. For those not familiar with mktorrent:
                    Usage: mktorrent [OPTIONS] <target directory or filename>

                    Options:
                    -a, --announce=<url>[,<url>]* : specify the full announce URLs
                    at least one is required
                    additional -a adds backup trackers
                    -c, --comment=<comment> : add a comment to the metainfo
                    -d, --no-date : don't write the creation date
                    -h, --help : show this help screen
                    -l, --piece-length=<n> : set the piece length to 2^n bytes,
                    default is 18, that is 2^18 = 256kb
                    -n, --name=<name> : set the name of the torrent
                    default is the basename of the target
                    -o, --output=<filename> : set the path and filename of the created file
                    default is <name>.torrent
                    -p, --private : set the private flag
                    -t, --threads=<n> : use <n> threads for calculating hashes
                    default is 2
                    -v, --verbose : be verbose
                    -w, --web-seed=<url>[,<url>]* : add web seed URLs
                    additional -w adds more URLs
                    Here is an example:
                    mktorrent -a http://someurl.com/announce -p -l 21 /home/xplorer4x4/desktop/files/somefile.mkv
                    or for a folder:
                    mktorrent -a http://someurl.com/announce -p -l 21 /home/xplorer4x4/desktop/files/somefolder

                    So that bring me to the exec line:
                    Exec=ssh -X -C user@something.com konsole -e mktorrent -a 'http://someurl.com/announce' -p -l 21 %u
                    I also tried with out the ticks on the announce url.

                    This part is likely irrelevant, In winscp for windows, you could create custom commands sort of similar to a service menu. So I could use:
                    mktorrent -a 'http://YOUR_ANNOUNCE_URL' -p -l 21 !&
                    In this case !& was a wild card used by winscp meaning "Quoted, space-delimited list of files. Command with the pattern will be executed only once for all selected files." which sounds to me like %u would be the equivalent in this case.
                    OS: Kubuntu 12.10/Windows 8
                    CPU: Intel Core i7 2600K
                    Motherboard: Gigabyte GA-Z77X-UD5H
                    Memory: 2x4GB Corsair Dominator
                    Graphics Card: MSI R7770
                    Monitor: Dell 2208WFP
                    Mouse: Mionix NAOS 5000
                    PSU: Corsair 520HX
                    Case: Thermaltake Mozart TX
                    Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                    Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                    Comment


                      #11
                      Little bump here, I really need to get this working asap!

                      Sent from my DROID2 Global
                      OS: Kubuntu 12.10/Windows 8
                      CPU: Intel Core i7 2600K
                      Motherboard: Gigabyte GA-Z77X-UD5H
                      Memory: 2x4GB Corsair Dominator
                      Graphics Card: MSI R7770
                      Monitor: Dell 2208WFP
                      Mouse: Mionix NAOS 5000
                      PSU: Corsair 520HX
                      Case: Thermaltake Mozart TX
                      Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                      Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                      Comment

                      Working...
                      X