All posts in Ubuntu

Ubuntu – node.js install cheatsheet

See setting up ubuntu server cheat sheet.

sudo apt-get install g++ curl libssl-dev

sudo apt-get install git-core


git clone git://github.com/joyent/node

cd node
./configure
make
sudo make install

Install NPM (Node Package manager)

Isaac Schlueter suggests giving yourself permission to the “/usr/local directory instead of using sudo. You should read his post.

sudo chown -R $USER /usr/local


curl http://npmjs.org/install.sh | sh

Help:

npm help

Install:

npm install |your package|

Setting up a Ubuntu Server for testing PHP, Rails

This is more of a cheat sheet. It assumes you know how to use SSH, Apache, Ruby and PHP.

  • Get the latest version of Ubuntu Server.
  • After Installation, login and type this into terminal:

    sudo apt-get upgrade

    Answer all questions with “y”.

  • Setup SSH:

    sudo apt-get install openssh-server

  • Install Apache:

    sudo apt-get install apache2

  • Install PHP:

    sudo apt-get install php5

  • Install MySQL:

    sudo apt-get install mysql-server mysql-client

    Enter password when asked.

  • Link PHP and Mysql with Apache:

    sudo apt-get install libapache2-mod-auth-mysql
    sudo apt-get install php5-mysql

  • Install Ruby:

    sudo apt-get install build-essential zlib1g-dev ruby-full

  • Install SQLite3:

    sudo apt-get install sqlite3 libsqlite3-dev

  • Install Ruby on Rails:

    sudo apt-get install rubygems
    gem install rails

  • Install FTP:

    sudo apt-get install vsftpd

  • You will have to change some settings to be able to download and upload files. Read this guide.
 
UA-21428743-1