<< | Page list | >>
In this wiki page, I will deal with version control installation and usage on MS Windows and Linux (Fedora, Ubuntu and Centos). I will also deal with using a cloud storage with version control (dropbox, BOX, OneDrive,Ö..., etc.)
It is assumed that you have a successful installation of LyX and Latex (Tex Live or MiKTeX). In the following your LyX installation is assumed to be in C:\Program Files (x86)\LyX 2.2 (if you have windows x86 then yours will be C:\Program Files \LyX 2.2, where 2.2 is your LyX version. You may have another version number, please note that for the following). To install RCS on MS Windows (for all versions) do the following:
This ends up setting up RCS on windows. Again, to use version control on Windows you have to open LyX from that Desktop icon and to open your documents from that shortcut. If you donít, you wonít be to use version control on your documents. To make sure that your installation is correct, open LyX from the desktop shortcut, create a sample file, save it and then go to file/version control/check in. Write whatever message you want. If the file gets checked in correctly. Then you followed the steps correctly, if not, go back and check all steps
open a terminal and type the following:
open a terminal and type the following
Open your Lyx and reconfigure your it. This ends up installation on Linux and you can use RCS on Linux
Letís assume this situation: you have to identical LyX installations with RCS on two different PCs, one at work and one at home. And you saved all your LyX files on your Box, dropbox or OneDrive. You want to be able to continue working at home after you leave your saved document at work. This can be done but not in a perfect way. What I mean is that you wonít be able to just have a version controlled document on one pc and use the same file on the other pc. What you have to do is check all changes on your work pc before leaving. When you go back home you have to check out the document and continue working. Note that wonít be able to keep the same history of version control on the file at work unless you do the check in/check out as I just described. If you save you document at work without checking them, then you lose all of these changes since you will have to check out the document at home to continue version control. This is an apparent bug in RCS and sadly it is the best thing available on Windows since LyX doesnít yet fully support git.
(note: whoever is writting this I invite you to development mailing list. I do not exactly understand what your issue with RCS is, but we might be able to fix it. Pavel)
If you want to use git, then it is straight forward. Just install git and create a repo in the folder of the LyX document. LyX will then will detect that git repo and you will be able to check in and check out the document. You even can use your cloud storage with git without having to check in the last change in you work PC.