From 4a0abf89d9b9fee9946c0e190e7f2890e426ac9a Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 29 Feb 2012 09:29:07 -0800 Subject: [PATCH] Moves notes to docs/notes --- docs/notes/installation-on-labs.md | 62 ++++++++++++++++++++++++++++++++++++ msc/labs-notes.md | 62 ------------------------------------ 2 files changed, 62 insertions(+), 62 deletions(-) create mode 100644 docs/notes/installation-on-labs.md delete mode 100644 msc/labs-notes.md diff --git a/docs/notes/installation-on-labs.md b/docs/notes/installation-on-labs.md new file mode 100644 index 0000000..ec25078 --- /dev/null +++ b/docs/notes/installation-on-labs.md @@ -0,0 +1,62 @@ +# labs notes + +Just random stuff you might be interested in, as I work. + + +## sudoers NOPASSWD + +My LDAP password is a jangly string of random characters. To avoid memorizing it (I use a password safe), I think we should add NOPASSWD to ourselves in `/etc/sudoers` under "# User privilege specification": + + dsc ALL=(ALL) NOPASSWD: ALL + otto ALL=(ALL) NOPASSWD: ALL + +These instances are disposable and our keys are secure enough imo, so I vote convenience > security. + + +## Installing node.js & other deps + +I'd prefer to do it via package manager (https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) but the latest in the repo is 0.4.x and we need >=0.6.x. So source it is. + + sudo su - + aptitude install build-essential libev-dev libssl-dev + mkdir sources; cd sources + + # node.js + wget http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz + tar -xvf node-v0.6.11.tar.gz + cd node-v0.6.11 + ./configure && make && make install && make doc + cd .. + + # npm + curl http://npmjs.org/install.sh > npm-install.sh + sh ./npm-install.sh + + # git + aptitude install git-core gitdoc + + # coco, coffee (global) + npm install -g coco coffee-script + + + + +## Kraken + + # reminder -- your user's publickey needs to be in my gitosis repo for this to work + cd /srv + git clone git@less.ly:kraken-ui.git + cd kraken-ui + + sudo su - + cp -f /srv/kraken-ui/msc/reportcard.wmflabs.org.conf /etc/apache2/sites-available/reportcard + cd /etc/apache2/sites-enabled + ln -sf ../sites-available/reportcard ./ + exit + + mkdir logs + npm install + coke setup + ./lib/server/server.co + # ./lib/server/server.co >> logs/kraken.log & + diff --git a/msc/labs-notes.md b/msc/labs-notes.md deleted file mode 100644 index ec25078..0000000 --- a/msc/labs-notes.md +++ /dev/null @@ -1,62 +0,0 @@ -# labs notes - -Just random stuff you might be interested in, as I work. - - -## sudoers NOPASSWD - -My LDAP password is a jangly string of random characters. To avoid memorizing it (I use a password safe), I think we should add NOPASSWD to ourselves in `/etc/sudoers` under "# User privilege specification": - - dsc ALL=(ALL) NOPASSWD: ALL - otto ALL=(ALL) NOPASSWD: ALL - -These instances are disposable and our keys are secure enough imo, so I vote convenience > security. - - -## Installing node.js & other deps - -I'd prefer to do it via package manager (https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) but the latest in the repo is 0.4.x and we need >=0.6.x. So source it is. - - sudo su - - aptitude install build-essential libev-dev libssl-dev - mkdir sources; cd sources - - # node.js - wget http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz - tar -xvf node-v0.6.11.tar.gz - cd node-v0.6.11 - ./configure && make && make install && make doc - cd .. - - # npm - curl http://npmjs.org/install.sh > npm-install.sh - sh ./npm-install.sh - - # git - aptitude install git-core gitdoc - - # coco, coffee (global) - npm install -g coco coffee-script - - - - -## Kraken - - # reminder -- your user's publickey needs to be in my gitosis repo for this to work - cd /srv - git clone git@less.ly:kraken-ui.git - cd kraken-ui - - sudo su - - cp -f /srv/kraken-ui/msc/reportcard.wmflabs.org.conf /etc/apache2/sites-available/reportcard - cd /etc/apache2/sites-enabled - ln -sf ../sites-available/reportcard ./ - exit - - mkdir logs - npm install - coke setup - ./lib/server/server.co - # ./lib/server/server.co >> logs/kraken.log & - -- 1.7.0.4