I am trying to create a telnet shortcut. I cant seem to find a way to do this. Any ideas?
Asked
Active
Viewed 1,265 times
0
1 Answers
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 possibilitiesExec=telnet localhost
I'm using
localhost
as target host. replacelocalhost
with your target host.
OR
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

A.B.
- 90,397
-
-
@A.B. Please dont remove it worked nicely. I was able to create it without the script. I justr executed the telnet string. As I agree it seems like its covered alot(because I probably ready every post) After spending hours trying to create it. It wa s not working.
JacobVlijm thank you as well for your help. I consider myself a noob. But am willing to learn. Becuase who likes Windows :)
Thanks again!!!
– Josh Aug 17 '15 at 18:56
.desktop
file with a complicated command? In other words: what is the command you want to make the shortcut run? – Jacob Vlijm Aug 17 '15 at 16:22Exec=/bin/bash -c "your-usual-command-to-run-telnet"
should be the Exec= line. If you make the.desktop
file executable, you can just double click on it to run the command inside it. – Jacob Vlijm Aug 17 '15 at 17:23There was an error launching the application.
– Josh Aug 17 '15 at 17:40.desktop
file as a standalone launcher or as a Unity launcher makes no difference however. Let me know if you manage :) – Jacob Vlijm Aug 17 '15 at 17:48.desktop
file you created? (We'llremove some comments afterwards). Does it need to run in a terminal btw? – Jacob Vlijm Aug 17 '15 at 17:51