Skip to main content.

2003-Mar-14

On a Debian box, I mounted a remote NFS share by doing: apt-get install nfs-client mount -t nfs 192.168.0.2:/usr/local/pkgsrc /mnt

To remove "essential" Debian packages, do like:

dpkg --remove --force-remove-essential adduser

To setup a NFS server, I did:

vi /etc/exports
/etc/rc.d/rpcbind start
/etc/rc.d/mountd start
/etc/rc.d/nfsd start
They need to be started in that order, or mountd complains (via syslog) that it can't register UDP or TCP services. Or nfsd logs that it can't register with udp portmap.

Also syslog had

mountd[17116]: "/usr/pkgsrc", line 1: `/usr/pkgsrc' is not a file or a directory
It was a symlink, so I fixed /etc/exports so it referenced the real directory.

To mount I did:

mount_nfs 192.168.0.1:/usr/pkgsrc /tmp/mnt
But it returned:
mount_nfs: rpcbind on server: RPC: Port mapper failure - RPC: Timed out
Typo above: no NFS on that server; changed IP and it worked!
192.168.0.2:/usr/local/pkgsrc on /tmp/mnt type nfs
And on the NFS server, /var/db/mountdtab shows what's mounted too.

On server, /etc/rc.d/nfslocking is ran if nfs_server is set, but only used if lockd or statd is enabled. **I wonder if I need these?

tcpdump has a security issue. This is fixed in revision 1.34 (tcpdump's numbers not NetBSD's) of print-isakmp.c. The one included with NetBSD is 1.29 (tcpdump's revision number). And pkgsrc/net/tcpdump is out-of-date too. I asked tech-security if it matters.

My pr pkg/19066 of 14/Nov/2002 still hasn't been addressed. So I sent a diff to tech-pkg and to gnats to see if someone will do it. Its uname works fine.

Notices that gcpio was never fixed for GNU_PROGRAM_PREFIX. I sent patch to gnats. (wiz had closed the PR 18886 on Feb. 26.)