Win10 Installing the CentOS Build development environment in Hyper-V

Source: Internet
Author: User
Tags ftp access

Windows Environment
    • Operating system: Windows 10
    • Development environment: VS2005 (Requires the. NET Framework 3.5 to be started for normal installation)
Linux Environment
  • Release version: CentOS 7_x64
  • Installation method: Win10 with Hyper-V virtual machine installation
  • Advantages:
    • The PC Master Windows,linux is installed in the virtual machine as a command line startup as a background server with low memory and CPU usage.
    • FTP access to Linux via WINSCP && Putty Remote Tools in window enables a single computer to run Windwos and Linux at the same time.
  • Disadvantages:
    • Windows and Linux file transfer is via FTP and requires a computer to connect to the network.
  • Configure startup mode
    1. Viewing the startup mode configuration file
    2. Modify default boot as command line interface
  • Configure Network Connections
    1. Create an external network in Hyper-V
    2. Fixed CentOS IP Address
      (Network configuration file path:/etc/sysconfig/network-scripts/ifcfg-eth0)
  • Modify Normal User permissions
    1. The SU command switches to the root user
    2. Visudo command to modify the/etc/sudoers file
  • Modify Yum Source (163 NetEase's Yum Source recommended)
    1. Enter the Yum Source configuration directory
      Cd/etc/yum.repos.d
    2. The Yum source that comes with the backup system
      MV Centos-base.repo CENTOS-BASE.REPO.BK
    3. Download 163 NetEase's Yum source (note the same as the CentOS version)
      wget Http://mirrors.163.com/.help/CentOS7-Base-163.repo
    4. Update Yum configuration for immediate effect
      Yum Clean All
      Yum Makecache
  • Modifying the VIM configuration
    1. Open VIM configuration file
      sudo vim/etc/vim/vimrc
    2. New configuration
      set Nu //Display line number
      Highlight Comment Ctermfg=magenta guifg=magenta //Modify annotation Color
Conclusion

When you start CentOS once in Hyper-V Configuration Manager, shutting down Windows does not turn off CentOS. Because CentOS runs in the background of the virtual machine in the command line mode, the virtual machine supports the dynamic allocation of memory, the CPU and memory usage of CentOS is very low in actual use, can be ignored, and the integration of Microsoft's virtual machine with Windwos is really high.

Transferred from: http://blog.csdn.net/yss28/article/details/50994727

Win10 Installing the CentOS Build development environment in Hyper-V

Related Article

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.