Using Linux Inside Windows to get started with ASP.NET on Linux | ||||||||||||
Introduction | ||||||||||||
If you’re not yet ready to start installing, administering and configuring a full-blown Linux® distro there’s a new alternative called Linux Inside Windows (LIW), and it's available for download from the Grasshopper Web site. LIW will allow you to check out how your Grasshopper applications can run on Linux, while still using your Windows® system. LIW is an application based on the QEMU project, which is an open source processor emulator that can be used to run a virtual Linux machine. LIW has taken the QEMU project and added a Debian GNU/Linux system to it, along with Tomcat and PostgreSQL. LIW can happily run applications that you build using Grasshopper. This article describes how to download and install LIW, and then build and run your first J2EE™ application on Linux Inside Windows! | ||||||||||||
Step 1. Download, install and run | ||||||||||||
After installing LIW, go ahead and start it up. A window similar to that shown in Figure 1 will open.
| ||||||||||||
Step 2. Create an application to run on Linux Inside Windows | ||||||||||||
If you want to learn more about creating applications with the Visual Studio .NET IDE to run on Linux, check out the 10 minute guide. | ||||||||||||
Step 3. Deploy your application on Linux Inside Windows | ||||||||||||
The Deployment Packager wizard opens. For now, simply accept all the defaults, but remember the location of the WAR file, because you will need it in the next step. | ||||||||||||
Step 4. Run your application on Linux Inside Windows | ||||||||||||
Scroll down to find the entry WAR File To Deploy, where you can select the WAR file by clicking the Browse… button. This is shown in Figure 6. Select the WAR file that you created in the previous step, then click Deploy.
OK Deployed application path at context /LIW In this case, the project and WAR files are called LIW, so the context path is set to LIW. You can now run the application, by calling the appropriate URL. You will see your ASP.NET application running on Linux Inside Windows! Figure 7 shows a running application. Note that it is running on port 8090. | ||||||||||||
Conclusion | ||||||||||||
Linux Inside Windows gives you a very useful option if you want to start getting your feet wet developing ASP.NET applications for Linux without getting into all the details of setting up and administering a full-blown Linux box. In this article, you saw how to set up and configure an LIW virtual machine, and then how to develop and deploy your first application to LIW. This should give you a good indication of how simple it is using Grasshopper to develop and deploy ASP.NET applications to Linux. |
http://dev.mainsoft.com/Default.aspx?tabid=49#Step2