Raspberry Pi
- Raspberry Pi
- Raspberry Pi - Wikipedia
- こじ研(Raspberry Pi)
- RPi Hub - eLinux.org
- Coder for Raspberry Pi
- Raspberry Pi - Google+
- Kano - Make a Computer
Piper: a Minecraft Toolbox – 人気ゲーム「マインクラフト」で電子工作を学ぶツールボックス- Piper Raspberry Pi Computer Kit
- Raspad: Raspberry Pi Tablet For Your Creative Projects by SunFounder — Kickstarter
書籍
- 世界で1900万台普及している小型コンピューター、ラズベリーパイの創始者に聞く、プログラミング教育の大切さ — Future Edu Tokyo
- Raspberry Pi財団、CoderDojoを合併--子ども向けプログラミング道場を100カ国に - ZDNet Japan
- Raspberry Pi財団、CoderDojoと合併——2020年までに5000のプログラミング道場を開催 | fabcross
機種
Raspberry Pi
- 超小型コンピュータ「Raspberry Pi」、日本では3400円 - ITmedia NEWS
- RSコンポーネンツ、名刺サイズPC「Raspberry Pi」を国内販売 - PC Watch
- Raspberry Pi Type B | Raspberry Pi B | RS Components
- 3000円PC『Raspberry Pi』は悪魔のお味 - 週刊アスキー
Raspberry Pi 3B+
Raspberry Pi Memo - 松谷健史のホームページ- Raspberry Pi 3 B+ 何が変わったの?
- 【 速報 】Raspberry Pi 3 Model B+は、USB Boot Modeがデフォルトだった! | FABSHOP.JP -デジタルでものづくり! ファブショップ !
Raspberry Pi 4B
- Raspberry Pi 4のスペック・3との比較・所感などまとめました。 - りなっくすとらずぱい!
- Raspberry Pi 4の電源周りの不具合の解消版について - りなっくすとらずぱい!
- Raspberry Pi 4 の 64bit版と USB Boot - Qiita
- Raspberry Pi 4B 64bit kernel を試す - Qiita
- RaspberryPiのCPU比較 どれが64bitで動くの?: new_western_elec
- 64ビット版Raspberry Pi OSベータテスト版を動かしてみました | 日記というほどでも
- 8GBのRAM搭載で64ビット対応のRaspberry Pi 4が登場、標準OSも64ビット版がリリース - GIGAZINE
生産現場 raspi
- 町工場がIoTで生産業務を大幅に改善。約3億円の設備投資と約1億円の労務費削減 | さくらのナレッジ
- IT導入の成功は「導入前」にあり? 町工場の稼働率を60%から80%にした「10万円IoT」キット | GEMBA - "現場"の未来を切り拓くメディア
- Raspberry Piでできることとは?海外のIoT開発事例7選
- 「ラズパイ」最初の10年、今後の10年 (1/3) - EE Times Japan
- “ラズパイ”はソニーの工場でも作られている--生みの親が来日 - CNET Japan
- Raspberry Pi搭載CPUの変遷にみた「上手なチップ開発術」 (1/4) - EE Times Japan
- Make: Japan | 2017年のRaspberry Pi
- Raspberry Pi財団創設者が来日、2017年には公式サイトの一部日本語化や「Raspberry Pi Zero」国内発売も | fabcross
- 産業用にも広がるRaspberry Pi、開発者Eben Upton氏 来日インタビュー | IoT NEWS
- ラズベリーパイの販売台数が世界で3,000万台を突破し今後も伸びる勢い
- 日本製ラズパイの工場見学レポート
- RaspberryPi の産業用途 - Qiita
- BiZright BLOG — RaspberryPiを産業用途に利用する場合の課題(BHシリーズの特徴)(佐久間)
- RaspberryPiを産業用途に - BH3 | 株式会社ビズライト・テクノロジー
- 産業用途で運用可能なラズベリーパイ - 産業用ラズパイ | HARTING Technology Group
- 業務用途向けに使用するRaspberry Pi
- 10万円 IoT キット – Industrial Valuechain Initiative
- Raspberry Piを生産ラインに活用——産業用インターフェース「Monarco HAT」 | fabcross
- 「Raspberry Piからそのまま量産に移行したい」、その要望に応える産業用ボード・コンピュータ|チップワンストップ - 電子部品・半導体の通販サイト
- 産業用ラズパイ+センサーが製造現場の自動化を加速 (1/3) - EE Times Japan
- 上野家のホームページ - PC/RaspberryPi/産業用途向けRaspberry PiRaspberry Piの産業用途向け - 資料室
- Raspberry Pi(ラズパイ)をプロダクト活用する上で気をつけたい5つのこと – ツクレル
- 防水型産業用ラズパイ MICA-Rシリーズ | ハーティング-Product Search(プロダクトサーチ)
Raspberry Pi 業務利用
- FunadaさんはTwitterを使っています 「工場とかでラスパイ壊れたっていわれて見ると、壊れたのは電源かSDカードということが圧倒的に多い。経験的には、よく見る「ラズパイ用」のACアダプタはすぐ死ぬ。そこだけ工業用にすれば平気。SDは使い方次第。PoE+ネットワークブートを現場で試したことはまだなくて、それで全部解決したらイイネ」 / Twitter
- みさんはTwitterを使っています 「Raspberry PiのON/OFF用にこんなのあるんだな。標準装備にしてほしい… → https://t.co/b5BREOLCo1」 / Twitter
- [marsee101さんはTwitterを使っています 「Raspberry Piのファイルシステムのリードオンリー化OverlayFS] https://t.co/zWjUovVh2g」 / Twitter
- FunadaさんはTwitterを使っています 「工場とかでラスパイ壊れたっていわれて見ると、壊れたのは電源かSDカードということが圧倒的に多い。経験的には、よく見る「ラズパイ用」のACアダプタはすぐ死ぬ。そこだけ工業用にすれば平気。SDは使い方次第。PoE+ネットワークブートを現場で試したことはまだなくて、それで全部解決したらイイネ」 / Twitter
- ぎーちさんはTwitterを使っています 「ラズパイ、宇宙に持っていったら宇宙線によって誤作動&故障して衛星と通信できなくなったから、使おうとしている大学生諸君には絶対に辞めておけと伝えています。 学生時代に携わっていた衛星で、通信系の先生がラズパイをゴリ押しして、打上げ2週間くらいで通信出来なくなった苦い経験を思い出した。」 / Twitter
- umepさんはTwitterを使っています 「FAの現場にRasp-Piを導入することに反対派なのに気が付くともうお客様のFAのガチ現場に20台以上Piを入れてる・・・安いからガンガンリピート発注が来るのですが、故障率の高さに閉口してます・・自分で自分の首を絞めてる気が・・・所詮、7,000円PCだもんな・・」 / Twitter
- Raspberry Piは本当に壊れやすいのか
- Raspberry Pi のSDカードが壊れ、起動しなくなってしまった場合の修復方法
- Raspberry Piは絶対確実に壊れます。壊れる前の予兆の一覧。 | 短波ロギング
Kernel
apt(apt-get,aptitude)
Ubuntuのインストール
- Install Ubuntu on a Raspberry Pi 2, 3 or 4 | Ubuntu
- [Ubuntu]ローカルIPアドレスを固定にする(18.04/16.04) | 純規の暇人趣味ブログ
- Raspberry Pi4 で Ubuntu 20.04LTS Server を動かす。 | Jura-Zakki 樹羅雑記
- Ubuntu日本語フォーラム / rasupberry pi 3Bでubuntu mate 18.04.2でのwifi 固定IP設定方法を教えてください
ROS
- [ROSとRaspberry Piとタミヤのカムロボットでラジコンを作ろう電気回路編] | BotaLab
- |Raspberry Pi 3にROS2をインストール | RT Robot Shop Blog
Raspberry Pi OS(Raspbian)のインストール
最新
- Raspberry Pi OS with desktop and recommended software Release date: January 11th 2021
- Raspberry Pi OS with desktop Release date: January 11th 2021
- Raspberry Pi OS Lite Release date: January 11th 2021
- Raspberry Pi OS with desktop and recommended software Release date: December 2nd 2020
- Raspberry Pi OS with desktop Release date: December 2nd 2020
- Raspberry Pi OS Lite Release date: December 2nd 2020
- 2020-08-20 Raspberry Pi OS (32-bit) with desktop and recommended software
- 2020-08-20 Raspberry Pi OS (32-bit) with desktop
- 2020-08-20 Raspberry Pi OS (32-bit) Lite
- Raspbian Stretch リリース! | Japanese Raspberry Pi Users Group
- Raspbian Busterリリース!Stretchとの違いとStretchの入手方法 – Isaax Camp
- 【更新情報】Raspberry Pi OS これまでよりもデスクトップ環境を意識した更新内容、PulseAudio、CUPSの採用など | ラズパイダ
モニターとキーボードなしで導入する
- Raspbianのインストールと初期設定 2019年10月版
- Raspbianのインストールと初期設定 2018年10月版
- Raspbianのインストールと初期設定2017年12月版
- Raspberry Piをモニターとキーボードなしで導入する(その1)SSHでのログインまで | 株式会社インデペンデンスシステムズ横浜
- Raspberry Pi に Raspbian をヘッドレス インストール - Qiita
- Raspberry Pi OS (32-bit) with desktop ヘッドレスインストール
イメージをSDカードに書き込む
- ダウンロード
- Index of /pub/raspberrypi/raspios_full_armhf/images
- Index of /pub/raspberrypi/raspios_armhf/images
- Index of /pub/raspberrypi/raspios_lite_armhf/images
- Index of /pub/raspberrypi/raspios_arm64/images
- Index of /pub/raspberrypi/raspios_lite_arm64/images
- Index of /pub/raspberrypi/raspbian/images
SSH
2016-11-25版からSSHはデフォルトで無効
/bootパーティションにssh(またはssh.txt)という名前のファイルを作成する。ファイル名はすべて小文字にする。/bootパーティションはFATなのでWindowsから読み書きすることができる。
Bonjour Print Services (Windows)
raspberrypi.local
ttermpro.exe raspberrypi.local
/auth=<mode> <mode> で指定された認証方式で自動ログインを試みる
password パスワード認証 publickey 公開鍵認証 challenge チャレンジレスポンス(キーボードインタラクティブ)認証 pageant Pageant を用いた公開鍵認証
/user=<username> ユーザ名を指定する /passwd=<password> パスワードを指定する
ttermpro.exe raspberrypi.local /auth=password /user=pi /passwd=raspberry
xfinderの利用方法 | OpenRTM-aist- xfinderの利用方法
- ラズパイ3系やラズパイゼロWで WiFiのアクセスポイントの設定を SDカードの状態で簡単に設定する方法 (ラズパイの WiFiの SSIDやパスワードの設定を HDMI画面やシリアルコンソール無しで設定する方法)
- Raspberry PiのIPアドレスを見つける4つの方法 – Isaax Camp
設定
$ sudo raspi-config
- 言語
$ sudo dpkg-reconfigure locales
- タイムゾーン
$ sudo timedatectl set-timezone Asia/Tokyo
- Wi-Fi(国の設定)
- microSDHCカードの領域拡大 (現在は初回起動時に自動で行われる)
- プロキシ設定
固定IPアドレスを振る
$ sudo vi /etc/dhcpcd.conf # 設定ファイルにこの行以下を追記する interface eth0 static ip_address=192.168.11.101/24 static routers=192.168.11.1 static domain_name_servers=192.168.11.1
- RaspberryPi Raspbian ヘッドレスインストール(Buster編) - Qiita
- Raspberry Pi 3 で固定IPアドレスを設定する(Wifi) - Qiita
- RaspberryPi - Raspberry Pi 2 (Raspbian: jessie) でIPアドレスを固定する - Qiita
ネットワークのリスタート
sudo systemctl restart networking
固定IPの変更
sudo service dhcpcd reload
sudo systemctl restart dhcpcd
apt(apt-get,aptitude)のproxyサーバ設定
proxyサーバの設定はraspi-configで行います。
$ raspi-config
次の設定は必要ありません。
$ cat /etc/apt/apt.conf.d/10proxy Acquire::http::proxy "http://10.2.1.7:8080/"; Acquire::https::proxy "https://10.2.1.7:8080/"; Acquire::ftp::proxy "ftp://10.2.1.7:8080/";
一時的にproxy設定を無効にするには
$ sudo apt -o "Acquire::http::proxy=DIRECT" update
環境変数
$ export http_proxy="http://your.proxy.address:8080/" $ export ftp_proxy="http://your.proxy.address:8080/"
環境変数によるproxyサーバの指定
raspi-configで設定します。
$ raspi-config
$ export http_proxy=http://10.2.1.7:8080 $ export https_proxy=http://10.2.1.7:8080 $ export ftp_proxy=http://10.2.1.7:8080 $ export HTTP_PROXY=http://10.2.1.7:8080 $ export HTTPS_PROXY=http://10.2.1.7:8080 $ export FTP_PROXY=http://10.2.1.7:8080
起動時に設定する(必要ありません)
$ cat /etc/environment http_proxy=http://10.2.1.7:8080 https_proxy=http://10.2.1.7:8080 ftp_proxy=http://10.2.1.7:8080 HTTP_PROXY=http://10.2.1.7:8080 HTTPS_PROXY=http://10.2.1.7:8080 FTP_PROXY=http://10.2.1.7:8080
wgetのproxy設定
raspi-configで設定します。
$ raspi-config
以下は必要ありません。
# vi /etc/wgetrc 以下のコメントを外す。 # https_proxy=http://... # http_proxy=http://... # ftp_proxy=http://... このように記述する。 https_proxy=http://10.2.1.7:8080/ http_proxy=http://10.2.1.7:8080/ ftp_proxy=http://10.2.1.7:8080/
一時的にプロキシを無効にする
$ wget --no-proxy
gitのproxy設定
$ git config --global http.proxy http://10.2.1.7:8080 $ git config --global https.proxy http://10.2.1.7:8080 $ git config --global url."https://".insteadOf git://
$ git config --global http.sslVerify false
gpgのproxyサーバ設定
--keyserver-option http-proxy=http://<アカウント>:<パスワード>@プロキシサーバ:ポート
ブラウザのproxyサーバ設定
ブラウザのproxyサーバの設定は個別に設定する必要がある。Chromiumはシステムのproxyを使うようになっているが、raspbianではシステムの設定にproxyは見つからない。Chromiumのコマンドラインパラメータに--proxy-serverがあるのでこれを使う。
$ chromium-browser --proxy-server="http=http://10.2.1.7:8080;https=https://10.2.1.7:8080"
一度プロキシが通った状態で起動したらプロキシ設定用のプラグインがあるのでそれをインストールすると良い。
- Linuxのchrome,chromiumでプロキシを通す - Qiita
- Google Chrome proxy settings? - Ask Ubuntu
- Raspberry PiのchromiumでProxyサーバを使う - 忘備録-備忘録
以前のMidoriブラウザのproxy設定は、
メニュー → 設定 → ネットワーク
から行える。
OSを最新の状態にする
$ sudo apt update $ sudo apt upgrade
ファームウェアのアップデート
プロキシの設定。
$ sudo HTTPS_PROXY=http://<username>:<password>@proxy:port rpi-update
sudo で環境変数を引き継ぐには-Eオプションをつける。
$ sudo -E rpi-update
vimのインストール
sudo apt install vim
network-managerのインストール
タイムゾーンの設定
$ sudo timedatectl set-timezone Asia/Tokyo
日付時刻の設定
$ sudo date -s '10/24 20:30'
キーボードレイアウトの変更
(1)
sudo dpkg-reconfigure keyboard-configuration
(2)
setxkbmap -layout jp
(3)
日本語入力
$ suto apt inatall scmi-anthy
single user mode
rootのパスワードを忘れたときにはsingle user modeで起動し、passwdコマンドで新しいパスワードを設定する。
バージョン情報
$ cat /etc/debian_version
$ cat /etc/issue
$ lsb_release -a
$ cat proc/version
ruby 1.9.3p194 (2012-04-20 revision 35410) [arm-linux-eabihf]
Python 2.7.3
- Jessie
Python 2.7.9 (default, Mar 8 2015, 00:52:26)
2016-09-23版
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
2017-4-10版
ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]
- Stretch 9.1
2017-09-07版
node -v
v4.8.2
ruby 2.3.3p222 (2016-11-21) [arm-linux-gnueabihf]
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)
2018-06-27版
node -v
v8.11.1
2018-11-13版
- Buster
2019-06-20版
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
Python 2.7.16 (default, Apr 6 2019, 01:42:57)
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
ruby 2.5.5p157 (2019-03-15 revision 67260) [arm-linux-gnueabihf]
node -v
v10.15.2
2021-01-11版
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
ruby 2.5.5p157 (2019-03-15 revision 67260) [arm-linux-gnueabihf]
node -v
v10.23.1
Python
pip
- Index of /
- python - How to get pip to work behind a proxy server - Stack Overflow
- Installation ― pip 8.0.2 documentation
- Installing Python's easy_install using ez_setup.py from behind a proxy server - Stack Overflow
pyenv
Webサーバ(CGI)
- 1分で建てるローカルWebサーバ — msrsblog
- Raspberry Pi のGPIOをWebブラウザから制御してみる : 工作と競馬
- PythonでCGIプログラムを書いてローカルのサーバーもどきで動かしてみた。 - 武器商人@Pythonのブログ
Bluetooth
RasPi3以降にはBlutoothが標準で搭載されている。特に何もしなくてもBlutooth関係のコマンドが使用できる。以下は不要。
$ sudo apt install bluetooth bluez-utils
SPP
従来の方法でSPPを使用するには、
sudo nano /etc/systemd/system/dbus-org.bluez.service
buetoothデーモンが互換モードで起動するように'ExecStart='の行末に'-C' を付け加える。 そして、その行のすぐ後に SPプロフィルを付け加えるために'ExecStartPost='を新たに付け加える。次の2行のようにする。
ExecStart=/usr/lib/bluetooth/bluetoothd -C ExecStartPost=/usr/bin/sdptool add SP
書き換え後の再起動は、以下のコマンドを実行する。
sudo systemctl daemon-reload sudo systemctl restart bluetooth
$ sdptool browse local $ hcitool scan $ sdptool browse 2C:8A:72:F0:DA:89 $ sudo bluez-simple-agent hci0 2C:8A:72:F0:DA:89 $ sudo nano /usr/bin/bluez-simple-agent $ sudo perl -i -pe 's/KeyboardDisplay/DisplayYesNo/' /usr/bin/bluez-simple-agent $ sudo bluez-test-device trusted 2C:8A:72:F0:DA:89 yes $ sudo sdptool add --channel=22 SP $ sudo rfcomm listen /dev/rfcomm0 22 $ sudo rfcomm watch /dev/rfcomm0 22
ペアリングの解除
# sudo bluez-test-device remove 2C:8A:72:F0:DA:89
- Raspberry Pi 3 Bluetoothキーボード マウスを使ってみる
- Muro Lab. -Yamamuro Laboratory-
- RaspberryPiでBTキーボード - yunoyaの日記
- Pythonでシリアル通信 - Qiita
- [OBDNマガジン 【.tested】Logitec Bluetooth USBアダプタ LBT-UAN04C2 [Debian Wheezy-Squeeze][AX3][A6]ここ
- [bluetooth Analog Devices Open Source| Mixed-signal and Digital Signal Processing ICs]
- 40歳から始めるブログ: Raspberry PiでBluetoothを使う
- kakakikikekeのブログ: bluetoothctl と expect で無線キーボードに定期的に接続するスクリプト
- [SOLVED] Control bluetoothctl with scripting?
- linux - bluetoothctl to hcitool equivalent commands - Stack Overflow
- Bluetoothctl automation · GitHub
ダイソーのシャッターボタン
- 100均のBluetoothシャッターとRaspberry Piカメラでオンラインデジカメを作ってみた | Developers.IO
- 100均Bluetoothボタンをラズパイに活用
- Bluetoothシャットダウンボタンを作る #300円でIoTボタン - Qiita
- Jessie
$ sudo apt install bluetooth bluez-tools bluez-firmware
- kakakikikekeのブログ: RaspberryPi の bluetoothctl で無線キーボードに接続
- Raspberry Pi • View topic - Bluetooth RFCOMM - Jessie
- sdptool is broken in Bluez 5 / Networking, Server, and Protection / Arch Linux Forums
- Raspberry Piをbluetooth使用ルータとして活用する (Step2 bluetoothペアリング) - ぱっそ あ ぱっそ
- 倉庫のブログ: Raspberry Piに挑戦-Bluetoothキーボードの接続
- Raspberry Pi • View topic - Bluetooth issues
無線LAN
WPS
$ sudo wpa_cli wps_pbc
または、
$ sudo wpa_cli -i wlan0 wps_pbc
または、
$ sudo wpa_cli -i wlan0 reconfig
認証
- Pi 4 Raspbian Buster PEAP connection failed - Raspberry Pi Forums
- Setting up a wireless LAN via the command line - Raspberry Pi Documentation
- ラズパイからADと連携したRADIUS認証が必要な無線LANに接続する (WPA2-EAP) - Qiita
以下の設定方法はBusterでは接続できなかった。Stretchでは接続できている。
- パスワード
$ echo -n 'パスワード' | iconv -t utf16le | openssl md4 > hash.txt
- wpa_supplicant.conf (初期値)
$ cat /etc/wpa_supplicant/wpa_supplicant.conf country=JP ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1
上のファイルに追加する
network={ ssid="SSID" priority=1 proto=RSN key_mgmt=WPA-EAP pairwise=CCMP auth_alg=OPEN eap=PEAP identity="ユーザー名" password="パスワード" phase1="peaplabel=0" phase2="auth=MSCHAPV2" }
- 追記
# lsusb # wpa_passphrase "SSID" "password" network={ ssid="SSID" #psk="password" psk=暗号化されたパスワード } # vi /etc/wpa_supplicant/wpa_supplicant.conf network={ ssid="SSID" psk=暗号化されたパスワード } # vi /etc/dhcpcd.conf interface wlan0 static ip_address=192.168.11.101/24 static routers=192.168.11.1 static domain_name_servers=192.168.11.1
再起動して、ifconfigで確認する。
- DHCP
sudo dhclient -v -r wlan0 sudo dhclient -v wlan0
- raspberry pi zero W (strech)の wps ハマりどころメモ: ぐれむりんずだんすぱーてぃ
- ルータのボタンをワンプッシュ!Raspberry Pi Zero WのWifi接続を簡単に切り替える方法 - もぐてっく
- RaspberryPi - Raspberry Pi Raspbian Wheezy(2015-05-05)で最速Wi-Fiセットアップ - Qiita
- Raspberry Pi 3 Model Bの WiFiを無線LANアクセスポイントにする方法 (ラズパイ3に内蔵の WiFiを無線LANアクセスポイントにして通信環境を設定する方法)
- Raspberry Pi 3でWifi接続(PEAP, MSCHAPv2) - Qiita
- [Raspberry Pi • View topic - Tutorial] Setup Raspberry Pi - PEAP/MSCHAPV2 conne
- Raspberry Pi 3 and PEAP-MSCHAPv2 WiFi Networks
ELECOM WDC-150SU2M (8188euチップセット)
- [Linux - WifiのSuspend設定を解除するRaspberry pi] - Qiita
- Raspberry Pi + Raspbian 無線 LAN アダプタの省電力モードをオフにする - Linearstar
- Raspberry PiのOSアップデートでWDC-150SU2MがLXPanelから使えなくなっていた原因がわかった - 知的好奇心 for IoT
SSH
VNC
2016-09-23版から標準でVNCサーバがインストールされている。
ただし、有効にするにはraspi-configで設定する必要がある。
- Raspberry Piの設定【VNCサーバ(tightVNC)の設定】 - Aldebaranな人のブログ
- 【ラズパイ】VNCサーバ on Raspberry pi セットアップ手順 - "Diary" インターネットさんへの恩返し
Raspberry Piを別のPCからリモート操作 » DesignSpark- UltraVNC - 窓の杜ライブラリ
- Download VNC Viewer for Windows | VNC Connect
$ sudo apt install tightvncserver
xrdp
$ sudo apt install xrdp $ cd /etc/xrdp $ sudo wget http://w.vmeta.jp/temp/km-0411.ini $ sudo chown xrdp:xrdp km-0411.ini $ sudo ln -s km-0411.ini km-e0010411.ini $ sudo ln -s km-0411.ini km-e0200411.ini $ sudo service xrdp start
Python
Java
Node.js (JavaScript)
$ sudo apt install nodejs $ sudo apt install npm $ sudo npm cache clean $ sudo npm install n -g $ sudo -E n stable
TypeError: Request path contains unescaped characters.
npm config set registry http://registry.npmjs.org/
- プロキシ
$ sudo npm -g config set proxy http://proxyserver:8080 $ sudo npm -g config set https-proxy http://proxyserver:8080
nは環境変数http_proxy,https_proxyを参照する。sudoには-Eオプションが必要。
sudo npm install -g yarn sudo yarn global add nodebots-interchange --prefix /usr/local
環境変数http_proxy,https_proxyを参照する。sudoには-Eオプションが必要。
Ruby
sudo apt install ruby
GPIO
RPi.GPIO
Jessie以降では最初からインストールされている。
WiringPi
Raspberry Pi 4以降は削除された。
「最新のバージョン2.52を入れる必要がある」そうです。
現在は標準でインストールされている。
- Jessie
sudo apt install wiringpi
WebIOPi
$ wget https://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz $ tar xvzf WebIOPi-0.7.1.tar.gz $ cd WebIOPi-0.7.1 $ wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch $ patch -p1 -i webiopi-pi2bplus.patch $ sudo ./setup.sh
$ cd /etc/systemd/system/ $ sudo wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi.service
pigpio
標準でインストール済み。自動起動するので特別な操作は不要。raspi-config(Remote GPIO)で設定する。
確認
sudo systemctl status pigpiod
起動
sudo systemctl start pigpiod
停止
sudo systemctl stop pigpiod
- [Raspberry PiのGPIO制御の決定版 pigpio を試す - karaage. からあげ]
- Raspberry Pi 3でpigpioの使用 | TomoSoft
- Raspberry Pi 3 pigpioを使ってLチカ PWM編
- Raspberry Pi 3 pigpioを使ってLチカ PWMパラメータ確認編
- pigpioでサーボモーターを動かす。 – Blue-black.ink
- Raspberry PiのハードウェアPWMをpigpioで出力する - Qiita
- Raspberry Pi3でpigpioライブラリを使ってLチカする - Qiita
gpiozero
sudo apt install python3-gpiozero
sudo apt install python-gpiozero
- gpiozero — Gpiozero 1.5.1 Documentation
- 13. API - Input Devices — Gpiozero 1.5.1 Documentation
- 13.1.5. DistanceSensor (HC-SR04)
Blue Dot
I2C
sudo raspi-config
以下はもう必要ない。
sudo apt-get install i2c-tools sudo /usr/sbin/i2cdetect -y 1
- Raspberry Pi の I2C を有効化する方法 (2015年版) - 意識低い開発者のBlog
- 最近の Raspberry Pi で I2C を有効化 - Rabbit Note
- Raspberry Pi で I2C の Repeated Start Condition を有効化 - Rabbit Note
- How To Use A MCP23017 I2C Port Expander With The Raspberry Pi – Part 1
RTC
- raspberry pi と RTCモジュール | Linux & Android Dialy
- Raspberry PIへリアルタイムクロックモジュールのI2C接続 | TomoSoft
- 工作と小物のがらくた部屋: Raspberry Pi で I2C その1 秋月RTCモジュール
- Raspberry Pi(ラズベリーパイ)で秋月のリアルタイムクロックRTC-8564NBをバックアップ回路付きで使う
BME280 (I2C)
- ラズベリーパイで温度・湿度・気圧をまとめて取得!AE-BME280でIC2通信 | Device Plus - デバプラ
- 秋月の温湿度・気圧センサモジュールAE-BME280で、温度・湿度・気圧を取得する(1/2): ままれのblog
- SWITCHSCIENCE/samplecodes
- PythonでCGIプログラムを書いてローカルのサーバーもどきで動かしてみた。 - 武器商人@Pythonのブログ
- 赤外線LEDを積んだRaspberry Piでスマートルームをつくる(テスト編) | うたかたサバイバー
MPL115A2
SPI
raspi-config
spidevはパッケージが存在し標準でインストールされています。
python-spidev python3-spidev
以下は、不要。
git clone http://github.com/doceme/py-spidev.git/ cd py-spidev sudo python setup.py install
- Simple ADC with the Raspberry Pi | We Saw a Chicken …
- RaspberryPi - Raspberry PiのPythonからTMP36のアナログ温度センサとMCP3008のADコンバータを使う - Qiita
- Raspberrypi LM61CIZ Raspberrypi mpc3208 pythonで温度測定 – アイテックブログ
wget https://github.com/doceme/py-spidev/archive/master.zip
ADC
- 10bit 8ch ADコンバータ MCP3008−I/P: 半導体 秋月電子通商 電子部品 ネット通販
- 10bit 2ch ADコンバータ MCP3002−I/P: 半導体 秋月電子通商-電子部品・ネット通販
- Raspberry Pi 3でpythonを使いA/Dコンバーターでアナログ信号を検出する! - Qiita
- Raspberry PiにA/DコンバータMCP3002をつなぐ - Qiita
- 5ドル!ラズパイ・ゼロ(Raspberry pi Zero)でIoT (9) A-Dコンバータの利用6 MCP3002/MCP3008 | 電子工作の環境向上
- Raspberry Pi でADC MCP3002 を使ってみる - 完全に個人的な備忘録
ServoBlaster
Debian stretchでは、動作しないそうです。
- Raspberry Pi でサーボモータ制御 - Qiita
- PiBits/ServoBlaster at master · richardghirst/PiBits
- [|https://github.com/richardghirst/PiBits/archive/master.zip]
- RaspberryPiとWiringPiでサーボを動かす - Qiita
- SG90データシート
PlatformIO Core
LIRC
$ sudo apt install lirc
$ sudo systemctl status lircmd
- Raspbian Stretchで LIRC機能を使った学習リモコン、赤外線リモコンを動かす方法 (Raspberry Pi Raspbian Stretchで赤外線リモコンの制御アプリ LIRC 0.9.4cの設定方法)
- Raspberry pi 3 で部屋の赤外線受信できる機器をコントロール!
音声
MIDI
sudo apt install libasound2-dev sudo pip install rtmidi sudo pip install mido
Wiiリモコン
$ sudo apt install wminput $ wget https://www.raspberrypi-spy.co.uk/archive/python/wii_remote_1.py
$ sudo pip install wiiuse --proxy=
- ラズパイ3 と Wii リモコンをつなげる | Moonmile Solutions Blog
- 白いバナナ: Wiiリモコンハック with Raspberry Pi
- HOWTO: Python Wiimote fun (LEDs, rumble, accel, buttons) - maemo.org - Talk
- CWiiDをUbuntu 14.04にインストールする ( パソコン ) - 熱血挑戦者のブログ - Yahoo!ブログ
- XWiimote - ArchWiki
- abstrakraft/cwiid: Linux Nintendo Wiimote interface
- Wiimote/Library - WiiBrew
- Bad constant? · Issue #9 · dvdhrm/xwiimote-bindings · GitHub
- GitHub - sanjay900/Wiimote-Guitar-Linux: Backport the guitar fixes from a previous linux kernel, that were removed because they were submitted alongside drums.
- tswast/pywiiuse: Automatically exported from code.google.com/p/pywiiuse
$ sudo apt install libxwiimote-dev swig $ sudo apt install autoconf libtool $ ./autogen.sh --prefix=/usr
$ sudo apt install libncurses5-dev
PSコントローラ
Wiiリモコンプラス
- Connecting a Wii Remote Plus controller with Debian 8 (jessie) – Gordon Lesti
- Left Brain Tinkering: Wii Remote Plus and Linux
- bluetooth - How to pair Wiimote in Ubuntu 15.10? - Ask Ubuntu
PS3コントローラ
RapiroをPS3のDUALSHOCK3で動かしてみる | Makuake(マクアケ)NOTE クラウドファンディングブログ- Welcome to QtSixA!
- Raspberry Pi 2にPS3のコントローラーをBluetoothで接続する - カイワレスタイル
- Raspberry Pi で戦車を作る(Bluetooth/PS3 Dualshock3編) | Moonmile Solutions Blog
PS4コントローラ
esp8266 MQTT
- インストール
$ sudo apt install mosquitto mosquitto-clients
- サブスクライバー(受信)
$ mosquitto_sub -d -t test -v
- パブリッシャー(送信)
$ mosquitto_pub -d -t test -m "こんにちは"
- Python用MQTTライブラリ
$ pip install paho-mqtt
mjpg-streamer
$ sudo apt install -y cmake libv4l-dev libjpeg-dev imagemagick $ git clone https://github.com/jacksonliam/mjpg-streamer.git $ cd mjpg-streamer/mjpg-streamer-experimental $ Emake $ sudo make install
$ sudo ./mjpg_streamer -i "./input_uvc.so -f 10 -r 640x480 -d /dev/video0 -y -n" -o "./output_http.so -w ./www -p 8080"
$ /usr/local/bin/mjpg_streamer -i "input_raspicam.so -x 640 -y 480 -fps 15 -q 80" -o "output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www"
- mjpeg-streamer+ipcam-viewでRaspberry Piのカメラの映像をAndroidへ配信する - Qiita
- Raspberry Pi3にmjpg-streamerを入れる - Qiita
gstreamer
sudo apt install cmake libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-tools libgtk2.0-dev gstreamer1.0-omx=1.0.0.1-0+rpi12+jessiepmg gstreamer1.0-plugins-bad gstreamer1.0-plugins-good
ffmpeg
- 超簡単! ffmpeg + rtmp + nginxを使ってraspberry pi + webカメラのストリーミング環境を作る(raspbian buster版) | IoT PLUS
- Raspberry Pi 4 をライブ配信デバイスとして作ろうと思ったけど失敗だった件 - Max notes
- Raspberry Pi 3とFFmpegでUSBカメラの映像と音声をストリーミングする
Nginx (Webサーバー)
- インストール
$ sudo apt install nginx-full $ sudo apt install php7.3-fpm
$ cd /etc/nginx/sites-available/ $ cp -a default test $ sudo vi test $ cd ../sites-enabled $ rm default $ ln -s /etc/nginx/sites-available/test test
- Raspbian stretch に最新 Nginx をインストール(2019/03)
- Nginx の site-available は必要? - スタック・オーバーフロー
- perusio/nginx_ensite: A script to enable or disable a site in nginx.
$ git clone https://github.com/perusio/nginx_ensite.git
pi@raspberrypi:~ $ apt-cache policy nginx nginx: インストールされているバージョン: 1.14.2-2 候補: 1.14.2-2 バージョンテーブル: *** 1.14.2-2 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages 100 /var/lib/dpkg/status pi@raspberrypi:~ $
(2020/7/7)最新は1.19.1
Apache2 (Webサーバー)
$ sudo apt install apache2
- ドキュメントルート
/var/www/html
MySQL (データベースサーバー)
$ sudo apt install mysql-server
# mysql -u root -p Enter password:root
$ sudo mysql_secure_installation
Redmine (プロジェクト管理ソフトウェア)
$ sudo apt install mysql-server $ sudo apt install redmine redmine-mysql libapache2-mod-passenger
途中いろいろ聞かれるがデフォルトのまま進める。データベースサーバはmysqlを選択する。
設定をやり直すときは、
$ sudo dpkg-reconfigure -plow redmine
$ sudo ln -s /usr/share/redmine/public /var/www/html/redmine
$ cat /etc/apache2/mods-available/passenger.conf
<IfModule mod_passenger.c> PassengerDefaultUser www-data PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby RailsBaseURI /redmine </IfModule>
$ sudo su -c 'cat << EOF > /etc/apache2/sites-available/redmine.conf <Directory /redmine> Options FollowSymLinks PassengerResolveSymlinksInDocumentRoot on AllowOverride None </Directory> EOF'
Apacheを再起動する
$ sudo systemctl restart apache2
アクセスは
http://ホスト/redmine
- Redmine on Raspberry Pi 2 | ktkr3d
- Ubuntu 14.04にRedmine(MySQLとApache2)をインストールする - Narrow Escape
- RaspberryPiにRedmineをインストール(チケットファイル添付対応) - Kamuycikap - SentenceDataBase
PHP5
busterでPHP5はなくなりました。
sudo apt install php5
PHP7
busterではPHP7.3になっています。
sudo apt install php
または
sudo apt install php7.3
busterではPHP7.0も残っています。
sudo apt install php7.0
ドキュメントルートはApache2と同じく、
/var/www/html
PHPの確認
index.php
<?php phpinfo();
- Raspbian stretch に PHP7.3 をインストール(2019/04)
- How To Install PHP (7.3, 7.2 & 5.6) on Debian 9 Stretch - TecAdmin
- 最新(buster)
pi@raspberrypi:~ $ php -v PHP 7.3.4-2 (cli) (built: Apr 13 2019 19:05:48) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.4-2, Copyright (c) 1999-2018, by Zend Technologies pi@raspberrypi:~ $
Laravel
Micorsoft SQL Server (MSSQLServer)
- RaspberryPi上のPython3でSQLServerに読み書き - hotch-potch, Note to self
- IoTの格納先を考える(1)SQL Server Express | 電子工作(MAKE)
- Raspberry PI and Microsoft SQL databases - IT-Admins
Scratch
- Raspberry PiでScratchを使う際の覚書
- Squeak - Dev - International text input on X11 | Page 3
- Linux版Scratch1.4で日本語入力 - Qiita
- neuralassemblyのメモ: NOOBS 1.9.2でインストールしたRaspbian (jessie) 上のScratchで日本語入力を可能にしてみた
- http://swikis.ddo.jp/WorldStethoscope/16
- littleBits Arduino モジュールをScratchから使う
FreeBASIC
マインクラフト
- Minecraft Pi editionで牛、羊、ゾンビなどが出てくるサバイバルモードを楽しむ – FABSHOP.JP -デジタルでものづくり! ファブショップ !
- Raspberry PiデビューしてMinecraft Pi Editionで遊んだ話 - Qiita
- マインクラフト − Raspberry Pi公式ドキュメントを日本語訳
- How to run the Minecraft Pi Edition Survival Patch in 2019 : raspberry_pi
- mmlpi - Minecraft Launcher for Raspberry Pi. Versions 1.0 - 1.14 (+ OptiFine, Forge) - Raspberry Pi Forums
- Marekkon5/mmlpi: Minecraft Modern Launcher Pi
- Raspberry Pi 3 B で Minecraft 1.12.2 を動かす - Qiita
FLiR
$ sudo raspi-config $ sudo apt install qt4-dev-tools $ wget https://github.com/groupgets/LeptonModule/archive/master.zip $ unzip master.zip
- raspberrypi_video
- Pi zero はどれだけ使えるか? - Take’s diary
- blog/2015-07-16/Flir leptonという赤外線カメラ - Linux工作室
- FLIR Lepton Hookup Guide - learn.sparkfun.com
- FLiR開発キット - スイッチサイエンス
- Quick start guide: Lepton and Raspberry Pi – Lepton Maker Community
- How to install FLIR Lepton Thermal Camera and applications on Raspberry Pi - Appropedia: The sustainability wiki
- PureThermal 1 - FLIR Lepton Smart I/O Module by GetLab | GroupGets
- groupgets/pylepton: Quick and dirty pure python library for interfacing with FLIR lepton
- Streaming the output of Flir Lepton on Raspberry Pi - Google グループ
- raspbian - How can you get video display using the FLIR thermal camera - Raspberry Pi Stack Exchange
- Pylepton Zero - Hackster.io
- Thermal Imaging Camera: 13 Steps
- FLIR_Lepton_with_FT232xx
- Flir_lepton
CNC
Machinekit (Linux CNC)
Estlcam
- Estlcam.de 2D / 3D CAM Software und CNC Steuerung...
- ESTLCAM紹介 - dokidoki!
- [|https://youtuber.byte.jp/pc/1207]
- [|https://qiita.com/GENM/items/5401117b8a710739520c]
- [|http://ohkin.mydns.jp/archives/367]
RT-Preempt カーネル
- #Rapberry Pi: Preempt-RT Kernel Performance on Rasbperry PI 3 Model B+ | LeMaRiva
- GitHub - lemariva/RT-Tools-RPi: Tools for Patching the Rasbian kernel with RT-Preempt.
- 秋の夜長の Raspberry Pi 3 カーネル・セルフ・ビルド: new_western_elec
- notro/rpi-source: Raspberry Pi kernel source installer
- RealtimePi – out of the box real-time RaspberryPi Raspbian | Guysoft's Weblog
- GitHub - guysoft/CustomPiOS: A Raspberry Pi and other ARM devices distribution builder
- [|]
Xenomai
PICnc
- Home · kinsamanka/PICnc-V2 Wiki · GitHub
- GitHub - kinsamanka/PICnc-V2: PICnc V2 is a PIC32 based hardware step generator board that is designed for MachineKit
- GitHub - Wireb/PICnc-5axis: PICnc V2 is a PIC32 based hardware step generator board that is designed for MachineKit
EMC 2 Arduino
- GitHub - KurtJacobson/HAL-2-Arduino: Fork of HAL2Arduino v0.6d from https://github.com/dewy721/EMC-2-Arduino
- dewy721/EMC-2-Arduino: Arduino + LinuxCNC = Your very own FREE high-end CNC controller.
- Emc2Arduino | Make your very own CNC machine or Robot the easy way, with an Arduino!
レベル変換
PLC
- PLCとRaspberry Piはとっても相性がいい。(通信の行い方) - Qiita
- ラズベリーパイとPLC通信
- PythonでPLCのレジスタアクセスを試す - Qiita
- GitHub - masahase0117/PySLMPClient: 三菱電機のSLMP (Seamless Message Protocol)のクライアント
- MCプロトコル - Qiita
- SLMP - Qiita
- PythonでPLC(シーケンサ)と通信してデータを読み出す方法
- Python - Pythonを用いたPLCとのソケット通信について|teratail
- 三菱電機製PLC編] (3.0MB) - Canon Global
- 2020-01-01から1年間の記事一覧 - chao_demiglaceのブログ
- PythonでFA制御、マルチ言語混用するPLCなどでIoT進めるドイツ | 日経クロステック(xTECH)
書籍
Pi STARTER
Raspberry Pi Desktop
- [メモ] VirtualBoxにて、Raspberry Pi Desktop(2017-11-16-rpd-x86-stretch版) - Qiita
- Raspberry Pi Desktop - Raspberry Pi
bot
LINE
- [|]
プログラムの自動起動
- Raspberry Piでプログラムを自動起動する5種類の方法を比較・解説 - Qiita
- Raspberry Piでプログラムを自動起動する5種類の方法を比較・解説
- systemdを用いたプログラムの自動起動 - Qiita
- Ubuntu 18.04 LTSのデスクトップに「自動ログイン」する方法 | LFI
- 自動的にログインする - Ubuntu 18.04 LTS デスクトップガイド改
- Ubuntu 再起動時に自動でログインする方法 - Qiita