I’m happy to help to the best of my limited abilities.
I’m not sure what is your current obstacle. Did my comment about requesting access to P2 instances from Amazon make sense? Jeremy mentions it in the first minute of the setup video:
All I did was to read the text in the last image you posted.
Sorry if I misunderstood your issue. In that case, please restate.
JP
@ Vladi: I am trying to resolve this step as well and from what I have figured out based on comments in this forum is that the wget command is not copying the right stuff. In Jeremy’s video after the cat setup_p2.sh (7:52 min) shows what the file should look like, however in my terminal it is an html file for google login or something like that, similar to what you are getting as you posted above . There is a suggestion to use dos2unix to create a clean version of the setup file but I don’t know how to do that yet. I am running Ubuntu on a chromebook.
the utility dos2unix is usually used to adapt the end-of-line (EOL) style difference between Unix and Windows. I highly doubt it’s an issue here. The utility sure won’t strip out HTML markup.
Silly question, are you logged into Github before issuing the wget command?
Finally, if I’m still off the mark, please provide the exact commands you are using with the exact, full error messages you are getting.
so logging into github didn’t help.
the wget command saved the html code to file setup_p2.sh.7 and cat on this file shows, I think, 7 iterations of that google login html code.
Is there a way to delete these 7 versions of the file before trying wget again?
Thanks,
Sandip
Sandip,
Congratulations on getting it working! I think I never ran into that problem because I cloned the whole fastai git repository instead of wgetting just one file.
I think this goes without saying but you can delete the needless setup_p2.sh.* files.
JP
I can’t get past the “bash setup_t2.sh part”. So any assistance would be gratefully received. I’m using Cygwin on Win7. I did it successfully once but had mistakenly put in the wrong region. So I went to through the steps again and keep getting the errors below when trying to run bash setup_t2.sh
./setup_instance.sh: line 5: $’\r’: command not found
./setup_instance.sh: line 8: $’\r’: command not found
./setup_instance.sh: line 128: syntax error: unexpected end of file
I’ve tried running dos2unix without success. I’ve tried doing some of the steps in different orders etc. Below is except from Console:
Tim@TimHP-PC ~/courses/setup
$ bash setup_t2.sh
setup_t2.sh: line 4: $’\r’: command not found
setup_t2.sh: line 9: syntax error near unexpected token elif' 'etup_t2.sh: line 9:elif [ $region = “eu-west-1” ]; then
Tim@TimHP-PC ~/courses/setup
$ bash setup_t2.sh
Only us-west-2 (Oregon), eu-west-1 (Ireland), and us-east-1 (Virginia) are currently supported
Tim@TimHP-PC ~/courses/setup
$ aws configure
AWS Access Key ID [****************JSSQ]: "Password Removed"
AWS Secret Access Key [****************Q4LK]: "Password Removed"
Default region name [us-east-2]: us-west-2
Default output format [text]: text
Tim@TimHP-PC ~/courses/setup
$ bash setup_t2.sh
./setup_instance.sh: line 5: $’\r’: command not found
./setup_instance.sh: line 8: $’\r’: command not found
./setup_instance.sh: line 128: syntax error: unexpected end of file
Tim@TimHP-PC ~/courses/setup
$ bash setup_t2.sh
./setup_instance.sh: line 5: $’\r’: command not found
./setup_instance.sh: line 8: $’\r’: command not found
./setup_instance.sh: line 128: syntax error: unexpected end of file
Long
As you correctly guessed, complaints of ‘\r’ and end-of-file (EOF) are signs of file format mismatch between Unix and Windows. So you correctly ran the dos2unix utility on setup_t2.sh.
But note how later on the error message is generated by the ‘setup_instance.sh’ script. You need to run the conversion utility on it, and any other script called.
Hi mchineLRN,
here’s how I would start troubleshooting:
Line 20 is the last line of the script; there are recommendations in this forum that the last line/end syntax may have invisible errors; dos2unix has been suggested as a fix. Cloning the entire github course repository is another. Search this forum for past Line 20 errors
read the output you get with the cat command and see if that is all correct
This is my first query which I decided to post here after a lot of searching through this forum and in the internet. I am running Windows 7, Anaconda 2.7 and have installed Cygwin. I was able to configure aws instance and received the instanceID which I saved to my location. When I try to connect using the statement
ssh -i/home/sswaroop/.ssh/aws-key.pem ubuntu@ec2-34-212-69-12.us-west-2.compute.amazonaws.com
I get the following :
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file]
[-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]