Enable the development Board to share with Ubuntu--root file system Nfs--samba share "sky original"

Source: Internet
Author: User
Tags nameserver

Virtual Machines Select the bridge, and disable the wired and wireless network card, open the local connection, local connection properties to write as follows:

 The IP address is ipconfig after connecting the board with Windows cmd .the network cable of the board is best connected to the switch or router, and then connected to the computer by using another cableIf the direct board is connected to the computer, sometimes NFS may not work, because the network cable is equivalent to in full-duplex communication mode,two TX two Rx, so it is not necessarily connected, at this point you need to use the following samba and TFTP to transfer files Virtual Confidential set static IPvim/etc/network/interfaces
# Interfaces (5) file used by Ifup (8) and Ifdown (8)
Auto Lo
Iface Lo inet Loopback
Auto Eth0
Iface eth0 inet Static
Address 192.168.5.10
Gateway 192.168.5.1
Netmask 255.255.255.0
NameServer 114.114.114.114This is domestic, if it is 8.8.8.8 this is Google, Google is now the server is not in China, so you can not set up the network

#auto eth0
#iface eth0 inet DHCP
/etc/init.d/networking Restart  Build Network File system NFS In addition to this method, there are methods such as samba and TFTP for your reference This is better because it allows for instant synchronization because if not set up, each time to use Linux to compile, and then re-burn, so too time-consuming Mount NFS file system 1. Execute the following command to install the NFS service, which will run automatically after installation (the service is already installed by the general host) $sudo apt-get Install nfs-kernel-server portmap 2, his configuration file for/etc/exports, edit with vi editor, add content as follows, will later through the network file system access to the new additions to the directory, such as the/work/nfs_root directory.  /work/nfs_root * (rw, sync, no_root_squash) 3. After the modification, execute the following command to restart the NFS service $sudo/etc/init.d/nfs-kernel-server Restart (for Ubuntu) $sudo/etc/init.d/nfs Restart (for FC, Redhat) or Run service NFS Restart commands Service Nfs-kernel-server Status 4.1 Show Shared Directories$ showmount-e4.2 Mount the NFS Rootnfs directory on the local disk. $ sudo mount-t NFS localhost:/rootnfs/mnt4.3 viewing mount conditions$ DF4.4 Unloading Mounts$ sudo umount/mntChange IPifconfig eth0 192.168.1.4 10.10.10.0 up255.255.255.0 if it's 3 255 .then the first three IP is the same network segment, 192.168.1.3sudo ifconfig eth0 downsudo ifconfig eth0 up to find a file named A.Cfind-name "A.C"Search the current directory for files containing ABC wordsgrep "AB" *-NR Find | grep *abc*   method One: Configure Samba the following two methods of Development Board to enter the file system to operate, at this time the development Board does not have an IP address, you need to manually configure ifconfig eth0 192.168.5.11 up  258 # to the drivers directory for these users to has write rights in it
259; Write list = root, @lpadmin
260 [Sky]
261 Path =/home/share_sky
262 available = yes
263 browseable = yes
Public = yes
265 writable = yes
266 Valid users = Sky
 windows under win+r \\ip address Ubuntu IPTftp.exe put in the shared directory, open the program, select the server option, IP select the local IPStart the Development Board, use the CRT, and go to the root filesystem .input Commandtftp-gr a.txt 192.168.5.120The role is to put the server 192.168.5.120 on the a.txt on the Development Board   virtual machine ubuntu set static IP and dynamic IP
vim/etc/network/interfaces1 # interfaces (5) file used by Ifup (8) and Ifdown (8)
2 Auto Lo
3 iface Lo inet loopback
4 #auto eth0
5 #iface eth0 inet static
6 #address 192.168.99.10
7 #gateway 192.168.99.1
8 #netmask 255.255.255.0
9 #nameserver 114.114.114.114
10
Auto Eth0
Iface eth0 inet DHCP
~                             /etc/init.d/networking Restart
   method Two Ubuntu install TFTP "-l-s/tftpboot"tftp-gr haha.c 192.168.5.10 get haha.c from the server (this is the virtual machine Ubuntu is the server)HAHA.C is in the server's Tftpboot directory, the Development board gets the file under that directory There may be a problem with the following sentencemount-t vfat-o nolock 192.168.5.10:/root/myroot/rootfs/mnt Welcome to Exchange

Sina Blog: http://blog.sina.com.cn/u/2049150530
CSDN Blog: http://blog.csdn.net/u011749143
Blog Park: http://www.cnblogs.com/sky-heaven/
Sina Weibo: Zhang Zhanhua--sky

 

Enable the development Board to share with Ubuntu--root file system Nfs--samba share "sky original"

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.