4.1. Virtual machine Ubuntu Network requirements analysis
(1) Virtual machines need to connect to the Internet to download the corresponding Linux application software, you need to get through the virtual machine and external inetrnet channel, the virtual machine should be set up to connect the Internet at this time.
(2) The virtual machine needs to be able to connect with the Development Board, computer host Windows LAN communication, then the virtual machine Ubuntu, WinDOS host, Development Board, these three should be composed of LAN communication, virtual machine should be set up at this time static IP connection LAN.
(3) We need to configure the corresponding network services when developing or deploying the Development Board system, such as TFTP Service, NFS Mount service, Samba shared file service, VMware shared folder settings, etc.
4.2. Virtual machine Ubuntu Internet connection
(1) The virtual machine Ubuntu Internet has 3 kinds of ways: Nat mode, bridging mode (bridged), host only (Windows host can surf the internet, Ubuntu can not access the Internet).
(2) Nat way to set up the Internet is relatively simple, but can not be used in embedded development (see Figure 1), bridging method set up the Internet is more cumbersome, but in the embedded development is more useful (see Figure 2).
(3) There are two modes of network management in virtual Ubuntu system, namely Network-manager and/etc/network/interfaces, and choose one set. Note If you choose interfaces this way for network management, you must first uninstall Network-manager: $sudo apt-get Remove Network-manager.
(4) When the system does not have a Third-party network management tool (such as NM), the system defaults to use the parameters in the interfaces file network configuration; After the system has been installed with NM (desktop version by default, NM), NM defaults to take over the system's network configuration, Use NM's own network configuration parameter configuration (see Figure 3); When the user modifies both NM and interfaces files, NM automatically stops the management of the system network, and the system uses the interfaces file parameters for network configuration, and for the NM configuration to take effect, The network configuration of the NM takeover system needs to be re-enabled (see Figure 4).
4.3. Related Network Service configuration
(1) The Ubuntu system builds the TFTP server (see Figure 5).
(2) Ubuntu system to build NFS server (see Figure 6).
(3) Ubuntu system to build the Samba server (see Figure 7).
(4) VMware shared folder settings (see Figure 8).
4.4. Install Ubuntu system from scratch
(1) Virtual machine version for Vmvare12.0.0pro;ubuntu image source for NetEase Open source Mirror Station (http://mirrors.163.com/); Set desktop background (appearance); set screen brightness and lock screen (brightness &lock) Set the virtual Machine Ubuntu screen resolution (display), set the system time (Time&data), and establish the root account password (sudo_su_root).
(2) Install Vim (SUDO_APT-GET_INSTALL_VIM-GTK); remove VM and use configuration file to take over network; add Chinese support in Ubuntu (Language_support, do not need to modify VIM's profile to support Chinese, Vim has already supported the Chinese display after setting up before, Ubuntu displays the solution of Chinese garbled encoding in ANSI code format, verifies that the shared folder is normal (http://blog.csdn.net/gongyuan073/article/details/46604233).