openwrt:install-netatalk
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
openwrt:install-netatalk [2013/08/17 23:54] – [Netatalk に接続] admin | openwrt:install-netatalk [2013/11/21 16:00] (現在) – [インストール] admin | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Netatalk をインストールして | + | ====== Netatalk をインストールして |
- | * OpenWrt: ATTITUDE ADJUSTMENT (12.09-rc1, r34185) | + | * OpenWrt: ATTITUDE ADJUSTMENT (12.09, |
OpenWrt に接続した USB-HDD を Netatalk で共有し、Mac から使える自分専用のファイルサーバにする。 | OpenWrt に接続した USB-HDD を Netatalk で共有し、Mac から使える自分専用のファイルサーバにする。 | ||
行 24: | 行 24: | ||
# opkg update | # opkg update | ||
# opkg list netatalk | # opkg list netatalk | ||
- | netatalk - 2.2.1-4 - netatalk | + | netatalk - 2.2.1-5 - netatalk |
</ | </ | ||
行 31: | 行 31: | ||
< | < | ||
# opkg install netatalk | # opkg install netatalk | ||
- | Installing netatalk (2.2.1-4) to root... | + | Installing netatalk (2.2.1-5) to root... |
- | Downloading http:// | + | Downloading http:// |
Installing libdb47 (4.7.25.NC-6) to root... | Installing libdb47 (4.7.25.NC-6) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libxml2 (2.7.8-2) to root... | Installing libxml2 (2.7.8-2) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libpthread (0.9.33.2-1) to root... | Installing libpthread (0.9.33.2-1) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing zlib (1.2.7-1) to root... | Installing zlib (1.2.7-1) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libgcrypt (1.5.0-1) to root... | Installing libgcrypt (1.5.0-1) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libgpg-error (1.9-1) to root... | Installing libgpg-error (1.9-1) to root... | ||
- | Downloading http:// | + | Downloading http:// |
- | Installing libopenssl (1.0.1c-1) to root... | + | Installing libopenssl (1.0.1e-1) to root... |
- | Downloading http:// | + | Downloading http:// |
Installing librpc (0.9.32-rc2-0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7) to root... | Installing librpc (0.9.32-rc2-0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Configuring libpthread. | Configuring libpthread. | ||
Configuring libgpg-error. | Configuring libgpg-error. | ||
行 59: | 行 59: | ||
Configuring netatalk. | Configuring netatalk. | ||
</ | </ | ||
- | |||
==== Netatalk 用のグループを追加 ==== | ==== Netatalk 用のグループを追加 ==== | ||
行 74: | 行 73: | ||
</ | </ | ||
- | バグのせいで Netatalk が /etc/shadow を読みにいかないようなので、Netatalk に接続するユーザは | + | /etc/passwd と /etc/shadow にユーザ情報を追加する。 |
+ | * /etc/passwd | ||
+ | < | ||
+ | username: | ||
+ | </ | ||
+ | |||
+ | * /etc/shadow | ||
+ | < | ||
+ | username: | ||
+ | </ | ||
+ | |||
+ | ユーザにパスワードを設定する。 | ||
+ | |||
+ | < | ||
+ | # passwd username | ||
+ | </ | ||
行 160: | 行 174: | ||
# opkg install avahi-daemon | # opkg install avahi-daemon | ||
Installing avahi-daemon (0.6.31-5) to root... | Installing avahi-daemon (0.6.31-5) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libavahi (0.6.31-5) to root... | Installing libavahi (0.6.31-5) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libdaemon (0.14-2) to root... | Installing libdaemon (0.14-2) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libgdbm (1.9.1-2) to root... | Installing libgdbm (1.9.1-2) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libexpat (2.0.1-1) to root... | Installing libexpat (2.0.1-1) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing librt (0.9.33.2-1) to root... | Installing librt (0.9.33.2-1) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Installing libdbus (1.4.14-2) to root... | Installing libdbus (1.4.14-2) to root... | ||
- | Downloading http:// | + | Downloading http:// |
Configuring librt. | Configuring librt. | ||
Configuring libdbus. | Configuring libdbus. | ||
行 182: | 行 196: | ||
</ | </ | ||
+ | ==== 設定 ==== | ||
+ | |||
+ | 以下の設定ファイルを編集する。 | ||
+ | |||
+ | * / | ||
+ | |||
+ | Server セクションで以下の値を変更・追加する。詳しい設定内容は [[http:// | ||
+ | |||
+ | * host-name: ログイン前に表示されるサーバ名 | ||
+ | * enable-dbus: | ||
+ | |||
+ | < | ||
+ | host-name=TimeMachine | ||
+ | enable-dbus=no | ||
+ | </ | ||
+ | |||
+ | 細かい設定は、**/ | ||
+ | |||
+ | **XX: | ||
+ | |||
+ | |||
+ | <code xml> | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | <name replace-wildcards=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | * model=TimeCapsule: | ||
+ | * adVN=TimeMachine: | ||
+ | |||
+ | ==== デーモンを起動 ==== | ||
+ | |||
+ | 設定を読み込ませて起動する。初期起動の場合は stop は必要ない。 | ||
+ | |||
+ | |||
+ | < | ||
+ | # / | ||
+ | # / | ||
+ | # / | ||
+ | </ | ||
+ | |||
+ | ==== TimeMachine から接続 ==== | ||
- | ===== TimeMachine からリストアする場合 | + | Avahi の設定が正しければ、 TimeMachine のディスク選択画面で OpenWrt で作成した TimeCapsule が選択可能になっている。 |
+ | ===== TimeMachine からリストア ===== | ||
[option] ボタンを押しながら起動し、リカバリディスクから起動する。 | [option] ボタンを押しながら起動し、リカバリディスクから起動する。 |
openwrt/install-netatalk.1376751286.txt.gz · 最終更新: 2013/08/17 23:54 by admin