zondag 24 november 2013

Installing XSP on Fedora 19

Today I'm going to keep it very short and simple. To be able to test our ASP.NET (MVC) applications we'll need a server for ASP.NET (MVC) pages. Luckily there is one available: XSP.

From Wikipedia:
XSP is a simple, standalone webserver written in C# that hosts ASP.NET's System for Linux and other Unix operating systems. As well as running on the mono runtime for Linux it also runs on the .NET runtime, making it usable as a light weight web server on any .NET supporting platform.
So how do we install XSP (v4)?

If you want to install the server using yum or through the GUI and want the latest updates, you'll first need to add the correct repository:
  • sudo cd /etc/yum.repos.d/
  • sudo wget http://download.opensuse.org/repositories/home:tpokorra:mono/Fedora_19/home:tpokorra:mono.repo
We then can use yum:
  • Open a terminal and issue the following command:
    • 64 bit:
      •  sudo yum -y install mono-xsp-opt.x86_64.rpm
    • 32 bit:
      • sudo yum -y install mono-xsp-opt.i686.rpm
Or use the GUI:
  • Activities > Show Applications > Software
  • Enter your sudo password
  • Search for XSP and install the appropriate package
Or simply download the rpm from rpm.pbone.net:
  • Download the rpm from one of the following locations:
    • 64 bit:
      • http://rpm.pbone.net/index.php3/stat/4/idpl/23756850/dir/fedora_19/com/mono-xsp-opt-3.2.0-4.2.x86_64.rpm.html
    • 32 bit:
      • http://rpm.pbone.net/index.php3/stat/4/idpl/23756840/dir/fedora_19/com/mono-xsp-opt-3.2.0-4.2.i686.rpm.html
  • When shown a dialog to choose what to do with the package, you can save it to your disk or choose to immediately open it with the "Software installer"
    • When choosing to save the package to your disk, you can still install the package by going to the appropriate directory and double clicking the package or using rpm -ivh /[directory]/[filename]
Once installed, no extra configuration should be needed. If you should encounter problems when trying to debug a project from within MonoDevelop you can find your XSP settings in the following way:

  • Open MonoDevelop and open your project
  • Click on Solution
  •    Right click your project name
  •    Choose 'Options'
  •    At the left underneath the section "Run" you'll find XSP Web Server

Geen opmerkingen:

Een reactie posten