Based on a tutorial from @inspectorgadget found here.
Download the JACoW class from here.
Find the LaTeX directory: go to LyX > Tools > TeX Information > LaTeX Classes > Show path. For me it was ~/.lyx/texlive/texmf-dist/tex/latex/ Once you have found the folder path, go to it and add to it a new directory named lyx in the folder by doing
sudo mkdir lyx
Then copy the class file in the newly created directory:
sudo cp ~/jacow.cls ~/.lyx/texlive/texmf-dist/tex/latex
Make a new .layout file with the same name of the class file i.e.
sudo gedit jacow.layout
Copy the following text in the newly created file and save it:
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[jacow]{article (jacow)}
# Input general definitions
Input stdclass.inc
#####Step 3:
Copy the jacow.layout file into your package content. For me it was ~/.lyx/layouts/ Copy the jacow.layout file in it:
sudo cp jacow.layout ~/.lyx/layouts
Reconfigure LaTeX by command prompting
sudo texhash
Open LyX, and then go to Tools > Reconfigure. Once the reconfiguration is over, you will be told to restart LyX for the new document classes to be available. Restart Lyx.
In LyX, go to Document > Settings > Document Class > article(jacow)
Start writing happily your article in JACow template with LyX!
Thanks for your tutorial. It saved my day.