Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Notes on ChromeOS + CoCalc

Views: 2039

CoCalc without Docker

This is how to install your own personal CoCalc. The directions below have only been tested with Debian stable (on a Pixelbook using Crostini), but nearly the same thing should work under Ubuntu (?) on any Linux machine. Make sure you have at least 1.5GB of disk space available for the cocalc install (and all dependencies).

WARNING: For me this creates the server and I can make an account, but project creation doesn't work. I'll come back to that later.

Install Node.js and PostgreSQL and Python Yaml.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs sudo apt-get install dpkg-dev libpq-dev libpq5 python3-yaml postgresql

Grab the CoCalc source code.

cd; git clone https://github.com/sagemathinc/cocalc.git

Build it and install dependencies:

cd cocalc/src npm run make

Also, install Python scripts:

wstein@penguin:~/cocalc/src$ sudo apt-get install python-pip wstein@penguin:~/cocalc/src$ pip install --user smc_pyutil/ smc_sagews/

When that is done, add this to your ~/.bashrc:

export CUR=`pwd` cd $HOME/cocalc/src . smc-env cd "$CUR" export PATH=/usr/lib/postgresql/9.6/bin:$PATH

Then start postgresql running:

wstein@penguin:~/cocalc/src$ source ~/.bashrc wstein@penguin:~/cocalc/src$ dev/minimal/start_postgres.py

And start the hub (in another tmux or terminal session somehow):

wstein@penguin:~$ cd cocalc/src/ wstein@penguin:~/cocalc/src$ dev/minimal/start_hub.py

Now the hub should be running and serving from

http://penguin.linux.test:8000 (or http://localhost:8000 if you're not using a Pixelbook).

and you should be able to visit that URL and get an error... because the webpack build hasn't happened.

Do

wstein@penguin:~/cocalc/src$ time npm run webpack-production

to build the static files using webpack (this should take 5-10 minutes). Once that finishes, visit http://penguin.linux.test:8000, make an account, and start using your computer via CoCalc...