1) Install LaTex
2) Install SageMath
3) Configure LaTex with Sagemath
4) Install biber
1) SageMath
sudo apt-add-repository -y ppa:aims/sagemath
sudo apt-get update
sudo apt-get install sagemath-upstream-binary
2) biber
sudo apt-get install biber
1)pdflatex main.tex
2)biber main
3)sage main.sagetex.sage
4)pdflatex main.tex
./run