Easily and easily build the C # development environment in Linux)

Source: Internet
Author: User
Tags wubi

Let's take a look at the final result of this article: monodevelop, the development environment running in Ubuntu

 


[Image: monodevelop1.png]

For example, if you are mainly developing console classes, components, backend services, and other programs, you can try to build C # In a Linux operating system #. NET development environment, the advantage is that in the Linux environment, you do not have to worry about friends or colleagues taking your computer to play World of Warcraft or accidentally installed a lot of rogue software ;-)

1. Selection of Linux releases

 

In the linuxux operating system, you only need to install the mono environment to develop the C # program. Mono can be installed in many Linux distributions such as RedHat/centos/fedora, opensuse, Debian, and ubuntu.
Ubuntu 10.04 is recommended Because ubuntu is easy to install and has a beautiful interface and many people use it as a desktop environment. Official website is: http://www.ubuntu.com/
Download a CD image file (ISO format) from the official website. Note that there are four ISO files of different versions in Ubuntu: desktop, alternative, netbook, and server. Generally, you can download the desktop. If you want to start the installation program through the network or use the hard disk to install it, you need to download alternative.
If your computer's hardware configuration is relatively low (memory less than or equal to 512 MB), you can also download a lightweight derivative version: xubuntu (http://www.xubuntu.org/), if your computer only has MB of memory, that can also download another derivative version of lubuntu (http://lubuntu.net/), this more lightweight, usually after the system started only occupy 70 ~ MB memory.

2. Install Ubuntu

 

The method for installing Ubuntu is very simple. It is similar to installing WINXP. You only need to click "Next" for 5 or 6 times in 10 minutes. There have been a lot of articles about the Ubuntu installation process, so I will not go into details here. The following describes the installation methods. You can choose the appropriate method based on your actual situation:

(1) Virtual Machine Installation
If your computer is fast and the memory is large, you can install it as quickly as possible. We recommend that you use the free virtualbox for Virtual Machine Software. Install the Virtual Machine Software first, create a new virtual machine, and link the downloaded ISO file to the virtual machine. After the VM is started, it can be installed.

(2) trial Installation
If you just want to try C # development in a Linux environment and do not want to use it for a long time, you can use this installation mode. In this installation mode, you do not need to adjust the hard disk partition (because the entire Linux system will be installed in a "virtual hard disk" file), your existing system and software will not be broken, but the performance will be slightly reduced.
First your system must be WINXP/Vista/win7, then put the ISO file and a wubi Installer (http://wubi-installer.org/) software in the same directory, run wubi installer, select the Ubuntu installation location, and then start copying the file. After you restart the computer, an additional startup Item "ubuntu install" will be displayed. Select it to start the real installation process.

The following installation method requires a blank space on the hard disk (preferably at least 10 Gb ),Free space other than the primary partition or the free space of the extended partition can be used. You can use the pqmagic software to slowly adjust the partition size of your hard disk. During the installation process, the program will ask you where to install Ubuntu and select "maximum continuous space.

(3) CD installation
This installation method is the easiest. You can instantly copy the downloaded ISO file into a CD, set the boot from the CD, and restart the computer.

(4) hard disk installation
To download the ISO file of alternative, put it in the C-drive root directory, and then download "unetbootin
(Http://unetbootin.sourceforge.net/) software, also in the C drive root directory, run unetbootin, In the release type option select Ubuntu and mediahd To Start copying files, restart the computer to start installation.

(5) Use a USB flash drive to install/install it on a USB flash drive.
Start the computer with the installation CD, select "trial" to enter Ubuntu in livecd mode, and then click "create boot disk" in "system"> "System Management ", prepare a USB flash drive larger than 1 GB. The Boot Disk program copies all Ubuntu files to the USB flash drive. Then, you can use the USB flash drive to start other computers and install the system. You can also directly start the USB flash drive to enter the system.

(6) network-based Installation
If your computer does not have an optical drive and does not support USB flash drive boot, it has the PXE function. Or there is a batch of computers need batch installation, you can use this installation mode, see the specific: http://kalashnicov.javaeye.com/blog/663337

3. Install the development environment monodevelop.

 

After Ubuntu 10.04 is installed, you will find that the system has built-in mono runtime and compilation environments, and some Ubuntu system software is written in C, for example, tomboy convenience posts, iqtest game gbrainy, photo viewing and management program f-spot

 

[Picture: F-spot.png]

If you are used to the win7 taskbar, we recommend another taskbar software "Docky", which is also written by C #.

 

[Image: docky.png]

MacOS personnel should be calm.

Remember that you do not need to go to any software download website to install software in Ubuntu. You can find, install, and Uninstall all required software in the Ubuntu Software Center.

Run "ubuntu Software Center", enter the name of the software to be installed, such as "monodevelop", and click "Install". The program will be automatically downloaded and installed online.

Now we have set up the C # development environment. Try to write a helloworld file (see the beginning of this article)

4. Others

 

In addition to C # programs, monodevelop can also write C, C ++, Java, and other programs. You only need to install the corresponding plug-ins and compilers,

 

 

 

[Image: monodevelop2.png]

 

Appendix:

 

Mono Project home: http://mono-project.com

Console, window, Web helloworld Demo: http://mono-project.com/Mono_Basics

Mono and ms.net compatibility list: http://mono-project.com/Compatibility

 

Blog: http://www.cnblogs.com/domslab/

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.