Woohoo, now on the fun part! Install raspberries pi: D
Install raspberry pi
First, you need to download both linked files.
Now follow these steps:
- Insert your micro SD card into your computer
- Open Win32 Disk Imager
- Select the .img file you just downloaded
- Click "type"
To access pi we need only a few steps
- Go to the SD card start directory
- Create a text file called "ssh.txt"
- Remove the .txt extension
- Open the file " cmdline.txt "
- At the end of the file, add ip = 169.254.10.1 (but keep it in the same line as the other text.)
Open your favorite SSH client (I use Putty) and connect to the IP address we provided in step above.
Default username and password are "pi" and "raspberries".
In raspi-config, enable I2C.
Get pi on wifi
To get your raspberry pi on your wifi, type the following commands:
wpa_passphrase "mySSID" "myPASSWORD" >> / etc / wpa_supplicant /wpa_supplicant.conf wpa_cli interface wlan0 Reconfigure
Don't forget to replace "mySSID" and "myPASSWORD" with your router SSID and PASSWORD.
Download packages and scripts
We need to install some packages and scripts in order to get this project up and functional, so please specify the following commands:
sudo apt install mariadb server sudo apt install apache2 -y pip install Bottle-Bottle-MySQL Flask-SocketIO PyMySQL
Setting up the database
I n ordering us to use the program to its full potential, we need to install our database! So let's do this shit!
When asked for our password, just press enter, because we have not yet created a user.
Next, it will ask us if we want a root password, choose yes, and enter the desired password.
Choose yes to all other questions.
sudo -i MySQL give all priveleges on rpiUser. * to & # 39; & # 39; @ & # 39;% & # 39; identified with & # 39; & # 39 ;; FLUSH PRIVELEGES
make sure you create a user named rpiUser with the password omgThisIsSoSecret