Sunday, January 19, 2014

mono: Running C#, ASP.NET under Ubuntu

Mono is not monotone at all, it makes Microsoft-centered technologies available on various platforms including Ubuntu. Mine is 12.04.

sudo apt-get install mono-devel mono-gmcs gtk-sharp2 

Compile and execute

Fetch the example files at Console helloword program

gmcs hello.cs
mono hello.exe

Compile and execute gtk program

Source Here

dmcs hello-gtk.cs -pkg:gtk-sharp-2.0
mono hello-gtk.exe

Install ASP server xsp2 and start server

sudo apt-get install mono-xsp2 asp.net-examples
xsp2

When server is on, it gives

Listening on address: 0.0.0.0
Root directory: /home/user
Listening on port: 8080 (non-secure)
Hit Return to stop the server.

Now you can visit your .aspx files under http://localhost:8080/yourfile.aspx

Monday, January 6, 2014

Update to Banshee 2.6

sudo add-apt-repository ppa:banshee-team/ppa
sudo apt-get update
sudo apt-get install banshee

Friday, January 3, 2014

Ubuntu: Burn Fedora ISO to USB Stick

For a complete burning techniques, refer Fedora: How to Create and Use Live USB

Startup disk creator only works for Ubuntu ISOs.

Use Disk Utility to get know of where your usb is mounted. In my case, it is /dev/sdc, and the name of downloaded Fedora iso file is there in the command line.

sudo dd bs=4M if=Fedora-Live-Desktop-x86_64-19-1.iso of=/dev/sdc

Note that dd is in bs mode, which means it write in BYTES at a time.

Aside (From USB img to HD)

dd can also copy iso image from USB to your hard disk:

sudo dd if=/dev/sdb of=usb-image.iso