Parker Glynn-Adey

PreTeXt on Ubuntu 18.04

Posted in Computers, Math by pgadey on 2020/04/19

As part of the trying out new things bonanza, I installed PreTeXt. It turned out that my install was missing a couple packages: texlive-fonts-extra, texlive-science, and xsltproc.

Once these packages were installed, things worked great!


sudo apt-get install texlive-fonts-extra texlive-science xsltproc
git clone https://github.com/rbeezer/mathbook.git

cd mathbook
git checkout dev
cd examples/minimal/

xsltproc ../../xsl/mathbook-html.xsl minimal.xml
xsltproc -o minimal.tex ../../xsl/mathbook-latex.xsl minimal.xml
pdflatex minimal.tex

Tagged with: , , ,

Backing Up with TAR

Posted in Computers by pgadey on 2019/11/03

My laptop is on its last legs. I manage to wear out laptops at an alarming rate. The Lenovo X220 has served me well, but the battery is flaking out and it shuts down everytime the wind blows. So, I looked up some options for backing up the disk. I found this brief guide to backing up.

Here are the relevant commands for reference:

$ sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
$ sudo tar -xvpzf /path/to/backup.tar.gz -C /restore/location --numeric-owner

Tagged with: , ,