I'm a LyX user. Can I move all (or most) of the TeX related files/folders to another (Linux) partition (
/data) and so reuse that partition for LyX-TeX after OS re-install, as well as share that TeX partition between two distros (Lubuntu and Mageia LXDE)?
Thanks to egreg and this guy on latex-community.org for LyX config, the steps I've taken are as follows (my architecture is x86_64):
Enter this in terminal to copy the Texlive directory:
If everything goes right you can remove the original Texlive later on.
Now edit the
Now to set the path to binaries in LyX, go to Tools > Preferences > Paths > PATH Prefix and enter:
"Apply", "Save" and restart LyX. Go to "Tools > TeX Information", check "Show path" and "Rescan". If all is set correctly, LyX should find the new path. (I have simply quoted briefly the guy I've mentioned above.)
On a side note, Buntus/Debian have LyX bundled with the TeX dependency in their repositories, but that TeX part is very old (Texlive 2009). So I've installed the 3 GB Texlive 2011 and installed LyX from the terminal as it's reccomended in LyX website:
The TeX Live binaries "know" the location of the TeX Live tree (files, fonts and so on), because they set implicitly some environment variables whose value depends on the location of the binaries themselves.
On a Unix system it's so sufficient that the
(How to set the
and modify the
The final bit depends on the operating system, just look what's in the
It won't be a problem to share the tree between two GNU/Linux distributions, so long as they use the same binaries. But it's also possible to have more than one set of binaries (say the 32 bit and the 64 bit varieties): all you need is to have the correct pointer in the
A method that I find very easy to manage is to create a symbolic link:
(with suitable privileges, of course), without modifying the personal
Similar symbolic links can be created for man pages and info files.
I guess from the tag
However, to me it seems recommendable to install the original 'texlive' not into /opt or /usr, but into a separate partition, e.g. /local . You can update by
I don't recommend to install Lyx as well there. Use the Lyx your distributions deliver.
My experience from the last three years doing so is: it makes teXing easier.