Raspberry Pi ASPNET vNext

Building mono notes

Run the following command in the terminal:

sudo apt-get install git autoconf libtool automake build-essential mono-devel gettext  

It will prompt with the following question:

After this operation, 156 MB of additional disk space will be used.  
    Do you want to continue? [Y/n]

Press enter (Yes)  

After it's done, perform the following commands (choose Yes again if asked):

sudo apt-get update  
sudo apgt-get upgrade  

Get mono source code

sudo git git://github.com/mono/mono.git  

When it's done, it's time to build mono. This will take some time!

sudo ./autogen.sh --prefix=/usr/local && sudo make && sudo make install  

Install samba to create a network share

sudo apt-get install samba samba-common-bin  
sudo nano /etc/samba/smb.conf  

Find the entry

\# wins support = no 

and change it to

wins support = yes  

on the bottom add the following section:

[pihome]
comment = Pi Home Folder  
path = /home/pi  
browseable = yes  
writable = yes  
only guest = no  
create mask = 0777  
directory mask = 0777  
public = no  

press F2 to save and exit

Set samba password

sudo smbpasswd -a pi  

Change project.json

Add to dependencies:

    "Kestrel": "1.0.0-*",

Add to commands:

"kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004",

Start the website

k kestrel  

notes grunt build script

Install node

curl -sL https://deb.nodesource.com/setup | sudo bash -  

and run

sudo apt-get install nodejs  

Install grunt globally

sudo npm install -g grunt-cli