This repo is for MyToysRHacked project to control the remote car
Ubuntu c19838bafa Update readme and add code snippet | пре 5 година | |
---|---|---|
server | пре 5 година | |
.gitignore | пре 5 година | |
LICENSE | пре 5 година | |
README.md | пре 5 година | |
p.py | пре 5 година | |
websocketd | пре 5 година |
This repo is for MyToysRHacked project to control the remote car
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