sudo vi /etc/nginx/sites-available/jimmy.hillis.conf
The first time I used Unix was in university. I was a massive fan of the terminal throughout my four years of study. After I graduated I got a Mac, started developing websites and never truly found my love of unix again.
I spend a decent amount of my work-life in a Terminal - generally smaller stuff with moving files around servers, dealing with GIT, and other CLI apps. Nothing too serious -- I know how to use some
vi commands and I know how to
sudo myself into a right
rm -rf / mess.
The last few months I've seen myself working more and more closely with the server, writing some bootstrap code and dealing with some tools for building websites faster. With my node workf I've finally taken the plunge and got myself a slice for hosting my own projects and to have as a playground.
My first task today was to setup my Linode slice and get it all prepped for some basic usage. I was able to quickly, and easily, setup the distro, sort out some basic security (disable all, ssh with key access only, no root ssh access, firewall, etc.). I know how it all works (deal with it on a daily basis in the office) but the guide provided by Linode is hands-down the most clear Linux guide to setting up a server I've seen. I highly recommend it, even as a quick read on how to set some basic tools in unix should be described: Linode Library
From there I needed to install node, and after having a nightmare of a time on the QNAP yesterday I was able to do this with little issues. We need to compile the source so to begin with we make sure all required tools are installed:
apt-get install build-essential openssl libssl-dev pkg-config
From here we're good to grab the latest node source (check the website unzip and check the configuration.
wget http://nodejs.org/dist/v0.6.17/node-v0.6.17.tar.gz tar xzvf node-v0.6.17.tar.gz cd cd node-v0.6.17/ ./configure
I had a minor problem with node not finding openssl (due to missing the
pkg-config that node uses) which I've added to my initial
apt-get command. Once it's happy we make and install this baby:
make make install
npm all installed and ready for action.