maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   n900 as a nfs server?? (https://talk.maemo.org/showthread.php?t=53164)

bonkel 2010-05-20 13:18

n900 as a nfs server??
 
can i use my n900 as a nfs server? how?

slender 2010-05-20 13:24

Re: n900 as a nfs server??
 
Hmm. I do not know current sitsuation with samba, but you can install openssh server to your n900.

bonkel 2010-05-25 00:31

Re: n900 as a nfs server??
 
hmm , openssh doesn't work with my neutrino...
:(

alfmar 2011-05-08 22:01

Re: n900 as a nfs server??
 
On N900: apt-get install unfs3

On Ubuntu PC: apt-get install nfs-common

On N900, edit /etc/exports and add this line:
/ 192.168.5.11(rw,no_root_squash)

(note: change the "allowed IP address" field with your Ubuntu IP address, use "rw" for read/write or "ro" for read-only)

On N900, start the daemon:
/etc/init.d/unfs3 start

On Ubuntu PC, you can now mount the root directory on the IP address of the N900 (change the IP accordingly):
sudo mount.nfs 192.168.5.7:/ /mnt
ls -al /mnt/home/user/MyDocs/DCIM


And pronto! -it works.


Note: my N900 and my Ubuntu PC both use fixed IP addresses (that "192.168.5.7" is my N900 fixed address).

Raif 2011-05-08 22:14

Re: n900 as a nfs server??
 
yes download Tiny Samba from the repos

dchky 2011-05-09 16:15

Re: n900 as a nfs server??
 
Quote:

Originally Posted by Raif (Post 1002408)
yes download Tiny Samba from the repos

NFS, not samba good sir. :-)

The answer is still yes though. Alfmar summed it up nicely.

Cyclops 2011-08-07 17:48

Re: n900 as a nfs server??
 
Hi @all,

I was also intrested in using nfs on my n900. I tried to make it like alfmar has descripted it. But something goes wrong.
Probably I got a complete Blackout (Don't seeing the forest because of the many trees) :confused:

PC with Ubuntu 9.10 (IP: 192.168.1.200)
N900 (IP: 192.168.1.13)
I've installed unfs3 like descripted above. Starting, restarting and stopping of /etc/init.d/unfs3 is no problem.
/etc/exports on N900 looks like following (First I tried /home/user/MyDocs/downloads but I decided to make it exactly like the description in this thread):
Code:

/ 192.168.1.200(rw,no_root_squash)
By mounting with sudo mount.nfs 192.168.1.13:/ /mnt follows an error message:
Code:

mount.nfs: access denied by server while mounting 192.168.1.13:/
I also tried to modify /etc/hosts by adding
Code:

192.168.1.200 media
But no result.

To see, if nfs is running I made this:
Code:

media@media:~$ rpcinfo -p 192.168.1.13
  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100003    3  udp  2049  nfs
    100003    3  tcp  2049  nfs
    100005    1  udp  2049  mountd
    100005    3  udp  2049  mountd
    100005    1  tcp  2049  mountd
    100005    3  tcp  2049  mountd
media@media:~$ rpcinfo -p 192.168.1.200
  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp  37344  status
    100024    1  tcp  43724  status
    100021    1  udp  43917  nlockmgr
    100021    3  udp  43917  nlockmgr
    100021    4  udp  43917  nlockmgr
    100021    1  tcp  52816  nlockmgr
    100021    3  tcp  52816  nlockmgr
    100021    4  tcp  52816  nlockmgr
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100003    4  udp  2049  nfs
    100003    2  tcp  2049  nfs
    100003    3  tcp  2049  nfs
    100003    4  tcp  2049  nfs
    100005    1  udp  51989  mountd
    100005    1  tcp  41052  mountd
    100005    2  udp  51989  mountd
    100005    2  tcp  41052  mountd
    100005    3  udp  51989  mountd
    100005    3  tcp  41052  mountd

This looked ok to me...

I also tried to edit a /etc/hosts.deny and a /etc/hosts.allow although it was not descripted or documented. I'm really despaired. I'm sure it cannot be a big thing.

Does anyone has an idea?
Thanks a lot in advance!

I'm sorry if I should have made a new Thread for this.

Greetings,...

Cyclops 2011-12-30 18:54

Re: n900 as a nfs server??
 
OK...
Meanwhile I changed on my PC the Ubuntu Version to 10.04 and I tried mounting it on a Netbook.
On this Netbook there's installed Ubuntu 10.04 too. It worked fine. No Problems.
Trying to do the same on my N900, and I got the same error message as before (...access denied by server while mounting...).
Portmapper runs; unfs3 runs...

rpcinfo -p on n900 with this result:

Code:

  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100003    3  udp  2049  nfs
    100003    3  tcp  2049  nfs
    100005    1  udp  2049  mountd
    100005    3  udp  2049  mountd
    100005    1  tcp  2049  mountd
    100005    3  tcp  2049  mountd

At last I added the option 'insecure' to my /etc/exports because of using ports higher than 1024. But still no success. :(

If anybody has an idea... please let me know. Thank you very much!

Greetings, and a happy new year!


All times are GMT. The time now is 07:15.

vBulletin® Version 3.8.8