1. Why do I write this article
Always wanted to learn in depth about the use of Linux, so the laptop at home installed a Linux system, but to their own systems to create a suitable environment for development is indeed a laborious thing to worry about, and often some strange questions to my own experience to do that in order to use Linux development environment, you have to understand each software, otherwise it is difficult to solve some problems, not to say the other is light Well the problem is driving people to toss a long time.
After I installed Linux computer has a high temperature no less than the Internet to find some way to turn off alone was not much better, start two hours on the temperature soared to 70-90 degrees, tried many distributions, Debian, Ubuntu, CentOS, Fedora are no problem, as the light of those comments look like Gentoo scared urine, and toss for a long time every time the driver problem, but also the source of some systems are masked party country, if you want to drive the development environment , office use software is really a toss finished bother laborious affair, and only use web qq, wineqq or so the old version is not easy, bclode often not get logged, reported unknown error, due to the need to work, I was destined not fit entirely Linux office environment. But as the ability to use and troubleshooting a Linux programmer or have, so I share the way I use today.
2.Windows + virtual machine
Inside the virtual machine installed Linux is very common, and many of my colleagues in order to learn in a virtual machine installed inside Linux, when nothing shift or two, but did not use actual work, so I thought why not us code into Linux virtual machine service inside, and then use Windows to access the inside of the service code in Windows development, deployment into Linux, I think this has the following benefits:
1. With a production environment simultaneously, to ensure that their code can run under Linux.
2. facilitate transplantation, directly to the virtual machine files are packaged test to another computer, you can use the above.
3. You can regularly virtual machine files into the cloud disk, equal to the backup system, at any time to restore (but the file is too large to upload a bit of trouble, backup to the hard disk is actually very convenient)
4. As used in the development of Linux, often playing can certainly learn something, this would not have said.
3. To achieve
Read online comparison of various virtual machines, of course, VMware is better, but also provides VMvare-tools, shared folders, shared networks are good, the shared folder on the Linux mount, you can put the code developed to a shared folder inside, so Linux can be deployed, you do not need to copy the code to test, or update something, more trouble with svn.
My solution is win7 + centos7 because the production environment using centos, but there are some practical considerations to achieve:
vmvare provides three network share is bridged, NAT and host-only specific What is the difference I will not say, check it yourself. Is generally used in the bridge, so that the virtual machine is equivalent to a stand-alone machines, other machines can access virtual machine inside the service, but the company I work for because each computer mac registration should be carried out to the Internet, so I had to Select the way nat, nat way does not require any set up, relatively simple, but the host can not access the virtual machine inside the service later on the Internet to find the solution is to do port mapping.
Access to port 80 virtual machine inside the machine through port 800 to achieve is very simple, just need to do a port mapping virtual machine inside it.
Edit VMware Lane -> Virtual Network Editor -> select nat net mode settings -> Add
Then save enough, even if you do not check the Linux firewall, open port 80. If you want someone else's computer can access, you need to look in the Windows Firewall settings. Of course lazy brother, because developers often give people time to see, is directly off the firewall. Of course, you can also have a database of what to put in Linux, Windows just install some software in Linux services.
But if you want to use the virtual machine is not on the card or have the computer's configuration requirements, I 8G memory, virtual machine open 2G memory, open the virtual machine, IDE, etc. The basic software to take up 80% -90% less memory use is quite smooth, it can also be a virtual machine running in the background, using only its services just fine.