maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   NFS on N800 prob with adduser Perl (https://talk.maemo.org/showthread.php?t=6664)

nzcarrick 2007-06-05 20:47

NFS on N800 prob with adduser Perl
 
Hi All,
1st post, I have been reading a lot of the posts and it seems in order to install nfs-common I need to install the adduser program which is part of Perl. Can someone please give me a pointer as to how I get perl installed as I have googled to death without success on getting perl on an N800, alternatively, if someone can let me know if I'm on the right track regarding NFS using the latest release that would be great.
#uname -a
Nokia-N800-10 2.6.18-omap1


Been using Linux for a while (not compiling) but maemo is new.

Cheers

nzcarrick

nzcarrick 2007-06-06 10:29

Re: NFS on N800 prob with adduser Perl
 
Ok,
maybe the correct question is does anybody have NFS working with the latest kernel on the N800....anyone? and if so did you install nfs-common ?

Regards

nzcarrick

mich 2007-06-06 20:39

Re: NFS on N800 prob with adduser Perl
 
NFS works like a charm here, on said kernel. I use it to stream video off my Linux PC with maemo mplayer.

These are the packages, don't remember where I got them from:

Code:

/home/user # dpkg -l | grep perl
ii  perl-base                                          5.8.3-3osso6                The Pathologically Eclectic Rubbish Lister.
/home/user # dpkg -l | grep adduser
ii  adduser                                            3.51                        Add and remove users and groups
/home/user # dpkg -l | grep perl
ii  perl-base                                          5.8.3-3osso6                The Pathologically Eclectic Rubbish Lister.
/home/user # dpkg -l | grep nfs
ii  nfs-common                                        1.0.10sdk3                  NFS support files common to client and serve
ii  rx-34-kernel-nfs-modules                          0.1                          NFS modules for rx-34 kernel

The following commands are necessary to activate once the packages are in place:
Code:

insmod /lib/modules/current/sunrpc.ko
 insmod /lib/modules/current/lockd.ko
 insmod /lib/modules/current/nfs.ko
  portmap start
  mount -t nfs 192.168.0.5:/usr/share/media /media/nfs


nzcarrick 2007-06-07 10:06

Re: NFS on N800 prob with adduser Perl
 
Hi Mich,
thanks for your reply, Cant find this ( 5.8.3-3osso6 ) version of perl. I assume that my version ( 5.8.3-3osso4 ) does not include adduser.

Do you have the SDK installed? could that have something to do with it.

Cheers

nzcarrick

lon 2007-06-07 11:55

Re: NFS on N800 prob with adduser Perl
 
Just got my n800, and just got NFS working.

What was necessary was roughly:

Installed rx-34-kernel-nfs-modules (need "red pill" mode for this, I believe).

Installed portmap.

Downloaded the nfs-common package, extracted the contents, and installed rpc.statd by hand (as well as a few other programs).

Downloaded the mount package, extracted the contents, and replaced the busybox mount/umount links with the versions from the package.

Inserted appropriate modules.

Mounted away.

I believe that rpc.statd and the other stuff from nfs-common is strictly optional.

I believe that one can even skip using portmap, if the "nolock" option is used when mounting NFS shares.

The real trick seems to be locating the rx-34-kernel-nfs-modules package, and replacing the "mount" program with a non-crippled version. It would be nice if someone would put together a package that made this a little easier.

Cheers,
Lon

nzcarrick 2007-06-07 17:27

Re: NFS on N800 prob with adduser Perl
 
Hi Ion,
where did you put rpc.statd
into /sbin ?

lon 2007-06-07 23:07

Re: NFS on N800 prob with adduser Perl
 
Hi,

As I said, if you don't use file locking (mount with "-o nolock"), then you can dispense with the portmapper and nfs-common packages altogether. Try this first, to make sure everything is working, before worrying about nfs-common.

Now, as I understand it (I'm not really an expert on NFS):

If you want file locking, then you need to install portmap. In addition, the nfs-common package provides the following:

/etc/default/nfs-common
/etc/init.d/nfs-common
/sbin/rpc.lockd
/sbin/rpc.statd
/sbin/showmount
/usr/sbin/nfsstat
/var/lib/nfs/, /var/lib/nfs/sm/, /var/lib/nfs/sm.bak/
various documentation files

rpc.lockd is an unused anachronism (lockd has moved into the kernel, except for very old or very strange kernels).

rpc.statd and the /var/lib/nfs directories are used for file lock recovery across reboots. This is probably not a big concern with the N800, assuming your setup and usage patterns are anything like mine.

The /etc files start up rpc.statd, assuming you also install the appropriate links. They aren't necessary if you run rpc.statd yourself (if you run it yourself, then you can, of course, install it wherever you like).

nfsstat and showmount are not necessary, but you may want them anyway.

Cheers,
Lon


All times are GMT. The time now is 16:12.

vBulletin® Version 3.8.8