{"id":3453,"date":"2013-05-01T16:08:52","date_gmt":"2013-05-01T14:08:52","guid":{"rendered":"https:\/\/www.bdjl.de\/localhost\/?p=3453"},"modified":"2013-05-02T12:00:53","modified_gmt":"2013-05-02T10:00:53","slug":"ethercalc","status":"publish","type":"post","link":"https:\/\/www.bdjl.de\/localhost\/?p=3453","title":{"rendered":"Ethercalc"},"content":{"rendered":"<p><a href=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2013\/05\/ec.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3454\" alt=\"ec\" src=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2013\/05\/ec-640x320.png\" width=\"640\" height=\"320\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2013\/05\/ec-640x320.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2013\/05\/ec-624x312.png 624w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2013\/05\/ec.png 936w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Auf BeeHive [<a href=\"https:\/\/www.kvfg.net\/beehive\/?p=5601\" target=\"_blank\">1<\/a>, <a href=\"https:\/\/www.kvfg.net\/beehive\/?p=5628\" target=\"_blank\">2<\/a>] habe ich schon hierzu geschrieben: Meine Schule hat nun neben einem Etherpad-Lite-Server auch einen Ethercalc-Server zur gemeinsamen Arbeit an Tabellen im Netz.<\/p>\n<p>Die Installation verlief tats\u00e4chlich so einfach wie auf den <a href=\"http:\/\/ethercalc.net\/\" target=\"_blank\">Seiten der Programmierer<\/a> angegeben.<\/p>\n<p>Was mich zuerst z\u00f6gern lie\u00df, war die Frage, wo ich den auf unserem Testserver hinlegen sollte und wie sich das Programm im Dauerbetrieb dann verh\u00e4lt. Ich entschied mich nun f\u00fcr die Installation von Ethercalc in den Benutzeraccount des schon vorhandenen Etherpad-Lite-Servers. Also nochmal zum Nachturnen hier mein Vorgehen.<\/p>\n<p>Zuerst in den Benutzeraccount von etherpad wechseln:<\/p>\n<blockquote><p>sudo su &#8211; etherpad -s \/bin\/bash<\/p><\/blockquote>\n<p>Dann in<\/p>\n<blockquote><p>\/opt\/etherpad\/local<\/p><\/blockquote>\n<p>ein Unterverzeichnis einrichten<\/p>\n<blockquote><p>mkdir ethercalc<\/p>\n<p>cd ethercalc<\/p><\/blockquote>\n<p>Das Programm installieren<\/p>\n<blockquote><p>npm install ethercalc<\/p><\/blockquote>\n<p>und nachsehen, ob es l\u00e4uft:<\/p>\n<blockquote><p>.\/node_modules\/ethercalc\/bin\/ethercalc<\/p><\/blockquote>\n<p>Im Browser unter der eigenen Domain auf Port 8000 sollte dann der Ethercalc-Server wie hier\u00a0 auftauchen: <a title=\"EC\" href=\"https:\/\/ethercalc.org\/\" target=\"_blank\">https:\/\/ethercalc.org\/<\/a><\/p>\n<p>Mit STRG C schie\u00dft man diesen Prozess wieder ab und meldet sich mit<\/p>\n<blockquote><p>exit<\/p><\/blockquote>\n<p>aus dem Benutzeraccount von Etherpad ab.<\/p>\n<p>Dann &#8211; wieder als root auf dem System unterwegs &#8211; legt man sich ein Startskript f\u00fcr Ethercalc an. Das kann so einfach wie das hier sein:<\/p>\n<blockquote><p>cd \/etc\/initd<\/p>\n<p>vi ethercalc.conf<\/p><\/blockquote>\n<p>und in diese Datei sowas wie das hier pasten:<\/p>\n<blockquote><p>description &#8222;ethercalc&#8220;<\/p>\n<p>start on started networking<\/p>\n<p>stop on runlevel [!2345]<\/p>\n<p>env ECHOME=\/opt\/etherpad\/local\/ethercalc<\/p>\n<p>env ECLOGS=\/var\/log\/ethercalc<\/p>\n<p>env ECUSER=etherpad<\/p>\n<p># Programpath \/opt\/etherpad\/local\/ethercalc\/node_modules\/ethercalc\/bin\/ethercalc<\/p>\n<p>pre-start script<\/p>\n<p>chown -R $ECUSER $ECLOGS ||true<\/p>\n<p>chmod -R 755 $ECLOGS ||true<\/p>\n<p>end script<\/p>\n<p>script<\/p>\n<p>cd $ECHOME\/<\/p>\n<p>exec su -s \/bin\/sh -c &#8218;exec &#8222;$0&#8220; &#8222;$@&#8220;&#8218; $ECUSER &#8212; node_modules\/ethercalc\/bin\/ethercalc \\<\/p>\n<p>&gt;&gt; $ECLOGS\/access.log \\<\/p>\n<p>2&gt;&gt; $ECLOGS\/error.log<\/p>\n<p>end script<\/p><\/blockquote>\n<p>Die Verzeichnisse f\u00fcr die Logs anlegen und dem Benutzer etherpad \u00fcbergeben:<\/p>\n<blockquote><p>mkdir \/var\/log\/ethercalc<\/p>\n<p>chmod -R 755 \/var\/log\/ethercalc<\/p>\n<p>chown -R etherpad \/var\/log\/ethercalc<\/p><\/blockquote>\n<p>Die Logs m\u00fcssen auch weg-rotated werden. Also<\/p>\n<blockquote><p>vi \/etc\/logrotate.conf<\/p><\/blockquote>\n<p>und hier am Ende hinzuf\u00fcgen:<\/p>\n<blockquote><p># Ethercalc &#8211; weekly rotation and compression<\/p>\n<p>\/var\/log\/ethercalc\/*.log {<\/p>\n<p>weekly<\/p>\n<p>missingok<\/p>\n<p>rotate 8<\/p>\n<p>compress<\/p>\n<p>notifempty<\/p>\n<p>}<\/p><\/blockquote>\n<p>Ein<\/p>\n<blockquote><p>service ethercalc start<\/p><\/blockquote>\n<p>sollte den Dienst nun hochbringen.<\/p>\n<p>Mal sehen, wie sich das Ding verhalten wird. Die Konfiguration hier ist noch arg mit der Axt in den Server geklopft, aber es l\u00e4uft erst einmal &#8230; Redis kommt dann als n\u00e4chstes mit auf die Maschine, damit Ethercalc einen echten Datenbankserver zum Speichern der Tabellen hat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Auf BeeHive [1, 2] habe ich schon hierzu geschrieben: Meine Schule hat nun neben einem Etherpad-Lite-Server auch einen Ethercalc-Server zur gemeinsamen Arbeit an Tabellen im Netz. Die Installation verlief tats\u00e4chlich so einfach wie auf den Seiten der Programmierer angegeben. Was mich zuerst z\u00f6gern lie\u00df, war die Frage, wo ich den auf unserem Testserver hinlegen sollte [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10],"tags":[381,369],"class_list":["post-3453","post","type-post","status-publish","format-standard","hentry","category-linux","category-schule","tag-ethercalc","tag-node-js"],"_links":{"self":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/3453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3453"}],"version-history":[{"count":12,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/3453\/revisions"}],"predecessor-version":[{"id":3466,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/3453\/revisions\/3466"}],"wp:attachment":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}