lanceseidman / PiCAST

PiCAST turns your $35 Raspberry Pi in to a Chromecast like Device.
https://munchron.com
1.77k stars 264 forks source link

sh setup.sh --> setup.sh: 8: setup.sh: Syntax error: newline unexpected #52

Open jbonlinea opened 7 years ago

jbonlinea commented 7 years ago

Hi there,

Well, everynthing is in the title, I'm kind of a noob so not sure what could I say.

On a Rpi 3 with Raspian up to date, I downloaded the setup.sh file in my home folder, ran chmod +x setup.sh, setup.sh is now executable but nothing happend, so I tried setup.sh and sh setup.sh, but only get this in return setup.sh: 8: setup.sh: Syntax error: newline unexpected. If I browse to http://ip-to-your-Pi:3000 replacing with my ip, I have a connexion failure (in french : "La connexion a échoué").

I'm a noob but usually find my way, but now I have now clues what's wrong, but that it seems that there is an error, maybe at the 8th caracter, or line 8 ?

Any help would be welcome.

Thank's in advance.

db47 commented 7 years ago

Right click on setup.sh --> Open--> Execute in Terminal window ... and let the magic happens!

LuisDiazUgena commented 7 years ago

Hi!

I'm on a ssh session to my pi and I'm getting this same error:

pi@raspberrypi:~/picast $ ./setup.sh
./setup.sh: line 7: syntax error near unexpected token `newline'
./setup.sh: line 7: `<!DOCTYPE html>'

I've downloaded setup.sh file using wget directly from the terminal. I suppose that it's not going to be a problem.

Greetings