Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough - Jon Galloway

Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Monoppix is a GNU/Linux distribution which includes Mono, XSP, and Monodevelop, and runs completely off a CD.  It allows you to get familiar with Mono development in Linux without installing anything on your computer.

This walkthrough was written for Monoppix 0.2.2.3. It will step you through:
  1. Downloading the Monoppix ISO
  2. Burning the ISO to a bootable CD
  3. Running Monoppix off the CD
  4. Starting the XSP server
  5. Testing an ASPX webservice
  6. Editing the ASPX file in Monodevelop
  7. Saving the ASPX file to your /home/knoppix/ directory
  8. Restarting the XSP server in your /home/knoppix/ directory
  9. Verifying your changes
  10. Quick info on taking screenshots in Monoppix (or any Knoppix)

1. Download the Monoppix ISO

The Monoppix ISO is available from http://monoppix.url123.com/download [404MB]. The download goes through Freecache which should ensure a high speed download.

2.  Burn the ISO to a bootable CD

The easiest ways to burn an ISO to a bootable CD in Windows are:
  1. Nero, using the CD-ROM (BOOT) option
  2. ISORecorder (free, XP SP2 or Windows 2003 need to use the ISORecorder v2 beta release)
  3. CDBurn (part of free Windows 2003 Resource Kit, works on Windows XP, command line only)

3. Running Monoppix off the CD

Make sure the CD is in the CD drive and restart your computer. If it boots in your normal operating system, reboot again and change the start device priority in your BIOS to set the CD drive to higher priority in the boot order than the Hard Drive. At the prompt, you'll need to enter a Knoppix cheat code to tell Knoppix what hardware to use. If you're using standard equipment, you're probably okay with just "knoppix" (without the quotes). If you're using a laptop or LCD monitor, "fb1024x768" will probably work.

4. Starting the XSP server

Open a console window (the taskbar icon that looks like a shell). Type the following command:

cd /usr/share/doc/xsp/test && mono /usr/bin/xsp.exe

This will start up the XSP server. You should see the following:


Next, open a browser. Monoppix includes Konqueror (the taskbar icon on the right) and Mozilla (in the Start menu). Browse to http://localhost:8080/


5. Testing an ASPX webservice

Click on the second link, TestService.asmx. Click the "Add" link on the left, then the "Test Form" link on the top. Enter two integers and submit the form:

6.  Editing the ASPX file in Monodevelop


You'll need to start Monodevelop from the command prompt in this release. Open a console window and type the following:
/KNOPPIX/usr/bin/monodevelop monodevelop


Select File / Open from the menu, then browse to /KNOPPIX/usr/share/doc/xsp/test. Open the TestService.asmx file.


Edit the code. My changes to the code are underlined below; feel free to make whatever changes you'd like as long as it compiles.
<%@ WebService Language="c#"
Codebehind="TestService.asmx.cs"
Class="WebServiceTests.TestService" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace WebServiceTests
{
   public class TestService : System.Web.Services.WebService
   {
      [WebMethod]
      public string Echo (string a)
      {
         return a;
      }

      [WebMethod]
      public string Add (int a, int b)
      {
         return String.Format("Here is your total:{0}",a+b);
      }
   }
}


7. Saving the ASPX file to your /home/knoppix/ directory

Since the TestService.asmx file is located on the  CD,  you can't save your changes there. You can save files to the /home/knoppix/ directory, though, since that's located on the RAM drive. Select "File / Save As...", navigate to /home/knoppix/, and save the file:


8. Restarting the XSP server in your /home/knoppix/ directory

If the console window from step 4 is still open and running XSP, select the console window and press Enter (or Return, if you have a really old keyboard) to close XSP.

In a console window, type the following command:

cd /ramdisk/home/knoppix/ && mono /usr/bin/xsp.exe




9. Verifying your changes

Refresh your browser window if it is still open, or open a browser and navigate to
http://localhost:8080/TestService.asmx

Verify that your changes have taken effect. In my example, I changed the output from a simple integer value to "Here is your total: xx". Well worth the hours of work:


10. Quick info on taking screenshots in Monoppix (or any Knoppix)

Monoppix doesn't include Ksnapshot. I took these screenshots with xwd. I used the following command:

xwd | xwdtopnm | ppmtojpeg > /home/knoppix/filename.jpg


Published Tuesday, August 24, 2004 2:28 AM by Jon Galloway
Filed under:

Comments

# Monoppix: Todo el proyecto Mono en un LiveCD

Lo que muchos esperaban me acabo de enterar hoy que existe, es un LiveCD que incluye el proyecto mono + IDE Monodevelop listo para usar nada ms arrancar. El proyecto est basado en Knoppix y la versin es todava "preview",...

Tuesday, September 07, 2004 11:20 PM by TrackBack

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Great explanation... thanks!

Saturday, September 11, 2004 5:50 AM by Stefano Demiliani

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

This helped a lot. Thx very much!!

Wednesday, September 15, 2004 3:55 PM by Ivan Loire

# re: I played with Monoppix

Thursday, September 23, 2004 1:06 AM by TrackBack

# RE: Trying Monoppix...

Glad you liked it!

Tuesday, January 04, 2005 7:18 AM by TrackBack

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Provides data restoration utility for lost, missing pictures, office documents, audio, video music files and folder.

Thursday, January 08, 2009 5:43 AM by Data Recovery Prices

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Offers Expert Windows Data recovery utility provide hard drive repair and recovery from corrupted storage media.

Saturday, February 07, 2009 1:21 AM by Data Recovery Prices

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Barcode inventory tool make any size or shape of colorful barcode label, sticker, image, ribbon or security tags. Online barcode label generator wizard allow user to modify color, text or alignment of generated barcode sticker or image.

Saturday, March 21, 2009 1:40 AM by Barcode Generator

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Pen drive data recovery software and digital camera rescue program use for actual data recovery from corrupted storage device.

Tuesday, March 31, 2009 8:29 AM by file recovery

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Providing download for drive recovery program that salvage lost data from previously existing partitions and files.

Thursday, April 02, 2009 5:15 AM by Data recovery software

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Website offers data recovery software that facilitates you to restore maliciously deleted files and photos from storage device.

Saturday, April 04, 2009 5:55 AM by windows vista file recovery

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Company offers best and reliable solution for monitoring your PC including desktop and internet activities.

Thursday, April 23, 2009 12:43 AM by Remote Keylogger

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Monday, October 26, 2009 11:29 PM by Metyjsooop

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Saturday, October 31, 2009 8:32 AM by Foepducoutt

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Saturday, October 31, 2009 10:35 PM by Foepducoutt

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Sunday, November 01, 2009 3:18 AM by Whilladix

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Tuesday, November 03, 2009 3:29 AM by Northewo

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Tuesday, November 03, 2009 3:54 AM by etyjetuykk

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Wednesday, November 04, 2009 4:57 AM by Polterrer

# re: Monoppix - Basic XSP (ASP.NET) and Monodevelop Walkthrough

Data recovery software retrieve restore deleted files recover windows hard disk drive deleted formatted partition restores deleted data lost due to disk formats and recover data from usb pen drive stick digital camera memory card.

Monday, November 29, 2010 5:29 AM by data recovery

Leave a Comment

(required) 
(required) 
(optional)
(required)