Commit 9a7865d7 authored by Carl Hetherington's avatar Carl Hetherington

Tidy up messages a bit.

parent f5223140
Run copy_keys.sh with
bash copy_keys.sh
When prompted enter the password "maker"
Then run the startup script with
bash script.sh
Wait for the message "EV3 Ready." to be displayed, then go to the URL it gives you.
#!/bin/bash
ssh-copy-id robot@10.42.0.3
...@@ -49,6 +49,7 @@ print "Starting listener on EV3" ...@@ -49,6 +49,7 @@ print "Starting listener on EV3"
os.system('scp listen.py %s@%s:' % (EV3_USER, EV3_IP)) os.system('scp listen.py %s@%s:' % (EV3_USER, EV3_IP))
os.system('ssh %s@%s -- "nohup python3 listen.py %d > listen.log 2>&1 &"' % (EV3_USER, EV3_IP, EV3_PORT)) os.system('ssh %s@%s -- "nohup python3 listen.py %d > listen.log 2>&1 &"' % (EV3_USER, EV3_IP, EV3_PORT))
print ('http://cs10.org/snap#open:http://localhost:1330/snap-ev3') print("EV3 ready.")
print('http://cs10.org/snap#open:http://localhost:1330/snap-ev3')
httpd = TCPServer(("", SNAP_PORT), Handler) httpd = TCPServer(("", SNAP_PORT), Handler)
httpd.serve_forever() httpd.serve_forever()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment