Reply
Thread Tools
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#1
can i use my n900 as a nfs server? how?
 
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#2
Hmm. I do not know current sitsuation with samba, but you can install openssh server to your n900.
 
Posts: 102 | Thanked: 17 times | Joined on Mar 2010 @ Herne,Germany
#3
hmm , openssh doesn't work with my neutrino...
 
Posts: 88 | Thanked: 411 times | Joined on Mar 2010 @ southern Italy
#4
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).

Last edited by alfmar; 2011-05-08 at 22:06. Reason: explained IP addresses
 

The Following 2 Users Say Thank You to alfmar For This Useful Post:
Posts: 94 | Thanked: 61 times | Joined on Feb 2010 @ Shoreham
#5
yes download Tiny Samba from the repos
 
dchky's Avatar
Posts: 549 | Thanked: 299 times | Joined on Jun 2010 @ Australian in the Philippines
#6
Originally Posted by Raif View Post
yes download Tiny Samba from the repos
NFS, not samba good sir. :-)

The answer is still yes though. Alfmar summed it up nicely.
 
Posts: 2 | Thanked: 0 times | Joined on Aug 2011
#7
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)

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,...
 
Posts: 2 | Thanked: 0 times | Joined on Aug 2011
#8
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!
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:29.