Create Double-clickable Desktop Icon To Run Terminal Commands?

Discussion in 'Software' started by JohnnyGalaga, Jun 24, 2022.

  1. JohnnyGalaga

    JohnnyGalaga Private First Class

    I’m running Ubuntu 20.04 (Linux) inside of VMWare on a Windows 10 PC. I’m looking to create a desktop icon that you can double-click on to open a terminal window and run some commands. I believe this is called a “shell” file that ends in .sh? I’m new to Linux and am wondering if there’s a way to do this.

    Basically, I want to double-click on a desktop icon and have it:
    Open a terminal window.

    1. Run cd op25/op25/gr-op25_repeater/apps
    2. Run ./multi_rx.py -c hillsboroughwest.json -T hillsboroughwest.tsv -U -l http:0.0.0.0:8080 2> stderr.2 -X (this is a software application with command line arguments).
    3. Open a 2nd terminal window.
    4. Run cd op25/op25/gr-op25_repeater/apps/oplog
    5. Run ./oplog.sh (another software application that works with the first one).

    This is basically for convenience so as not to have to manually do all those steps everytime. Thanks.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds