My Network Issues
I had network problems that caused my "apt-get update" to somethimes fail. I fixed it by
- Disable IPv6 via these instructions: https://www.leowkahman.com/2016/03/19/disable-ipv6-raspberry-raspbian/
- I used these instructions to set up a static IP: https://nebulousthinking.wordpress.com/2016/02/25/setting-a-static-ip-for-raspbian-jessie-in-2016/
Installing Turtl
Here is a great set of instructions: http://community.nethserver.org/t/turtl-server-an-evernote-alternative/5934/6
But I needed to make the following changes:
- RethinkDB
- There is no official/community version for Raspbian, so you must compile it on Pi: https://rethinkdb.com/docs/install/raspbian/
- The compilation requires the size of your swapfile size to be changed from 100MB to 1024MB (https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/)
- Before building RethinkDB, I had to change the url in mk/support/pkg/zlib.sh from "http://zlib.net/xxxxx" to "http://zlib.net/fossils/xxxxx" (suggested by a link similar to this https://github.com/tensorflow/tensorflow/issues/6594)
- On my Raspberry Pi 3, the compilation took ~ 6 hours
- To start RethinkDB upon startup, I added this command in my /etc/rc.local: "sudo /usr/local/bin/rethinkdb --server-name rbpi_rethinkdb --daemon"
- After rethinkDB is installed and set up, you should be able to go to http://localhost:8080 and see the RethinkDB web admin page
- CCL
- For installing CCL, I used this SVN command since the Raspberry Pi runs an ARM processor: "svn co http://svn.clozure.com/publicsvn/openmcl/release/1.11/linuxarm/ccl"
- Turtl
- In launch.lisp, "central-registry" has an asterisk before and after it
- In turtl's /home/turtl/api/config/config.lisp, I had to specify my Pi's IP address for "server-bind" instead of using "localhost/127.0.0.1".
Logging
In /home/turtl/app/config/config.lisp, there's a section that looks like this
:: setup the logger
(vom:config :turtl :info)
":info" can be changed to ":debug" and you'll get more detailed logging in /var/logs/syslog
Remaining Issues
I'm still having some stability issues, where Turtl goes down with some sort of "connection refused" errors, but I haven't yet had time to investigate that.