[GeoNetwork-users] installing GN from the command line

Hi Puneet

A simple solution that works for me is to start ssh with X11 forwarding
enabled and then run the install in the normal way, i.e.

ssh -X user@anonymised.com

Then from within the ssh session do:

java -jar geonetwork-install-2.2.0-0.jar

The GUI install will then work as normal.

For this to work, you need X11 running on the remote server and have X11
forwarding enabled on the remote server.

Cheers
Brian

email message attachment

> -------- Forwarded Message --------
> From: P Kishor <punk.kish@anonymised.com>
> Reply-To: punkish@anonymised.com
> To: geonetwork-users@lists.sourceforge.net
> Subject: [GeoNetwork-users] installing GN from the command line
> Date: Wed, 2 Apr 2008 00:40:31 -0500
>
> 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>
>
>

-------------------------------------------------------------------------------------

Brian Bishop
Coordinator Ocean Information Systems
Ocean and Islands Programme

SOPAC PACIFIC ISLANDS APPLIED GEOSCIENCE COMMISSION

Postal Address: Private Mail Bag, GPO, Suva, Fiji Islands
Street Address: 241 Mead Road, Suva, Fiji Islands
Tel: +679 338 1377
Fax: +679 337 0040
E-mail: brian@anonymised.com
Web site: http://geonetwork.sopac.org

-------------------------------------------------------------------------------------

Hi all,
Today I changed the installer. You can now choose to install sample data in the same way you can select to install GeoServer or the CSW client. This also prevents the popup and fixes the broken command line installation. I'll commit the final code in minutes and it will be part of the 2.2.0 release.
Ciao,
Jeroen

On Apr 2, 2008, at 10:58 PM, Brian wrote:

Hi Puneet

A simple solution that works for me is to start ssh with X11 forwarding
enabled and then run the install in the normal way, i.e.

ssh -X user@anonymised.com

Then from within the ssh session do:

java -jar geonetwork-install-2.2.0-0.jar

The GUI install will then work as normal.

For this to work, you need X11 running on the remote server and have X11
forwarding enabled on the remote server.

Cheers
Brian

email message attachment

-------- Forwarded Message --------
From: P Kishor <punk.kish@anonymised.com>
Reply-To: punkish@anonymised.com
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] installing GN from the command line
Date: Wed, 2 Apr 2008 00:40:31 -0500

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>

-------------------------------------------------------------------------------------

Brian Bishop
Coordinator Ocean Information Systems
Ocean and Islands Programme

SOPAC PACIFIC ISLANDS APPLIED GEOSCIENCE COMMISSION

Postal Address: Private Mail Bag, GPO, Suva, Fiji Islands
Street Address: 241 Mead Road, Suva, Fiji Islands
Tel: +679 338 1377
Fax: +679 337 0040
E-mail: brian@anonymised.com
Web site: http://geonetwork.sopac.org

-------------------------------------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

On 4/2/08, Brian <brian@anonymised.com> wrote:

Hi Puneet

A simple solution that works for me is to start ssh with X11 forwarding
enabled and then run the install in the normal way, i.e.

ssh -X user@anonymised.com

Then from within the ssh session do:

  java -jar geonetwork-install-2.2.0-0.jar

The GUI install will then work as normal.

For this to work, you need X11 running on the remote server and have X11
forwarding enabled on the remote server.

ai ai aieeeee. Too complicated. :wink:

Ok, here is what I did (and in describing that, I am going to describe
that it seems at least for now I have solved all my GN woes... for now
is the operative clause here).

After having given up trying to figure out what was going on with that
particular install, I decided to start afresh. I downloaded GN 2.2.0
RC2 on my laptop (Macbook Pro with Leopard) and installed it under
/usr/local/geonetwork as sudo (everything owned by root). I started
the darn application and make sure it was working. (at that time I
email this specific query on trying to figure out how to do the same
install remotely as it was waaaaaay late at night to step out of the
house and go back to the University).

So, I did something very low-tech. On a whim, I tar/gzipped my entire
/usr/local/geonetwork directory, and scp-ed it to the server (all 72
MB of it). Back at the server (via ssh command-line, no X nothing),
trashed the entire /usr/local/geonetwork directory on the server, the
one that had been a pain in the behind for me.

Once my .tgz archive transferred completely, I untarred it on the
server so I had basically the same install on the server that I had
back on my Macbook Pro. The server is a RHEL ES3 machine.

Well, lo and behold. I started jetty, and it all works. Everything
works. The db works, the links work, the examples come up. I can
actually now proceed with actually doing something useful with GN (or
hope to).

So, many thanks to everyone who pitched in -- you Brian, Grant
Mckenzie, Jeroen, Tanya Haddad and anyone else. Much appreciated.

I am taking baby-steps right now. Getting jetty/McKoi combo working
and then spending some time actually evaluating/testing GN instead of
just wasting time trying to install it. At a later date I will move my
GN data to PostGres, but still with jetty. And then, in the final
move, migrate to Tomcat. Hopefully by then GN will be on version 5 or
something and everything will just be as easy an iPhone app.

Puneet.

>
> > -------- Forwarded Message --------
> > From: P Kishor <punk.kish@anonymised.com>
> > Reply-To: punkish@anonymised.com
> > To: geonetwork-users@lists.sourceforge.net
> > Subject: [GeoNetwork-users] installing GN from the command line
> > Date: Wed, 2 Apr 2008 00:40:31 -0500
> >
> > 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>
> >
> >

-------------------------------------------------------------------------------------

Brian Bishop
Coordinator Ocean Information Systems
Ocean and Islands Programme

SOPAC PACIFIC ISLANDS APPLIED GEOSCIENCE COMMISSION

Postal Address: Private Mail Bag, GPO, Suva, Fiji Islands
Street Address: 241 Mead Road, Suva, Fiji Islands
Tel: +679 338 1377
Fax: +679 337 0040
E-mail: brian@anonymised.com
Web site: http://geonetwork.sopac.org

-------------------------------------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Puneet Kishor http://punkish.eidesis.org/
Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/
Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/