How can I most easily configure the SageVM?

asked 2017-11-13 22:12:11 +0100

jordana309 gravatar image

updated 2024-08-26 11:17:17 +0100

FrédéricC gravatar image

I am working the with most recent Sage virtual box (ova) appliance, and I am trying to install LaTeX and all available kernels. I have been writing down exactly what I have done, which I plan to provide the community as a tutorial when everything is working. The problem is that I don't have a lot of experience with Linux, and so I'm basically hacking and slashing, as I can't find any documentation for how the appliance was configured or how to add LaTeX to the already-configured TeX install.

My question is, what's the best way to add functionality? Where should I install new things?

As an example: I wanted to start with LaTeX. Sage seems to have it's own environment with a working TeX, but it can't find pdfLaTeX for printing a notebook. I tried installing with yum, but CentOS installs an incomplete version that doesn't have a TeX package manager, so I can't add the missing LaTeX packages. I built LaTeX from source and it worked, but when I tried to install Ruby, yum installed the default LaTeX anyway, which then broke printing from jupyter using pdfLaTeX because it now found the one yum installed without the needed packages and ignores mine. I want to add pdfLaTeX to the preconfigured TeX environment in Sage so that Ruby and other languages can find it.

I'd build a box from scratch, but I cannot duplicate the functionality of jupyter notebook (where it comes up as a server for my host box) installing things from source, so I am trying to configure the pre-packaged ova, and since Sage is set up to be self-contained there, I cannot get things installed through yum to find the things installed in Sage. What am I doing wrong? Or was this not really something the ova was designed for?

edit retag flag offensive close merge delete

Comments

In linux it is the main point to join a distro that supports most of the issues that may appear. Choosing the distribution means choosing the package manager and the available packages. It is always a good idea to join a main stream "distro" with lots of docs and a chat room (in each language).

If CentOS was the given distro, never my choice, then try to install everything using the default package manager. I think sudo yum install texlive-* is not installing "all", but enough.

A good idea - for my taste - would be to use an arch or ubuntu based distribution. Things get quickly up and running. In the ubuntu world it is always a massive help online (chat room). This is a manjaro box answering, it feels good. No problems to install sage from the AUR.

So, is CentOS already fixed?

dan_fulea gravatar imagedan_fulea ( 2017-11-15 21:27:42 +0100 )edit

No. This install did not give me the needed latex packages or anything else. I will have to try something else.

Is there a guide for how to set up the VM just like how it is configured on the website?

jordana309 gravatar imagejordana309 ( 2017-11-19 09:06:40 +0100 )edit
Iguananaut gravatar imageIguananaut ( 2018-11-12 19:08:17 +0100 )edit