Page 37 of 53 FirstFirst ... 27353637383947 ... LastLast
Results 361 to 370 of 521

Thread: HOWTO: NFS Server/Client

  1. #361
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: NFS Server/Client

    Quote Originally Posted by bingtang View Post
    Hi All

    I had installed nfs-common in the client laptop but nfs-common is not show up in the /etc/init.d/ directory. I try apt-get remove portmap nfs-common and reinstalled. It is still the same.
    Every time I type sudo /etc/init.d/nfs-common restart message came back as:
    sudo: /etc/init.d/nfs-common: command not found. I have installed ubuntu 9.10 with 40GB SATA drive format as EXT4. Your help well greatly appreciate.
    Since nfs-common is on the client side, it's only called as needed and doesn't run as a daemon. This is why it's not found in /etc/init.d ... it's not a service.

    To restart the server side of things, you'll need to run this command:
    Code:
    sudo /etc/init.d/nfs-kernel-server restart
    The information in this article: http://www.cyberciti.biz/tips/ubuntu...nfs-share.html is quite old, and doesn't apply anymore.

    Just follow the howto on the first page and you'll have a working configuration.
    Last edited by dmizer; December 26th, 2009 at 10:54 AM.

  2. #362
    Join Date
    May 2007
    Location
    Michigan
    Beans
    7
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HOWTO: NFS Server/Client

    I've been working on getting NFS working here and followed this thread (the one I'm posting in) and this HOWTO for NFS and firewall.

    I travel quite a bit and would find it useful to access my home computer through NFS. I have been able to set up NFS and in my private net (192.168.x.x) it works well.

    Going off my net (using a neighbor's), I've been unable to get through to the server. Thinking it was the firewall, I opened up 111, and 2049 as well as added 4000-4002 per the above-mentioned HOWTO.

    It looks like I'm getting through, but the server is not accepting the connection. So, looking at my /etc/exports file:

    Code:
    /work   palmtree(rw,no_root_squash,async,no_subtree_check)
    and doing some further digging, I'm finding that my host name is not a good way to discriminate in the /etc/exports file. Depending on which network to which I am connected, my host name changes.

    So (finally!) getting to the question. Is the following exports line the best way for me to open the NFS door so I can access my computer from literally anywhere? Note: I do have a dynamic IP (it changes about every 3 to 5 days), but the obscurity doesn't really make me feel secure. Is there a better way?

    Code:
    /work   (rw,no_root_squash,async,no_subtree_check)
    For statistics: Ubuntu/9.04

  3. #363
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: NFS Server/Client

    Quote Originally Posted by unipsycho View Post
    I've been working on getting NFS working here and followed this thread (the one I'm posting in) and this HOWTO for NFS and firewall.

    I travel quite a bit and would find it useful to access my home computer through NFS. I have been able to set up NFS and in my private net (192.168.x.x) it works well.

    Going off my net (using a neighbor's), I've been unable to get through to the server. Thinking it was the firewall, I opened up 111, and 2049 as well as added 4000-4002 per the above-mentioned HOWTO.

    It looks like I'm getting through, but the server is not accepting the connection. So, looking at my /etc/exports file:

    Code:
    /work   palmtree(rw,no_root_squash,async,no_subtree_check)
    and doing some further digging, I'm finding that my host name is not a good way to discriminate in the /etc/exports file. Depending on which network to which I am connected, my host name changes.

    So (finally!) getting to the question. Is the following exports line the best way for me to open the NFS door so I can access my computer from literally anywhere? Note: I do have a dynamic IP (it changes about every 3 to 5 days), but the obscurity doesn't really make me feel secure. Is there a better way?

    Code:
    /work   (rw,no_root_squash,async,no_subtree_check)
    For statistics: Ubuntu/9.04
    Please close those ports on your router. NFS is not meant to be shared across the Internet. It's not safe, just like SAMBA is not safe for sharing across the Internet. If configured correctly, anyone on the WWW would be able to access your shares. The only thing that would prevent that is local file permissions.

    Please use an encrypted protocol like ssh or VPN. These protocols are meant to be handled safely across the Internet.

  4. #364
    Join Date
    Dec 2007
    Location
    Powder Springs, Ga
    Beans
    1,396
    Distro
    Ubuntu Development Release

    Re: HOWTO: NFS Server/Client

    how can I add my nfs share to fstab when connecting via wireless network? I do not gain a connection until I am at my desktop.
    Last edited by tad1073; January 6th, 2010 at 03:36 AM.
    | Corsair Carbide Series® 300R | Intel Core i5 650@3.20Ghz| OCZ-Vertex3 120 Gb SSD | Western Digital 640 Gb HDD | Western Digital 1 Tb HDD |
    |Gigabyte GeForce GTX 950 Extreme | Ubuntu 16.04 x86_64 | Windows 10 Pro |


  5. #365
    Join Date
    Jan 2008
    Location
    Sofia, Bulgaria
    Beans
    14
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: NFS Server/Client

    Quote Originally Posted by tad1073 View Post
    how can I add my nfs share to fstab when connecting via wireless network? I do not gain a connection until I am at my desktop.
    Hi,
    This is my case and I don't have any problem with mounting the nfs share from fstab. The nfs share mounts just after the connection is available. The delay is only 1-2 seconds after the indicator shows "connected".
    This is the entry in my fstab
    Code:
    # nfs variant
    192.168.0.10:/home/nfsshare /home/mountpoint nfs rw 0 0
    First try if the nfs share works with:
    Code:
    sudo mount 192.168.0.10:/home/nfsshare /home/mountpoint
    If this works, the fstab entry should work too.

  6. #366
    Join Date
    Mar 2007
    Location
    Australia
    Beans
    68

    Re: HOWTO: NFS Server/Client

    THANK YOU, THANK YOU, THANK YOU !!!!!!!!!!!!!!!!!!!!!

    Samba has been a PITA since I started using linux (over 4 years ago).

    (Networking when I was using windows was a PITA period.)

    After 5 minutes I had NFS up and running thanks to your HOWTO.

  7. #367
    Join Date
    Dec 2007
    Location
    Powder Springs, Ga
    Beans
    1,396
    Distro
    Ubuntu Development Release

    Re: HOWTO: NFS Server/Client

    thanks, will give it a try

    Quote Originally Posted by yens View Post
    Hi,
    This is my case and I don't have any problem with mounting the nfs share from fstab. The nfs share mounts just after the connection is available. The delay is only 1-2 seconds after the indicator shows "connected".
    This is the entry in my fstab
    Code:
    # nfs variant
    192.168.0.10:/home/nfsshare /home/mountpoint nfs rw 0 0
    First try if the nfs share works with:
    Code:
    sudo mount 192.168.0.10:/home/nfsshare /home/mountpoint
    If this works, the fstab entry should work too.
    | Corsair Carbide Series® 300R | Intel Core i5 650@3.20Ghz| OCZ-Vertex3 120 Gb SSD | Western Digital 640 Gb HDD | Western Digital 1 Tb HDD |
    |Gigabyte GeForce GTX 950 Extreme | Ubuntu 16.04 x86_64 | Windows 10 Pro |


  8. #368
    Join Date
    Mar 2006
    Location
    /dev/null
    Beans
    2,684

    Re: HOWTO: NFS Server/Client

    Piece of my export file on the server currently working

    /mnt/multimedia/musica/ 192.168.2.0/255.255.255.0(rw,sync,no_subtree_check)

    Matching piece on the client fstab

    192.168.2.2:/mnt/multimedia/musica /mnt/musica nfs rsize=8192,wsize=8192,timeo=14,noauto,user,rw

    To access files from outside the network I go with ssh, nfs is not for going out in the public
    First they ignore you.Then they laugh at you. Then they fight you.Then you win.Gandhi
    Linux para las masas
    Resistance Is Futile. You Will Be Assimilated!

  9. #369
    Join Date
    Jul 2009
    Beans
    571
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: NFS Server/Client

    Hi, can NFS interact with OpenLDAP? Will they play along nicely? Do I need to install modules for it? The reason I'm asking is because I want to authenticate my Windows & Ubuntu users to just use NFS, and OpenLDAP.

    Hoping for anyone's enlightenment.
    It's OK, everything we know will become obsolete at some time.

  10. #370
    Join Date
    Mar 2006
    Location
    /dev/null
    Beans
    2,684

    Re: HOWTO: NFS Server/Client

    I have no clue on this, the only part I know is that the Windows users wont be able to use nfs for that you would need samba.

    Someone slap me silly if Im wrong
    First they ignore you.Then they laugh at you. Then they fight you.Then you win.Gandhi
    Linux para las masas
    Resistance Is Futile. You Will Be Assimilated!

Page 37 of 53 FirstFirst ... 27353637383947 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •