Breaking News
Home / How To / Settlers of Raspi – a settler of Catan Clone with electronics: 5 steps

Settlers of Raspi – a settler of Catan Clone with electronics: 5 steps

Woohoo, now on the fun part! Install raspberries pi: D

Install raspberry pi

Create image

First, you need to download both linked files.

Now follow these steps:

  1. Insert your micro SD card into your computer
  2. Open Win32 Disk Imager
  3. Select the .img file you just downloaded
  4. Click "type"

To access pi we need only a few steps

  1. Go to the SD card start directory
  2. Create a text file called "ssh.txt"
  3. Remove the .txt extension
  4. Open the file " cmdline.txt "
  5. At the end of the file, add ip = (but keep it in the same line as the other text.)

Configure pi

Plug 1

end of an Ethernet cable in your computer

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:

sudo -i
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
give all priveleges on rpiUser. * to & # 39; & # 39; @ & # 39;% & # 39; identified with & # 39; & # 39 ;;

make sure you create a user named rpiUser with the password omgThisIsSoSecret

Source link