Using LyX and nuthesis Class Files in Linux

The following instructions worked for me (Tom Shores), using Fedora 13 on my laptop, along with LyX 1.6 installed for all users.  These instructions will make the class file available for all users, so you must have root privileges. I haven't tried an individual user install of the class files, but it should be possible though you may have to change a prefix in the names of standard folders below.  If you have other versions of linux, some modifications may be needed, particularly in the prefix of names of standard directories below.

First, you should download and install the latest versions of LyX.  The simplest approach would be, in a command window, after you've su'd to root: yum install lyx (or yum update lyx, if you already have it installed.)

Once LyX is successfully installed on your system do the following:

0. Obtain a copy of the zip file NUThesis.zip and unzip it (which you have presumably done, since you are reading the instructions therein.)

1. Copy the file NUThesis/nuthesis.layouts into the folder /usr/share/lyx/layouts.

2. Copy the file NUThesis/NUThesisTemplate.lyx into the folder /usr/share/lyx/templates.

3. Copy the folder NUThesis/nuthesis into the folder /usr/share/texmf/tex/latex.

4. Open a terminal window and run the command 'texhash'.

5. In the terminal window, run the command 'lyx &'.  This will start up LyX and will display useful output in the terminal window.

6. Click on the LyX window, then click Tools > Reconfigure.  You should get a message saying that you LyX has been reconfigured and you need to quit LyX for these settings to take effect.  If the reconfiguration has been successful, when you search the terminal window, you should find a line that says

+checking for document class nuthesis [nuthesis]... yes

If it says 'no', then something's wrong and you need to recheck your steps.  If that fails, you'll need a tetex-pert, since that's probably where the hangup is.

7. Quit and restart LyX.  Now you should be able to use the document class in LyX as usual: Either create a new document of this class by clicking 
File > New from Template > NUThesisTemplate,  then save this file in your home directory with an appropriate name, or your may attempt to convert an existing document to this by loading up the document in LyX and then clicking
Settings > Document Class > Document Class, then select 'book (NU Thesis)' from the drop down Document class Menu.
