|
@@ -1,3 +1,23 @@
|
|
# RoboCar
|
|
# RoboCar
|
|
|
|
|
|
-This repo is for MyToysRHacked project to control the remote car
|
|
|
|
|
|
+This repo is for MyToysRHacked project to control the remote car
|
|
|
|
+
|
|
|
|
+## Installation
|
|
|
|
+ssh to the pi
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+sudo mkdir /opt/RoboCar
|
|
|
|
+sudo chown $USER:$GROUP /opt/RoboCar
|
|
|
|
+git clone https://git.gilgoldman.com/Eran/RoboCar.git /opt/RoboCar/
|
|
|
|
+chmod +x /opt/RoboCar/server/websocketd
|
|
|
|
+chmod +x /opt/RoboCar/server/socketScript.py
|
|
|
|
+echo "@reboot /opt/RoboCar/server/websocketd --port=8080 /opt/RoboCar/server/socketScript.py" >> /tmp/cron.install
|
|
|
|
+crontab /tmp/cron.install
|
|
|
|
+sudo apt install nginx
|
|
|
|
+sudo mkdir /var/www/RoboCar
|
|
|
|
+sudo chown $USER:$GROUP /var/www/RoboCar/
|
|
|
|
+sudo sed -i 's/www\/html/www\/RoboCar/g' /etc/nginx/sites-available/default
|
|
|
|
+sudo service nginx restart
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+
|