Q&A for How to Execute INSTALL.sh Files in Linux Using Terminal

Return to Full Article

Search
Add New Question
  • Question
    How to run a Linux program from terminal
    Community Answer
    Enter these commands into the terminal: cd /location of file/. For example, /home/username/Documents./name_of_file.extension. Replace these with the name of the file/program and the extension (commonly .desktop in Linux or .exe (executable) or .sh (script). Make sure the file/program is marked as executable in its properties.
  • Question
    I typed: chmod +x install.sh but the output is chmod: cannot access 'install.sh': No such file or directory.
    Pingu
    Top Answerer
    This means that there is no install.sh file. Linux is case-sensitive, so if you type the file name as install.sh, it won't find a file that is named, for example, INSTALL.sh. Also check for typos, like typing isntall.sh instead of install.sh. Try typing ls to list all files in the current directory. If the install.sh file is not in the current directory, you need to change into the directory with that file using the cd command.
  • Question
    I want my (.sh) files to be executable by 1 word like "test" without commanding "./test.sh | bash test.sh". How to do that?
    Pingu
    Top Answerer
    If that's a program that someone else wrote, you can usually run "sudo make install" to install it, and then it will be possible to just type the program name. If it is a script that you wrote yourself, do the following: Add the line "#!/bin/bash" (without the quotation marks) to the beginning of the script file. Rename the file to not have ".sh" at the end, for example "test.sh" to just "test". Finally, move your file to the "/usr/bin" directory. Then, you can just type the word (in this example, "test") to execute the script. Also, when working from the Linux bash shell, you don't need to type the " | bash test.sh" part, you can just write "./test.sh".
  • Question
    Followed all instructions worked till last the step but nothing happened.
    Jisjo
    Community Answer
    We would need to know the error messages when you executing each command before being able to troubleshoot your issue.
  • Question
    It states after I execute sudo ./install.sh that my platform is not supported. Does anyone know why?
    MOHMMD ELFA
    Community Answer
    Are you using 32 bit or 64 bit? If you are using 32 bit, you might be trying to start a 64 bit program. Or you might not meet the minimum requirements. Also, if you see x86, then that means 32 bit.
  • Question
    How is zipping and unzipping the script different from saving it to the desktop folder?
    MOHMMD ELFA
    Community Answer
    When you save it to desktop, that tells the file(s) to put themselves there. But when you zip and unzip, you just compress (save space) and decompress (takes up more space).
  • Question
    What is too many argument error in installation?
    MOHMMD ELFA
    Community Answer
    You put more arguments than necessary. This command has enough arguments: su name . This command has too many or too little: su Jane Eric.
  • Question
    I typed bash install.sh but the output was install: no input file specified?
    Community Answer
    Make sure you specify where the file needs to go or you might need to go into a folder outside of the home directory.
  • Question
    After I have entered the printer name, MX490USB, the terminal window closes. I receive no messages. I find it strange, because I see it has already identified the printer in the previous step.
    Rohankumaryadavs
    Community Answer
    To fix this, just reset your devices. Or, you'll need to run through a wizard. Here's how: Open Windows search by pressing Windows Key + Q. Type in "printer." Select Printers & Scanners. Hit Add a printer or scanner.
Ask a Question

      Return to Full Article