LOGO

Run ASP.NET on Ubuntu | .NET Development

September 17, 2006
Run ASP.NET on Ubuntu | .NET Development

Setting Up ASP.NET Development on Ubuntu Linux

The XSP environment facilitates ASP.NET development on Ubuntu Linux. It’s a straightforward web server implemented in C#, compatible with both ASP.NET 1.0 and 2.0 applications.

Both development environments can be installed concurrently, if required.

Prerequisites

A functioning Mono development environment is necessary before proceeding.

Installing ASP.NET 1.0

The installation of ASP.NET 1.0 is achieved through the following commands:

sudo apt-get install mono-xsp mono-xsp-base

sudo apt-get install asp.net-examples

These commands install the necessary development tools and a collection of example applications.

To execute the sample applications, initiate the XSP process and direct it to the samples directory.

The path can be adjusted to run applications you have independently developed.

> xsp --root /usr/share/asp.net-demos/

Listening on port: 8080 (non-secure)

Listening on address: 0.0.0.0

Root directory: /usr/share/asp.net-demos

Hit Return to stop the server.

Installing ASP.NET 2.0

To install ASP.NET 2.0, utilize these commands:

sudo apt-get install mono-xsp2 mono-xsp2-base

sudo apt-get install asp.net2-examples

This process installs the ASP.NET 2.0 development environment alongside sample applications.

Running the sample applications involves launching the XSP process and pointing it to the appropriate directory.

Again, the path can be modified to accommodate your own applications.

> xsp2 --root /usr/share/asp.net2-demos/

Listening on port: 8080 (non-secure)

Listening on address: 0.0.0.0

Root directory: /usr/share/asp.net-demos

Hit Return to stop the server.

Following these steps, accessing http://localhost:8080/ in your web browser should display a similar page, confirming successful installation and operation.

#ASP.NET#Ubuntu#.NET#Linux#development#deployment