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