Skip to content

Instantly share code, notes, and snippets.

@arthernan
Last active August 29, 2015 14:08
Show Gist options
  • Save arthernan/e59d385d7af56affff4e to your computer and use it in GitHub Desktop.
Save arthernan/e59d385d7af56affff4e to your computer and use it in GitHub Desktop.
Node Windows VM setup
http://www.youtube.com/watch?v=x_9YzG-BMrU
sudo apt-get upgrade
sudo apt-get install openssh-server
ifconfig
# get the ip ad set it in C:\Windows\system32\Drivers\etc\hosts
mkdir ~/.ssh
# in windows add authorized_keys and paste public key only before the "=" and after the comment
# ssh-rsa {key}
sudo chmod 600 ~/.ssh/authorized_keys
sudo apt-get -y update
sudo apt-get -y install libssl-dev build-essential
sudo mkdir /tmp/node-install
cd /tmp/node-install
sudo wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz
sudo tar -zxf node-v0.12.7.tar.gz
cd node-v0.12.7
sudo chmod -R 770 /tmp/node-install/node-v0.12.7
sudo ./configure
sudo make
sudo make install
cd /
sudo rm -r /tmp/node
node -v
sudo mkdir -p /srv/www
sudo mkdir -p /srv/logs
sudo chmod -R 777 /srv/www
sudo chmod -R 777 /srv/logs
sudo npm install -g node-inspector
sudo chmod 777 /etc/init
# copy www.conf & node-inspector.conf to /etc/init by copying on winscp
sudo visudo # add at the end of the file arturo ALL = NOPASSWD: /sbin/start, /sbin/stop, /sbin/restart
sudo start www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment