SSH into Root
$ ssh [email protected]
Change Root Password
sudo apt-get -y install python-pip git | |
sudo pip install -U platformio | |
platformio -f init --ide clion --board esp12e | |
sudo chmod 777 /dev/tty* | |
platformio serialports list | |
cp ~/.platformio/packages/framework-arduinoespressif/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino src/ | |
# Set upload speed from 115200 to 921600 | |
echo "upload_speed=921600" >> platformio.ini |
SSH into Root
$ ssh [email protected]
Change Root Password
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
# This file should be placed on the directory of ~/blog/config | |
upstream unicorn { | |
server unix:/tmp/unicorn.todo.socket fail_timeout=0; | |
} | |
server { | |
listen 80 default; | |
#server_name example.com; | |
root /home/username/blog/public; |