fastai/courses

Cannot run setup_p2.sh script

jbarrigapartarrieu opened this issue · 6 comments

Hi,
Trying to configure the AWS GPU server but get the following error:
XXX-MBP:Downloads XXX$ bash setup_p2.sh
setup_p2.sh: line 7: syntax error near unexpected token newline' setup_p2.sh: line 7: '

What could this be? I just did the AWS configuration, line 7 on the script refers to us-west-2 which I set up. Many thanks in advance for all help!
J

Did you download the RAW file? View the contents of the file. If you just copy the link and wget it, you end up with HTML.

Is the file supposed to be html @walterlsb? Because I used wget with the link address, and a bunch of the htmls in the file. The size comes out to 52kb, while his is only 2kb.. I'm getting so confused :(

Nice, I just used that feature as soon as I saw your reply. I still haven't gotten it to work on my Windows 10 ASUS.. were you able to get it working rather quickly? I'm anxious to start... I just gotta figure it out I guess.

Now that you have it - look at setup_p2 and you'll see you need to download setup_instance.ssh into the same directory. Have you got it?
I confess, I had trouble with cygwin and ended up making my laptop dual boot with linux and it all just worked better.

after downloading from ''http://files.fast.ai/files/setup_p2.sh'', i still have syntax error like '' #setup_p2.sh: line 2: syntax error near unexpected token newline' setup_p2.sh: line 2: ' ''.
i'm doing in ubuntu. can you guys please provide me suggestions and solutions.
Thanks in advance.