{"id":497,"date":"2013-07-02T11:06:39","date_gmt":"2013-07-02T02:06:39","guid":{"rendered":"http:\/\/blog.himor.in\/?p=497"},"modified":"2013-07-02T11:06:39","modified_gmt":"2013-07-02T02:06:39","slug":"setting-up-ethercalc-ii","status":"publish","type":"post","link":"https:\/\/blog.himor.in\/?p=497","title":{"rendered":"Setting up ethercalc (II)"},"content":{"rendered":"<p>following <a href=\"http:\/\/blog.himor.in\/?p=494\">previous post<\/a>.<\/p>\n<h3>Server environment and configuration<\/h3>\n<ul>\n<li>Debian Wheezy amd64<\/li>\n<li>Using official repository as much as possible\n<ul>\n<li>redis-server 2:2.4.14-1<\/li>\n<\/ul>\n<\/li>\n<li>Run behind apache reverse proxy, using &#8220;\/ethercalc\/&#8221; as its path from browser<\/li>\n<\/ul>\n<h4>node.js<\/h4>\n<pre>\r\ncd \/usr\/local\/src\r\nwget http:\/\/nodejs.org\/dist\/v0.10.10\/node-v0.10.10.tar.gz\r\ntar -zxvf node-v0.10.10.tar.gz\r\ncd node-v0.10.10\r\n.\/configure\r\nmake\r\nmake install DESTDIR=\/usr\/local\/node.js\r\ndpkg -i node_0.10.10-1_amd64.deb\r\n<\/pre>\n<p>Note, package name &#8216;node&#8217; exists already in Debian official package..<\/p>\n<h4>ethercalc<\/h4>\n<pre>\r\ncd \/server\r\nnpm i ethercalc\r\n<\/pre>\n<p>Use <a href=\"https:\/\/github.com\/himorin\/scripts\/blob\/master\/system\/ethercalc\">rc script<\/a> for starting ethercalc.<br \/>\nAlso use <tt>--basepath<\/tt> option to run ethercalc at &#8216;\/ethercalc\/&#8217; path as <tt>\/server\/node_modules\/ethercalc\/app.js --basepath \/ethercalc\/<\/tt>.<\/p>\n<pre>\r\nupdate-rc.d defaults ethercalc\r\ninvoke-rc.d ethercalc start\r\n<\/pre>\n<h4>Apache configuration<\/h4>\n<p>Added reverse proxy.<\/p>\n<pre>\r\n    ProxyVia On\r\n    ProxyRequests Off\r\n    ProxyPass \/ethercalc\/ http:\/\/XXX:8000\/\r\n    ProxyPassReverse \/ethercalc\/ http:\/\/XXX:8000\/\r\n    ProxyPreserveHost on\r\n<\/pre>\n<h3>misc notes<\/h3>\n<h4>installed ethercalc dependencies and versions<\/h4>\n<pre>\r\nethercalc@0.20130622.1 \/server\/node_modules\/ethercalc\r\n\u251c\u2500\u2500 cors@1.0.1\r\n\u251c\u2500\u252c LiveScript@1.1.1\r\n\u2502 \u2514\u2500\u2500 prelude-ls@1.0.0\r\n\u251c\u2500\u252c optimist@0.5.2\r\n\u2502 \u2514\u2500\u2500 wordwrap@0.0.2\r\n\u251c\u2500\u2500 redis@0.8.2\r\n\u251c\u2500\u2500 uuid-pure@1.0.10\r\n\u251c\u2500\u2500 webworker-threads@0.4.7\r\n\u2514\u2500\u252c zappajs@0.4.22\r\n  \u251c\u2500\u252c coffee-css@0.0.5\r\n  \u2502 \u251c\u2500\u2500 coffee-script@1.6.3\r\n  \u2502 \u2514\u2500\u2500 underscore@1.4.4\r\n  \u251c\u2500\u252c coffeecup@0.3.20\r\n  \u2502 \u251c\u2500\u2500 coffee-script@1.6.3\r\n  \u2502 \u251c\u2500\u2500 optparse@1.0.3\r\n  \u2502 \u251c\u2500\u252c stylus@0.27.2\r\n  \u2502 \u2502 \u251c\u2500\u2500 cssom@0.2.5\r\n  \u2502 \u2502 \u251c\u2500\u2500 debug@0.7.2\r\n  \u2502 \u2502 \u2514\u2500\u2500 mkdirp@0.3.5\r\n  \u2502 \u2514\u2500\u2500 uglify-js@1.2.6\r\n  \u251c\u2500\u252c express@3.2.6\r\n  \u2502 \u251c\u2500\u2500 buffer-crc32@0.2.1\r\n  \u2502 \u251c\u2500\u2500 commander@0.6.1\r\n  \u2502 \u251c\u2500\u252c connect@2.7.11\r\n  \u2502 \u2502 \u251c\u2500\u2500 bytes@0.2.0\r\n  \u2502 \u2502 \u251c\u2500\u2500 cookie@0.0.5\r\n  \u2502 \u2502 \u251c\u2500\u2500 formidable@1.0.14\r\n  \u2502 \u2502 \u251c\u2500\u2500 pause@0.0.1\r\n  \u2502 \u2502 \u251c\u2500\u2500 qs@0.6.5\r\n  \u2502 \u2502 \u2514\u2500\u252c send@0.1.1\r\n  \u2502 \u2502   \u2514\u2500\u2500 mime@1.2.9\r\n  \u2502 \u251c\u2500\u2500 cookie@0.1.0\r\n  \u2502 \u251c\u2500\u2500 cookie-signature@1.0.1\r\n  \u2502 \u251c\u2500\u2500 debug@0.7.2\r\n  \u2502 \u251c\u2500\u2500 fresh@0.1.0\r\n  \u2502 \u251c\u2500\u2500 mkdirp@0.3.4\r\n  \u2502 \u251c\u2500\u2500 range-parser@0.0.4\r\n  \u2502 \u2514\u2500\u252c send@0.1.0\r\n  \u2502   \u2514\u2500\u2500 mime@1.2.6\r\n  \u251c\u2500\u2500 methods@0.0.1\r\n  \u251c\u2500\u2500 node-uuid@1.4.0\r\n  \u251c\u2500\u252c socket.io@0.9.16\r\n  \u2502 \u251c\u2500\u2500 base64id@0.1.0\r\n  \u2502 \u251c\u2500\u2500 policyfile@0.0.4\r\n  \u2502 \u251c\u2500\u2500 redis@0.7.3\r\n  \u2502 \u2514\u2500\u252c socket.io-client@0.9.16\r\n  \u2502   \u251c\u2500\u252c active-x-obfuscator@0.0.1\r\n  \u2502   \u2502 \u2514\u2500\u2500 zeparser@0.0.5\r\n  \u2502   \u251c\u2500\u2500 uglify-js@1.2.5\r\n  \u2502   \u251c\u2500\u252c ws@0.4.25\r\n  \u2502   \u2502 \u251c\u2500\u2500 commander@0.6.1\r\n  \u2502   \u2502 \u251c\u2500\u2500 options@0.0.5\r\n  \u2502   \u2502 \u2514\u2500\u2500 tinycolor@0.0.1\r\n  \u2502   \u2514\u2500\u2500 xmlhttprequest@1.4.2\r\n  \u2514\u2500\u252c uglify-js@2.3.6\r\n    \u251c\u2500\u2500 async@0.2.9\r\n    \u251c\u2500\u252c optimist@0.3.7\r\n    \u2502 \u2514\u2500\u2500 wordwrap@0.0.2\r\n    \u2514\u2500\u252c source-map@0.1.23\r\n      \u2514\u2500\u2500 amdefine@0.0.5\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>following previous post. Server environment and configuration Debian Wheezy amd64 Using official repository as much as possible redis-server 2:2.4.14-1 Run behind apache reverse proxy, using &#8220;\/ethercalc\/&#8221; as its path from browser node.js cd \/usr\/local\/src wget http:\/\/nodejs.org\/dist\/v0.10.10\/node-v0.10.10.tar.gz tar -zxvf node-v0.10.10.tar.gz cd node-v0.10.10 .\/configure make make install DESTDIR=\/usr\/local\/node.js dpkg -i node_0.10.10-1_amd64.deb Note, package name &#8216;node&#8217; exists already [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,3,10,14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/497"}],"collection":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=497"}],"version-history":[{"count":1,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/497\/revisions"}],"predecessor-version":[{"id":498,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/497\/revisions\/498"}],"wp:attachment":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}