NFS サーバ

Debian LS-QL

LS-QL を NFS サーバにする。何とも脈絡のないハックだ。

パッケージ情報のアップデート

root@qube:~# apt-get update
Get:1 http://ftp.jp.debian.org squeeze Release.gpg [835 B]
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en
Get:2 http://ftp.jp.debian.org squeeze Release [89.9 kB]
Get:3 http://ftp.jp.debian.org squeeze/main Sources/DiffIndex [2038 B]
Get:4 http://security.debian.org squeeze/updates Release.gpg [835 B]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Get:5 http://ftp.jp.debian.org squeeze/main armel Packages/DiffIndex [2038 B]
Get:6 http://security.debian.org squeeze/updates Release [44.6 kB]
Get:7 http://ftp.jp.debian.org squeeze/main Sources [4826 kB]
Hit http://security.debian.org squeeze/updates/main Sources
Get:8 http://ftp.jp.debian.org squeeze/main armel Packages [8440 kB]
Hit http://security.debian.org squeeze/updates/main armel Packages
Fetched 13.4 MB in 30s (441 kB/s)
Reading package lists... Done
root@qube:~#

nfs-user-server のインストール

LS-GL の時に準じて nfs-user-server をインストールする
root@qube:~# apt-get install nfs-user-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nfs-user-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nfs-user-server' has no installation candidate
root@qube:~#
?ない?

パッケージを探す

root@qube:~# apt-cache search NFS
	:
	:
nbd-client - Network Block Device protocol - client
nbd-server - Network Block Device protocol - server
nfs-common - NFS support files common to client and server
nfs-kernel-server - support for NFS kernel server
nfs4-acl-tools - Commandline and GUI ACL utilities for the NFSv4 client
nfswatch - Program to monitor NFS traffic for the console
nmon - performance monitoring tool for Linux
	:
	:
確かにない。

nfs-kernel-server のインストール

仕方がないので、nfs-kernel-server をインストールする。
LS-GL の時にはエラーになったのだが、、、
Buffalo のカーネルを使ってるし、、、
root@qube:~# apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap
The following NEW packages will be installed:
  libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common
  nfs-kernel-server portmap
0 upgraded, 7 newly installed, 0 to remove and 19 not upgraded.
Need to get 562 kB of archives.
After this operation, 1638 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libevent-1.4-2 armel 1.4.13-stable-1 [53.9 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libgssglue1 armel 0.1-4 [20.5 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main libnfsidmap2 armel 0.23-2 [28.6 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main librpcsecgss3 armel 0.19-2 [32.3 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main portmap armel 6.0.0-2 [37.5 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main nfs-common armel 1:1.2.2-4 [233 kB]
Get:7 http://ftp.jp.debian.org/debian/ squeeze/main nfs-kernel-server armel 1:1.2.2-4 [156 kB]
Fetched 562 kB in 0s (1108 kB/s)
Preconfiguring packages ...
Selecting previously deselected package libevent-1.4-2.
(Reading database ... 11485 files and directories currently installed.)
Unpacking libevent-1.4-2 (from .../libevent-1.4-2_1.4.13-stable-1_armel.deb) ...
Selecting previously deselected package libgssglue1.
Unpacking libgssglue1 (from .../libgssglue1_0.1-4_armel.deb) ...
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_armel.deb) ...
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_armel.deb) ...
Selecting previously deselected package portmap.
Unpacking portmap (from .../portmap_6.0.0-2_armel.deb) ...
Selecting previously deselected package nfs-common.
Unpacking nfs-common (from .../nfs-common_1%3a1.2.2-4_armel.deb) ...
Selecting previously deselected package nfs-kernel-server.
Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4_armel.deb) ...
Processing triggers for man-db ...
Setting up libevent-1.4-2 (1.4.13-stable-1) ...
Setting up libgssglue1 (0.1-4) ...
Setting up libnfsidmap2 (0.23-2) ...
Setting up librpcsecgss3 (0.19-2) ...
Setting up portmap (6.0.0-2) ...
Starting portmap daemon....
Setting up nfs-common (1:1.2.2-4) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
Adding system user `statd' (UID 104) ...
Adding new user `statd' (UID 104) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
Starting NFS common utilities: statd.
Setting up nfs-kernel-server (1:1.2.2-4) ...

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
Starting NFS common utilities: statd.
Not starting NFS kernel daemon: no support in current kernel. ... (warning).
!root@qube:~#
やっぱりあかんか、、、

最近、失敗ばっかり。へこむ

アンインストール

!root@qube:~# dpkg -P nfs-common nfs-kernel-server portmap
(Reading database ... 11596 files and directories currently installed.)
Removing nfs-kernel-server ...
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Purging configuration files for nfs-kernel-server ...
Removing nfs-common ...
Stopping NFS common utilities: statd.
Purging configuration files for nfs-common ...
dpkg-statoverride: warning: No override present.
dpkg: warning: while removing nfs-common, directory '/var/lib/nfs' not empty so not removed.
Removing portmap ...
Stopping portmap daemon....
Purging configuration files for portmap ...
Processing triggers for man-db ...
root@qube:~#


LS-QL
バッファローダイレクト
楽天市場
amazon
livedoorデパート
Sofmap
バリューモア
Yahoo!ショッピングトップ
ムラウチドットコム


地デジ化(2)リベンジ?
ハックの記録
LinkStation/玄箱 をハックしよう

地デジ化(3)三度目の正直?

Copyright (C) 2003-2011 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市