[GeoNetwork-users] installing GN from the command line

Hi all,

This is a very basic question by a total Java n00b here, so please be
kind. I want to install GN on a remote server via ssh (that is, only
command line, no GUI installer). Of course, I can't do

java -jar geonetwork-install-2.2.0-RC2.jar in the terminal as that
will fire up the GUI on the remote server, but I noticed that on my
personal machine the regular, GUI installer asked me if I wanted to
create an installer script. I said yes and gave it a name
"myinstallscript". I am assuming command line installations have
something to do with this script. If yes (or if no), please guide me.
Fwiw, I want to install GN on the remote server also at the same
location, that is, under /usr/local/geonetwork

myinstallscript looks like so

<AutomatedInstallation langpack="eng">
    <com.izforge.izpack.panels.HelloPanel/>
    <com.izforge.izpack.panels.HTMLLicencePanel/>
    <com.izforge.izpack.panels.TargetPanel>
        <installpath>/usr/local/geonetwork</installpath>
    </com.izforge.izpack.panels.TargetPanel>
    <com.izforge.izpack.panels.PacksPanel>
        <selected>
            <pack index="0"/>
            <pack index="1"/>
            <pack index="2"/>
        </selected>
    </com.izforge.izpack.panels.PacksPanel>
    <com.izforge.izpack.panels.InstallPanel/>
    <com.izforge.izpack.panels.ShortcutPanel/>
    <com.izforge.izpack.panels.HTMLInfoPanel/>
    <com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>

--
Puneet Kishor