Node.js

Posted on

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications.
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

In this turorial we will walk you through how to install Node.js on a Ubuntu 12.04 server.
The best way of installing Node.js in to build it from the source.

Code: sudo apt-get install python-software-properties python g++ make
Code: sudo add-apt-repository ppa:chris-lea/node.js
Code: sudo apt-get update
Code: sudo apt-get install nodejs

http://stackoverflow.com/questions/16302436/install-nodejs-on-ubuntu-12-10

http://www.codestance.com/tutorials-archive/nginx-proxy-websockets-to-socket-io-316

http://webandphp.com/IntegratingNode.jswithPHP
Building from source:
Code: sudo apt-get update
Code: sudo apt-get install git build-essential wget
Code: wget http://nodejs.org/dist/v0.10.16/node-v0.10.16.tar.gz
Code: tar xvf node-v0.10.16.tar.gz
Code: pushd node-v0-10-16
Code: ./configure
Code: make
Code: sudo make install

Test the node.js installation:
Code: node –version
Code: node
> 1+3
Result: 4

Install Socket.io:
Code: npm install socket.io

Test Socket.io:
Code: npm info socket.io version

Creating a Node.js application using Socket.IO and Express

Create a package.json file that contains the dependencies of your application.
Navigate to the folder containing the package.js file and install the modules:
Code: sudo npm install

Create the server side application eg app.js. You can call it whatever you like.

Make the application run like a service.
https://www.exratione.com/2011/07/running-a-nodejs-server-as-a-service-using-forever/
http://jasonleveille.com/blog/2013/01/debian-ubuntu-adding-a-startup-script/
Create a upstart script for your Node.js application so it run as a service and make it use Forever as the process monitor.
Put the script in /etc/init.d/ folder and make it executable chmod u+x “script name”
Code: sudo update-rc.d node-live-update defaults

Google Apps for business

Posted on

Create a new Google Apps for Business account:

Click here

Click on “Get started”

 

Step 1: About you

Name: Insert the clients name

Email: admin@reseller.nuvopoint.com

About your bussiness

Business or organization name: “customers bussiness name”

Number of employees: Set the correct number

Country: Set country for the customer

Phone: Insert the customers phonenumber

 

Step 2: Business Domain Address

Choose the option and insert the domain

 

Step 3: Configure the domain

First you need to verify the ownership of the domain.

Log in to the newly created domain managment console and start the verification prosses. There are different metods to verify but the easiest way is to add a TXT record to the DNS of the domain.

To add the TXT record you need to log in to the DNS managment console and add the record here.

 

After the verification prosses is completed you can start to set up the clients.

You can set the logo under business profiles.

nuvopoint_logo

 

Step 4: Connect the client to the reseller program

In the clients Google Apps console go to support and copy the client pin.

Log in to google.com/a/reseller.nuvopoint.com

Click on resellers tools and enter the customers domain and PIN under “Csutomer registration”

 

Step 5: Set up billing

Instruct the client to set up billing with a flexi plan.

 

DNS setup with Unoeuro

Posted on

To setup the DNS configuration follow these steps:

Step 1:
Log in to UnoEuro administration > controlepanel > DNS administration.
Add a new DNS record for YOURDOMAIN.COM and *.YOURDOMAIN.COM with the value 54.247.125.231.
Type: A.
TTL: 3600.

Step 2:
Go to nuvoPoint backend > network administration > websites > YOUWEBSITE. Identify the website ID in the URL.

Go to nuvoPoint backend > network administration > settings > domains. Add website ID and WWW.YOURDOMAIN.COM and YOURDOMAIN.COM as primary.