Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
シェル芸人見習い修行 〜 ラズパイ で 一発環境 構築してみた 〜
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Saito5656
December 03, 2022
Programming
220
1
Share
シェル芸人見習い修行 〜 ラズパイ で 一発環境 構築してみた 〜
浜松IT コミュニティ忘年会 2022でLTさせていただいたスライドとなります。レベル低くてすいません参加させて頂きありがとうございました。
Saito5656
December 03, 2022
More Decks by Saito5656
See All by Saito5656
今年やったこと最近やったこと2025
saito5656
0
46
ついに(CDKで)Cognito実装した話
saito5656
0
140
今年やったこと最近やったこと2024
saito5656
0
230
今年やったこと最近やったこと
saito5656
1
230
【ポエム】PythonのWatchdogを調べてみた
saito5656
0
670
LoRaデバイスからAWS IoTに通信やってみた
saito5656
1
330
Local NW データを S3 に転送してみた
saito5656
0
97
ラズベリーパイで工場が見える話
saito5656
0
380
工場でStep FunctionsでStep Functions
saito5656
0
210
Other Decks in Programming
See All in Programming
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
110
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
2.3k
My daily life on Ruby
a_matsuda
3
440
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
170
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
250
TSKaigi2026-静的解析への投資がAI時代のコード品質を支える ── カスタムESLintルールの設計と運用
hayatokudou
6
1.1k
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
410
AI Agent と正しく分析するための環境作り
yoshyum
2
590
Are We Really Coding 10× Faster with AI?
kohzas
0
230
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
0
310
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
190
要はバランスからの卒業 #yumemi_grow
kajitack
0
190
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
Building AI with AI
inesmontani
PRO
1
1k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
210
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
700
Building the Perfect Custom Keyboard
takai
2
770
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
320
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
240
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
130
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
110
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Transcript
シェル芸人見習い修行 〜ラズパイで一発環境構築してみた〜 @Saito5656 2022. 12. 3 浜松ITコミュニティ忘年会2022
自己紹介 @Saito 5656 ・自動車部品メーカーにわか情シス二年目 ・JAWS-UG浜松とUnagi.pyに出没 ・元々が情報技術者ではナイのでよくすべる 今日も 滑ってるな…
見守りや見える化等を自作してきました 検知前後15秒の映像 .MP4 生産実績 生産予定 生産予定と実績の差 停止の即時把握 工場のIoT 遠隔見守り
ITに関わりはじめてから約4年 調べて作ってよ 2018年 AWSのマネコン RPiにモニター 2019年 inline editorで Lambda無限loop 2020-2022年
SAM/cfn/sfn shellscriptとかも
今日の話 同じようなことを繰り返すうちに 楽をしたくなった shellscriptで楽ちんだヨシ!
ところで 今度はどんな環境を作る?
これの遠隔操作を前からやりたかった
N gauge Train Client N gauge Train N gauge Train
N gauge Train 192.168.0.0/24 10.10.10.0/24 12VDC 12VDC 12VDC 12VDC Internet mqtts mqtt こんなNWを想定
今日はAP兼Broker構築をご紹介 shellscript実装に挑戦! Pi4B N gauge Train dnsmasq ntp
AP兼Broker構築用shellscripts 8812au driver install 変数定義ファイル Linux package install hostadp.conf 設定
dhcpcd.conf 設定 dnsmasq.conf 設定 hosts設定 iptables設定 ntp.conf設定 .ssh/config設定 wpa_supplicant.conf設定 wpa_supplicant0.conf設定 Thing構築用sh格納path Lambda functions sfn asl.json格納path Linux package install mosquitto passwd設定 Auth.log転送sh Messages転送sh syslog転送sh aws credentials設定 log結合Lambda定義yaml IoT rule定義yaml
一気に実装してみた
ちゃんと動きました
少しそれらしく書けるようになりました
まとめ 繰返し構築する手順をshellscript化しました Nゲージ遠隔操作もぼちぼち取り組んでいきます
ご清聴ありがとうございました