Texlive Dual Boot use same Texlive src(texmf-dist) from Windows

in texlive •  6 years ago  (edited)

I use Arch Linux but the steps should be the same in other Linux distributions.

Install texlive-core

sudo pacman -S texlive-core

move the created texmf-dist

sudo mv /usr/share/texmf-dist /usr/share/texmf-distOLD

mount your windows system

with lsblk find your partition and mount sudo mount -t ntfs-3g (your partition) (to a folder)
examaple:
sudo mount -t ntfs-3g /dev/nvme0n1p3 /mnt/win/
without ntfs-3g you mount the Windows partition as Read-Only.
Is there an error start windows and shutdown windows by holding shift key.

Symbolic link the folder

sudo ln -s (your windows temf-dist folder) /usr/share/
example:
sudo ln -s /mnt/win/texlive/2018/texmf-dist/ /usr/share/

change the texmf.cnf file

This file you must change every time you change the operating system
move the windows setting
mv /usr/share/texmf-dist/web2c/texmf.cnf /usr/share/texmf-dist/web2c/texmf.cnf.win
copy the linux setting
cp /usr/share/texmf-distOLD/web2c/texmf.cnf /usr/share/texmf-dist/web2c/texmf.cnf

Finish

Test that it is working
sudo texhash
output:
texhash: Updating /etc/texmf/ls-R...
texhash: Updating /usr/share/texmf-dist/ls-R...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @tsst! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @tsst! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!