ビルドサーバの設定メモ

https://help.ubuntu.com/community/NFSv4Howto

apt-get

# apt-get install portmap nfs-common nfs-kernel-server

service portmap restart が動かない場合は、マシンを再起動する。

/etc/exports

/target_dir  192.168.0.1/255.255.255.0(rw,rync)

ワイルドカードドメイン名の省略なので、IP 指定の時は↑のようにする。

/etc/default/nfs-common (Server/Client 側両方)

NEED_IDMAPD=yes

client からマウント

mount -t nfs 192.168.0.1:/target_dir /mount_point

公開鍵

client の id_rsa.pub を host の .ssh/authorized_keys に追加(なければ作成)

sudoers

/etc/sudoers.d に sudoers_local として root:root 440 として、

username ALL=(ALL) NOPASSWD: ALL