the-raspberry-pi-guy / lcd

This repository contains all of the code for interfacing with a 16x2 Character I2C LCD Display. This accompanies my YouTube tutorial here: https://www.youtube.com/watch?v=fR5XhHYzUK0
186 stars 107 forks source link

Cannot run install.sh #56

Closed vismodo closed 1 year ago

vismodo commented 1 year ago

Describe the bug Cannot run install.sh

Executed command and associated error

sudo sh install.sh # i also tried using sudo install.sh
install.sh: 21: ./setup.sh: Permission denied

Host and software info

Checklist

Additional context I have not used the raspberry pi without ssh. The pi has never been setup. I use a Pi 4B and the official 64 bit rpi os.

warrence commented 1 year ago

im having the same problem too

cgomesu commented 1 year ago

Do you still get permission denied if you try running setup.sh with sudo?

sudo bash setup.sh

The only thing that the install.sh script does is call setup.sh, which actually installs all related packages and enables I2C.

bvirg commented 1 year ago
chmod u+x setup.sh
cgomesu commented 1 year ago

@vismodo, @warrence: please confirm that @bvirg's suggestion fixes the issue.

cgomesu commented 1 year ago

Please update your local repo (git pull) and try running the install.sh once again. If the issue persists, let me know. I will assume it has been fixed for the time being.