Find the answer to your Linux question:
Results 1 to 5 of 5
Hey guys, sorry if this is in the wrong thread. I'm really new to this and am still figuring things out. Anyways, I have two lines of commands that I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    25

    Terminal Commands to executable (Fedora)


    Hey guys, sorry if this is in the wrong thread. I'm really new to this and am still figuring things out. Anyways, I have two lines of commands that I use in the terminal to launch minecraft. They are

    cd Downloads
    java -jar minecraft.jar

    I would like to turn this into some sort of executable shell program that I could click on and minecraft could launch automatically. I tried to do this myself with some googling and such, but to no avail. I was wondering If someone could help me by posting something I can use with instructions on how to use it. Any help is appreciated. I'm really new to Linux so I don't know a lot about the coding.

  2. #2
    Just Joined!
    Join Date
    May 2012
    Posts
    43
    Open up a text editor.
    Put in
    Code:
    cd Downloads
    java -jar minecraft.jar
    Save it as a .sh file (eg. launch_minecraft.sh)
    Then right click on the file and tick the box marked "Executable".

  3. #3
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Hello and Welcome!

    Depending on the Desktop Environment that you are using, you should be able to create a shortcut. In the command selection, try:
    Code:
    ~/Downloads/java -jar minecraft.jar
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Oct 2012
    Posts
    25
    Sorry I'm such a noob :P how do I get to the command selection?

  6. #5
    Just Joined!
    Join Date
    May 2012
    Posts
    43
    Quote Originally Posted by Mark25 View Post
    Sorry I'm such a noob :P how do I get to the command selection?
    Right click in a folder or on your desktop.
    Create new > Link to Application
    Application Tab

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •