Can't run a shell script [duplicate]
Solution 1:
Right click on the file, then choose "Properties". From the dialog check the "Allow executing file as program" like in the picture below. Then close the dialog and double-click on the file to execute.
Solution 2:
First you need to make your file executable,
in directory type,
sudo chmod+x flipscreen.sh
sudo bash flipscreen.sh
Solution 3:
OpenNingia's answer will work, but for those who will come googling later, you can also do through the commandline:
open terminal, and goto the folder where your script is located
chmod +x <yourScript>
then execute it as
./<yourScript>