2019-11-01から1ヶ月間の記事一覧

Raspberry PiでDjango+mariaDB

はじめにRaspberry PiでDjangoを動かしてみます。DBは、mariaDBで。前提 Raspberry Pi 3 Model B raspbian MariaDB Python 3.7.3 とりあえず外部からアクセスしたい djangoをインストールする $ sudo pip3 install django プロジェクトを作成するsampleとい…

Raspberry Piにインストールしたmariadbに別の端末から接続できない

はじめにRaspberry Piにインストールしたmariadbに別の端末から接続しようとすると、以下のメッセージが表示され接続できない。 Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' 前提 Raspberry Pi 3 Model B raspbian MariaDB 50-server.cnf を編集す…

Raspberry Piで固定ip

はじめにRaspberryPiで固定ipを設定します。前提 Raspberry Pi 3 Model B raspbian 無線LANで固定ip vim 192.168.1.10 に設定する interfaces を編集する sudo vim /etc/network/interfaces auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0…

Raspberry PiでWifi接続

はじめにRaspberryPiでWPA-PSKのWifiに接続します。前提 Raspberry Pi 3 Model B raspbian 有線LANに繋ぎます。 vim wpa_supplicant.confを編集する sudo vim /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=ne…