{"id":2355,"date":"2014-05-08T11:15:57","date_gmt":"2014-05-08T15:15:57","guid":{"rendered":"http:\/\/antipaucity.com\/?p=2355"},"modified":"2014-05-08T11:15:57","modified_gmt":"2014-05-08T15:15:57","slug":"setting-up-etherpad-in-centos-6","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=2355","title":{"rendered":"setting-up etherpad in centos 6"},"content":{"rendered":"<p>To add to my tutorial <a href=\"http:\/\/antipaucity.com\/category\/tutorial\/#.U2O7Tq1dWtY\">collection<\/a>, here&#8217;s how to setup <a href=\"http:\/\/etherpad.org\">EtherPad<\/a> on CentOS 6 (x64). As in the <a href=\"http:\/\/antipaucity.com\/2014\/04\/22\/setting-up-an-unreal-irc-server-on-centos-6\/#.U2O27q1dWtY\">IRC<\/a> tutorial, I used a <a href=\"https:\/\/digitalocean.com\/?refcode=d197a961987a\">Digital Ocean<\/a> VM for this \ud83d\ude42<\/p>\n<p>What is EtherPad? It&#8217;s an open-source collaborative text editor that works like Google Docs &#8211; ie, all editors\/viewers can see changes from everyone else in realtime.<\/p>\n<p>Here&#8217;s how I did it: (props to the EtherPad <a href=\"https:\/\/github.com\/ether\/etherpad-lite#installation\">docs<\/a> and this other <a href=\"http:\/\/howtonode.org\/how-to-install-nodejs\">tutorial<\/a> on {{Node.js}})<\/p>\n<ul>\n<li>acquire a {{CentOS}} server &#8211; I used <a href=\"https:\/\/digitalocean.com\/?refcode=d197a961987a\">Digital Ocean<\/a><\/li>\n<li>make sure you have enough swap space (if you use the smallest <a href=\"https:\/\/www.digitalocean.com\/?refcode=d197a961987a\">Digital Ocean<\/a> &#8220;droplet&#8221;, you really need to give yourself 2-4G swap)\n<ul>\n<li>dd if=\/dev\/zero of=\/swapfile bs=8192 count=524288<\/li>\n<li>mkswap swapfile<\/li>\n<li>swapon swapfile<\/li>\n<li>add this line to the end of your \/etc\/fstab:\n<ul>\n<li>\/swapfile swap swap defaults 0 0<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>run the following as root:\n<ul>\n<li>yum -y install gzip git-core curl {{python}} openssl-devel &amp;&amp; yum groupinstall<\/li>\n<li>yum -y install screen {{gcc}} gcc-c++ make wget curl\n<ul>\n<li>note &#8211; it&#8217;s not always called &#8220;gcc-c++&#8221;; make sure you use the correct package name for your platform<\/li>\n<li>you can find out the correct package name by doing a `yum provides *\/g++` search<\/li>\n<\/ul>\n<\/li>\n<li>yum -y upgrade\n<ul>\n<li>bring everything up to date &#8211; it&#8217;s <a href=\"http:\/\/superuser.com\/q\/433375\/978\">equivalent<\/a> to `yum -y update &#8211;obsoletes`<\/li>\n<\/ul>\n<\/li>\n<li>adduser etherpad<\/li>\n<li>su &#8211; etherpad<\/li>\n<li>git clone git:\/\/github.com\/ry\/node.git<\/li>\n<li>cd node &amp;&amp; .\/configure &amp;&amp; make &amp;&amp; make install<\/li>\n<li>cd<\/li>\n<li>git clone git:\/\/github.com\/ether\/etherpad-lite.git<\/li>\n<li>cd etherpad-lite<\/li>\n<li>screen bin\/run.sh<\/li>\n<\/ul>\n<\/li>\n<li>load\u00a0http:\/\/127.0.0.1:9001\u00a0in your browser (substitute the IP\/DNS name of your server as appropriate &#8211; mine was http:\/\/107.170.150.57:9001)<\/li>\n<li>for maintenance purposes, you should also do a `git pull origin` for EtherPad periodically<\/li>\n<\/ul>\n<p>Some notes on the above:<\/p>\n<ul>\n<li>if you already have swap space and\/or don&#8217;t want to worry about it (though I <a href=\"http:\/\/antipaucity.com\/2011\/08\/08\/why-technical-intricacies-matter\/#.U2O5gK1dWtY\">recommend<\/a> you do), you can skip it<\/li>\n<li>I&#8217;ve put the `-y` option after every `yum` call presuming you\u00a0<em>really<\/em> mean to run it, and you don&#8217;t care about dependencies\n<ul>\n<li>if you aren&#8217;t using a fresh server (EtherPad certainly doesn&#8217;t require it&#8217;s own), you may want to be a little more cautious about the `yum` commands \ud83d\ude42<\/li>\n<\/ul>\n<\/li>\n<li>you should create a start-up script to ensure EtherPad is running if you need to reboot<\/li>\n<li>the EtherPad <a href=\"https:\/\/github.com\/ether\/etherpad-lite#next-steps\">docs<\/a> have all kinds of further things you can do &#8211; this is\u00a0<em>just<\/em> a &#8220;get it going and start using it&#8221; tutorial \ud83d\ude42<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>To add to my tutorial collection, here&#8217;s how to setup EtherPad on CentOS 6 (x64). As in the IRC tutorial, I used a Digital Ocean VM for this \ud83d\ude42 What is EtherPad? It&#8217;s an open-source collaborative text editor that works like Google Docs &#8211; ie, all editors\/viewers can see changes from everyone else in realtime. &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=2355\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">setting-up etherpad in centos 6<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[11,41,45],"tags":[166,294,390,450],"keyring_services":[],"class_list":["post-2355","post","type-post","status-publish","format-standard","hentry","category-education","category-technical","category-tutorial","tag-centos","tag-etherpad","tag-how-to","tag-linux"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/2355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2355"}],"version-history":[{"count":0,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/2355\/revisions"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2355"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=2355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}