NFS System Configuration

Source: Internet
Author: User
1.1 DHCP server on Ubuntu 9.04

1.1.1 setup Interface
  • Figure out which Ethernet port you'll use to connect your PC
    To the target board and configure it to use a static IP of 10.0.0.1. be
    Sure you don't get mixed up and configure the wrong port! Connect
    Correct port directly to the target board withCrossover
    Ethernet connector.
  • On the PC, properly configure the Ethernet port that's
    Connected to the target board. You have two choices: configure
    Ubuntu GUI interface, "Network Manager" to do it, or disable "Network
    Manager "and configure the system directly using configuration files.
    Note that the target board can bring up and drop the Ethernet
    Connection repeatedly, so it's important to make sure the proper
    Ethernet configuration is automatically restored
  • Using Network Manager:

    1. Open it with system-> preferences-> Network Connections
    2. If Ethernet port connected to the target board isn't listed, add it with the Add button, otherwise select it and edit it.
    3. Choose the 'ipv4 settings' Tab
    4. Select 'manual' from the 'method' pull down menu
    5. In the 'address' box, select the top row.
    6. Fill in the 'IP address' and 'netmask' fields with 10.0.0.1, and 255.255.255.0 respectively
    7. Click the 'application' button
  • Alternatively, disable the network manager and use the config files in/etc/networks

    1. Turn Off NetworkManager
    2. Change the file permissions of/etc/init. d/NetworkManager so it doesn' t restart on a reboot
    3. Edit the file/etc/Network/interfaces to use DHCP for the PC
      Connection to the company network, and manually for the Ethernet port
      Connected to the target board.
    4. Restart networking with/etc/init. d/networking restart
Sudo/etc/init. d/NetworkManager stop
Sudo chmod 644/etc/init. d/NetworkManager
Sudo Emacs/etc/networks/interfaces

(Note that the CHMOD command isn't a good way
To disable the service; if an update to nm comes in, it'll just get
Re-enabled again. You need to use the update-rc.d script (I think)
Disable the service. -- PLG)

An example file which configures 'loopback, 'eth0' for the company network, and 'eth1' for the target board wocould be:
Auto Lo
Iface lo Inet loopback
Auto eth0
Iface eth0 Inet DHCP
Auto eth1
Iface eth1 Inet static
Address 10.0.0.1
Netmask 255.255.255.0

1.1.2 install DHCP server
 sudo apt-get install dhcp3-server

1.1.3 set up the DHCP server

Specify the interface on which the server shoshould listen by editing the/etc/default/dhcp3-server file:

INTERFACES=”eth1"

Replace this line with the suitable Interface

Backup your original/Etc/dhcp3/DHCPD. conf
File and replace it to contain the following:

ddns-update-style none;
allow bootp;
subnet 10.0.0.0 netmask 255.255.255.0 {
default-lease-time 1209600;
max-lease-time 31557600;
range 10.0.0.2 10.0.0.100;
option routers 10.0.0.1;
option root-path "10.0.0.1:/home/vinod/sw/tools/embedded/vendor/ubuntu/9.04/images/target";
}

Replace the root-path suitably to specify your target.

Restart the DHCP server:

sudo /etc/init.d/dhcp3-server restart
2.1 NFS server on Ubuntu 8.10/9.04
  • Install NFS server on your host
sudo apt-get install nfs-kernel-server nfs-common portmap
  • NFS server configuration

Add the target filesystem to NFS mounts by editing/Etc/exports
And
Adding the following line (edit the path to the location of the target
On your PC). Example for minimal setup:

 /home/vinod/sw/tools/embedded/vendor/nvidia/esoc3-4.3.2-nv/arm-none-linux-gnueabi/target 
*(async,rw,no_root_squash,no_all_squash)
  • Restart the NFS server
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a


http://www.ubuntugeek.com/nfs-server-and-client-configuration-in-ubuntu.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.