Saturday, January 4, 2014

How to run .sh file on your Mac

  1. Open Terminal, navigate to the directory of file using cd command.
    For example: cd ~/Downloads.
  2. run "chmod +x filename.sh" to make the script executable.
  3. run "./filename.sh" to activate the script.
If you got the following error:
"This program requires DISPLAY environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY."
Then you need to run the following command:
"export DISPLAY=:0"

No comments:

Post a Comment