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
Raspberry Pi でMac のTimeMachineサーバを作ってみる
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
kenkino
January 16, 2025
Technology
210
0
Share
Raspberry Pi でMac のTimeMachineサーバを作ってみる
kenkino
January 16, 2025
More Decks by kenkino
See All by kenkino
RPIネットワークモニタ復旧
kenkino
0
51
Intel Mac で雑にローカルLLM その2 ~~雑にGPUも使ってみた~~
kenkino
0
1k
応用情報処理試験「よくわかんないけど、何か受かった」ので考察してみる
kenkino
0
95
猟銃所持許可を取ってみた
kenkino
2
150
Rasberry Pi が吹っ飛んだのでTime MachineサーバをSambaで作り直してみた
kenkino
0
300
狩猟免許を取ってみた
kenkino
1
130
OSCについて2024 -ウィズコロナのOSCについて
kenkino
0
71
4Kディスプレイを買ってみた。
kenkino
0
61
Intel Macで雑にローカルLLM
kenkino
1
1.2k
Other Decks in Technology
See All in Technology
Claude Teamプランの選定と、できること/できないこと
rfdnxbro
1
2.4k
Eight Engineering Unit 紹介資料
sansan33
PRO
3
7.2k
DIPS2.0データに基づく森林管理における無人航空機の利用状況
naokimuroki
1
210
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
220
2026年度新卒技術研修 サイバーエージェントのデータベース 活用事例とパフォーマンス調査入門
cyberagentdevelopers
PRO
8
8.5k
インフラを Excel 管理していた組織が 3 ヶ月で IaC 化されるまで
geekplus_tech
3
190
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
900
サイバーフィジカル社会とは何か / What Is a Cyber-Physical Society?
ks91
PRO
0
190
ルールルルルル私的函館観光ガイド── 函館の街はイクラでも楽しめる!
nomuson
0
190
Azure PortalなどにみるWebアクセシビリティ
tomokusaba
0
260
NgRx SignalStore: The Power of Extensibility
rainerhahnekamp
0
230
猫でもわかるKiro CLI(CDKコーディング編)
kentapapa
1
110
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
500
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
150
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
190
The Cult of Friendly URLs
andyhume
79
6.8k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
320
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
520
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
Transcript
Raspberry piで Time Machineサーバを作る
このスライド Raspberry piを使ってMacのTime Machineバック アップサーバを作るという話。
自己紹介 • 名前:木下兼一 • 趣味:家のネットワークいじり FreeBSD、Linux、Raspberry Piいじり サイクリング、キャンプ、 ドローン(屋外で飛ばせるのが欲しい&資格取らんと)
Macのバックアップどうしてます? • 普通はUSB HDDを繋いでバックアップ? – 据え置きならいいけど持ち運びが面倒 • NASもあるけどどうなんですかね • 昔はTime
Capsuleなんてありましたが • まぁ作ってみますか
材料 • Raspberry Pi 4 : LANが1Gbpsフル対応、USB3 にも対応したので使える • USB接続HDD
: 自分が使っているMacのスト レージの2倍の容量のモノを用意
下準備 • Raspberry pi 4 : – microSDにraspberry pi OSを書き込んで起動
– セキュリティやら諸々設定 • USB接続HDD : Macに接続してフォーマット – フォーマットはHFS Plus • フォーマット後 – HDDのパーミッションを変更 • 「everyone」 • 「読み/書き」 にセットしてアンマウント
Raspberry Pi パッケージインストー ル • Raspberry pi 4で下記のパッケージをインス トール –
$ apt install netatalk – $ apt install avahi-daemon – $ apt install hfsprogs hfsplus
USB HDD設定 • USB HDDマウント用ディレクトリを作成 • USB HDDを接続 • 下記コマンドでUSB
HDDのIDを確認 – $ blkid • /etc/fstab に記述 – UUID=USB HDDのID マウントするディレクトリ hfsplus force,rw,user,auto,nofail 0 0 • マウント
設定ファイル等を作成 • 下記設定ファイルを作成 – /etc/netatalk/afp.conf – /etc/nsswitch.conf • サービス起動ファイルを作成 –
/etc/avahi/services/afpd.service
サービス起動 • 下記コマンドでサービスを起動 – # service avahi-daemon start – #
service netatalk start • Raspberry Pi起動時にサービスを立ち上げてお きたい場合は下記も設定 – # systemctl enable avahi-daemon – # systemctl enable netatalk
Macの設定 • Macの「システム設定」→「一般」→「Time Machine」でバックアップの設定を開く • +をクリックしてRaspberry Piにマウントした ディスクが出てくるのでバックアップ用に設定
ということで ご静聴ありがとうございました!!