0

I am trying to create a telnet shortcut. I cant seem to find a way to do this. Any ideas?

Alex Jones
  • 8,192
Josh
  • 15

1 Answers1

0

Using a simple desktop file:

  • Create a new file in ~/.local/share/applications

    nano ~/.local/share/applications/telnet.desktop
    
  • Add the lines below

    [Desktop Entry]
    Name=Telnet localhost
    Comment=Telnet client
    Exec=telnet localhost
    Icon=terminal
    Type=Application
    Terminal=true
    Categories=Utility;
    StartupNotify=true
    StartupWMClass=telnet
    
  • The line Exec= …, two possibilities

    1. Exec=telnet localhost

      I'm using localhost as target host. replace localhost with your target host.

    OR

    1. Exec=/full/path/to/your/telnet_script

      Use your own script if you want, eg

      #!/bin/bash
      telnet localhost
      

      Make the script executable and add the full path to your script to the Exec= property


enter image description here

A.B.
  • 92,125