It is particularly worth mentioning that there are many things worth learning about Linux Mono. Here we mainly introduce Linux Mono, including Linux Mono and so on. We have to admit that the Linux Mono Project has become the most anticipated project for developers in open-source projects. It enables. NET framework to run on Linux and other platforms for the first time. Expand application deployment to a larger scope.
Recently, the Beta3 version of the Linux Mono Project has been released. In this article, I hope you can learn how to get the Beta3 version of Linux Mono and how to make it run in your Linux system, and how to run your first one on the Linux Mono platform.. NET application.
If you are a developer on a Windows platform, if you are considering using Linux as the host of Your. NET application. Therefore, the Linux Mono beta provides a good way to test and debug your applications on the Linux platform in advance.
Note: Linux Mono Beta 3 is only used for testing and is not recommended as a product. We use Red Hat 9.0 as the platform we described in this article to install and configure Linux Mono. If you do not have a Linux Server of Red Hat or other versions, you can download the ISO file of Red Hat from here for installation.
However, if you do not have an idle computer or server to run RedHat, you can install a dual-boot on your computer, or you can create a virtual machine through software, such as VMWare. However, see Red Hat. Installation instructions.
After installing Red Hat and successfully running Red Hat, you need to download Linux Mono Beta3 from Go-Linux Mono Web site. note that
Linux Mono has different versions.
- Red Hat 9.0/x86
- Fedora Core 1/x86
- Fedora Core 2/x86
- SLES 8/x86
- SUSE 9/x86
- SUSE 9.1/x86
- Windows (2000 and above)
- Mac OS X
For this article, you need to download the Red Hat 9.0/x86 version .. There are two different download methods. One is a large zip file that contains all the required RPM files. The other is to separately download each independent RPM file you need.
Are you new to Linux RPM familiar with RPM. RPM is "Red Hat Package Manager", which is a standard file format. Generally, the file management format in Linux is RPM. You can learn more RPM here.
Of course, the most convenient method is to download all the zip files containing the RPM files you need. After you download and decompress the zip package. You will see many independent RPM files. In this case, you can double-click each RPM file to install it one by one. However, you need to pay attention to the dependency of the installation in sequence. Therefore, a simple installation method is to perform a unified installation of the RPM file by using commands.
First, you must ensure that you log on as the root user, and then enter the following command to install all these packages files at a time. Rpm-Uvh -- nodeps *. rpm if you have installed a package file at this time, you can use the following command to reinstall all Linux Mono packages at a time. Rpm-Uvh -- nodeps -- force *. rpm
Tip: when operating the RPM file, if you do not remember the command, you can enter RPM-help or view this document 1, but you have installed all the RPM packages, you also need to perform a test to ensure that all Linux Mono components can run. Linux Mono provides a light-weight Web service called XSP.
It uses C # And loads many test pages. You can use these pages to determine whether the Linux Mono beta version is installed and can run.
To start the XSP Web server, open a terminal and run:
Linux Mono/usr/bin/xsp.exe -- port 80
After the Web Service is started, you can see the test. ASPX page. Enter http: // 127.0.0.1/test/in the navigation bar to see the interface shown below. On this. ASPX pages page, you can see many different features from ASP. NET, including: user interface, code-behind code separation) and many different technologies such:
Data binding ). On this page, you will also see many examples and documents about Web Services. Note that many examples here require additional installation of some programs, such as data binding. You need to first have a database table .. Otherwise, in many examples, some incorrect information is displayed during browsing.
Now, you can confirm that you have successfully installed and enabled the Web service. Now, we can start to test the. NET application we have prepared. A Linux MonoDevelop is provided in the zip file, which is an open-source IDE. You can use it for development based on the Linux Mono framework. This IDE shortcut starts in the program-> More Programming Tools> Linux MonoDevelop.
After you start this Linux MonoDevelop IDE, you can use import in the File menu to insert a Visual Studio project and compile and run it in Linux MonoDevelop IDE. However, you should note that Linux Mono supports C # but does not support VB. NET. Therefore, make sure your application is written in c.
Finally, whether you are a developer looking for new Linux development tools or a developer looking for a new platform under. NET, Linux Mono Beta 3 will surprise you
- Linux Mono greatly improves the Open Source Field and GUI application development
- Use the Linux Mono System in Linux
- Linux CVS check whether xinetd is installed in the system
- Linux configuration files and user management related system files
- Introduction to Linux swap partition and experiment scenarios and processes