[prev in list] [next in list] [prev in thread] [next in thread]
List: opennms-install
Subject: Re: [opennms-install] Error: The schema class com.google.gwt...
From: Daniel Stein <dsteins7 () yahoo ! com>
Date: 2007-08-23 21:33:13
Message-ID: 619207.27374.qm () web52011 ! mail ! re2 ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Jose,
What great timing. I am a contractor brought in to help out the IT team at a local \
company and just finished walking the very road you are trying now to navigate. Since \
I will be leaving this all in the hands of a relatively inexperienced crew I took the \
pains to document the means to replicate a successful Debian (etch)/OpenNMS install. \
I was just completing it when your message popped up.
If you would volunteer to test out my documentation I will make myself readily \
available to lend whatever lessons I may have learned to help you over the difficult \
spots. Note that full credit must be given to the OpenNMS team for %90+ of the \
content as most of the content was culled from their work and stripped and massaged \
to fit the specific needs of a Debian (etch) install.
I'll try and send an attachment but since I don't know if the mailing list will \
allow this through, I have also added it inline. I used the outline method in msword \
so some of the text is rather large and I have not taken the time to reformat.
Your humble servant,
Dan
Install Debian Note: These instructions assume a basic familiarity with linux/unix \
and the vi editor. If you have not worked with linux or vi, the following sources \
should be sufficient to get you started. vi is an antiquated linux/unix editing tool \
which you will use to modify certain text files. You can learn more about vi by going \
to https://engineering.purdue.edu/ECN/Support/KnowledgeBase/Docs/20020202121609 or \
http://www.eng.hawaii.edu/Tutor/vi.html linux \
http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html \
http://www.debian.org/ These are just some of the sites I have found to be helpful. \
There are a lot more good sources available on the web which I will leave to the \
reader to search out.
This assumes a fresh install on a new server. before starting you should have \
completed the following. - Reserve an IP address for the server in IPPlan - \
Reserved address should be cleared with security to be a “slider” ip in order to \
bypass the proxy server. - Determine a node name and have it already added \
to DNS - Have the following information handy - Node IP Address \
__________________________ - Network Mask ___________________________ - \
Gateway IP ______________________________ - DNS \
____________________________________ - Host Name \
_______________________________ - Domain Name __________________________ \
Start base system install entering the required information. When asked “Use a \
Network Mirror?”, select “Yes”. Then select an appropriate mirror site. Any one in \
the US should be ok or you can just go with the default. When asked to choose \
software to install; - use the space bar to select/unselect - \
select “standard system” only. No other items should be selected - hit \
return and go find something to do for a while the system loads. When you return, \
the system should have finished loading, ejected the startup CD, and rebooted to the \
new operating system. If everything has gone well, then you are now ready to begin \
the installation process for OpenNMS. Load support applications Aptitude From This \
point on, all the necessary software packages should be loadable using “aptitude”. \
“aptitude” is a front end to APT (Advanced Packaging Tool) which is a tool for \
managing software packages on linux systems. It automates the retrieval, \
configuration and installation of software packages either from binary files or by \
compiling source code. To use aptitude, simply enter “aptitude” at the command \
prompt. This will load the ascii based user interface. Here is a quick summary of the \
most used commands. / -brings up a window for entering the search term you are \
interested in. Enter the desired search term and press enter. n -takes you to the \
next known package matching your search term. + -selects the highlighted package \
for install. - -selects the highlighted package for install. u -updates the \
Available Package list from the sources. q -quit aptitude. Edit Source File \
Before attempting to load any packages, you will need to edit the source file \
(/etc/apt/sources.list) used by aptitude to find packages From the root user prompt, \
enter vi /etc/apt/sources.list edit the file to read as follows: #
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 NETINST Binary-1 \
20070407-11:25]/ etch contrib main
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 NETINST Binary-1 \
20070407-11:25]/ etch contrib main
deb http://ftp.us.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ etch main
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib
deb http://debian.opennms.org/ unstable main
Load support applications Start aptitude and enter update. This will update the \
package list based upon the changes made in the source.list file. find and select \
the following packages for loading.
- lynx
- sudo
- ssh Once ssh is installed you should be able to log in and complete the remainder \
of the install remotely. NOTE: You may be asked to insert the install cd to load \
some applications. Be sure you REMOVE it when you are finished loading those \
applications so that the system does not boot off of the install cd next time you \
reboot it. Load Java OpenNMS is written mainly in Java and the JDK from Sun, \
version 1.5 or higher, is recommended. If you are running OpenNMS on a 64-bit system, \
be sure to install the 64-bit JDK. Using aptitude, install sun-java5-jdk Following \
successful install of Java, you will need to edit the file /etc/profile and add the \
following two lines
JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun”
export JAVA_HOME Note that if you installed a version of Java other than 1.5, you \
will probably need to modify the JAVA_HOME path to match the link in the /usr/lib/jvm \
directory. load Tomcat5 Tomcat is part of the Jakarta project in Apache. It is the \
Java servlet engine or web server used to serve up the HTML for the OpenNMS browser \
interface. OpenNMS requires version 5.5 or greater. using aptitude, select and \
install:
- tomcat5.5
- tomcat5.5-admin
- tomcat5.5-webapps Following the tomcat install you will need to ensure that the \
correct java alternative is being used at the command prompt, enter:
update-alternatives --config java select:
/usr/lib/jvm/java-1.5.0-sun/jrc/bin/java at the command prompt, enter:
update alternatives --config javac select:
/usr/lib/jvm/java-1.5.0-sun/bin/javac One more step is required to ensure that \
Tomcat has sufficient memory within which to operate. Locate the file catalina.sh \
and add the following line: CATALINA_OPTS=”-Xmx1024m” This will allow Tomcat to \
access up to 1GB of memory assuming that there is sufficient available memory to \
begin with. This number may be adjusted/tuned to the operational limitations of the \
server being employed. Load PostgreSQL OpenNMS uses PostgreSQL as the relational \
database for storing information about network devices, events, notifications and \
outages. Version 7.4 or later is required though the recommended is 8.1 and 8.2 has \
recently become available. Return to aptitude and install the \
following packages:
- postgresql-8.1
- postgresql-doc-8.1
- postgresql-server-dev-8.1
- libpq-dev After PostgreSQL has been installed, there are two configuration files \
that must be modified, postgresql.conf and pg_hba.conf. These files are created the \
first time PostgreSQL is run. PostgreSQL should have started but if it didn’t, you \
will need to start it before continuing. check to see if PostgreSQL has started by \
entering:
/etc/init.d/postgresql-8.1 status If PostgreSQL has not started, this can be \
remedied by entering:
/etc/init.d/postgresql-8.1 start Locate the configuration file postresql.conf. This \
file controls basic operating parameters for PostgreSQL and two of which we will be \
modifying. Find the line that reads “max_connections” and change it to read: \
max_connections = 256 Find the line that reads “shared_buffers and change it to \
read: shared_buffers = 1024 Locate the configuration file pg_jba.conf. This file \
controls which machines and users can access te database on a given machine via \
TCP/IP. Since this is how OpenNMS accesses the database (via localhost) it is \
necessary to modify this file to allow OpenNMS to work. Search the file for the line \
that reads: # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD. Change the line that \
follow to read as below: local all all trust
host all all 127.0.0.1 255.255.255.255 trust
host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust Note: If your \
system does not support IPv6 or you are not running it anywhere on your network, then \
comment out, or do not add, the last line above. Make sure that no other lines are \
uncommented in this file. You will need to stop and restart PostgreSQL after making \
these changes. /etc/init.d/postgresql-8.1 stop /etc/init.d/postgresql-8.1 start \
Install iplike and jicmp OpenNMS makes heavy use of two functions written in C which \
it accesses using the Java Native Interface (JNI). Since the 1.3.6 version of the \
main OpenNMS application is pure Java, jicmp and iplike have been removed from the \
main OpenNMS code and must be loaded separately. using aptitude, select and install \
iplike and jicmp Nothing more special to do here so move on. Install OpenNMS Now \
that you’ve enjoyed the bread and salad, it is finally time for the main dish. So \
back to aptitude again to select and install the following packages.
- opennms
- opennms-doc
- opennms-contrib Once that is done you are still not ready to run OpenNMS just yet. \
There are still a few things left to do. Ensure that the proper permissions are set \
If the permissions are not set correctly tomcat will not have the permissions it \
needs to run correctly will generate various errors as you try to make administrative \
changes to the tool. To prevent this source of error, run the following set of \
commands:
- chmod +x /usr/share/opennms/bin/ *
- chmod +x /usr/share/opennms/contrib/ *
- chmod -x /usr/share/opennms/contrib/ *.README
- chmod -x /usr/share/opennms/contrib/ opennms.mib Configure Java for OpenNMS \
First OpenNMS needs to be configured to use the appropriate Java Runtime Environment \
(JRE). This is done by executing the following command.
- $OPENNMS_HOME/bin/runjava –s Note: “$OPENNMS_HOME” is the base directory for \
OpenNMS. This is likely to be /usr/share/opennms. Run the Installer to setup the \
PostgreSQL database and jicmp. Running install with the –l parameter will look for \
the jicmp libraries in the location specified by the path that follows. The –dis \
parameter will initialize and check the database.
- $OPENNMS_HOME/bin/install –l /usr/lib/jni –dis Run the installer to setup the web \
application This will set up the web application and ensure that the appropriate \
pointers are set to jicmp.
- $OPENNMS_HOME/bin/install –l /usr/lib/jni –y –w \
$CATALINA_HOME/conf/Catalina/localhost Note: $CATALINA_HOME is the base directory \
for the Tomcat installation. This is likely to be /var/lib/tomcat5.5/ Configuring \
OpenNMS At this point you will want to refer to the voluminous documentation \
available on the OpenNMS website as well as the many tips, trick and resolutions \
available on the Opennms-discuss mailing list, to configure, troubleshoot and improve \
the operation of your OpenNMS installation. Making things easier Tomcat, PostgreSQL \
and OpenNMS can be stopped, started and statused by entering:
- /etc/init.d/{opennms | postgresql-8.1 | tomcat5.5} {stop | start | status} To make \
this easier, enter the following line in /etc/profile: alias \
onms='/etc/init.d/opennms' alias tomcat='/etc/init.d/tomcat5.5'
alias postgres='/etc/init.d/postgresql-8.1' This will allow you to enter the short \
alias name instead of the whole path to start stop or status the applications.
mcmlracd <mcmlracd@terra.es> wrote:
Hi!
I’m a person who loves the risk and the strong emotions. That’s the reason
why I’m trying to build opennms over a Debian etch (4.0) :-), but build.sh
gives me an error:
[INFO] [gwt:compile {execution: default}]
[WARNING] Exception in thread "main" java.lang.RuntimeException: The schema
class 'com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema' should have been
registered prior to parsing
I downloaded gwt 1.3.3 from google, untar it in /usr/lib/gwt and add
/usr/lib/gwt to the classpath… The same error.
I create the file build.properties and write the line
“gwt.home=/usr/lib/gwt”… Doesn’t works
I launch build.sh –Dgwt.home=/usr/lib/gwt install… Nothing to do, always get
the same error
Can anybody help me?
Thanks in advance
Jose I. Merino
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-install mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
[Attachment #5 (text/html)]
<div>Hi Jose,</div> <div> </div> <div>What great timing. I am a contractor \
brought in to help out the IT team at a local company and just finished walking the \
very road you are trying now to navigate. Since I will be leaving this all in the \
hands of a relatively inexperienced crew I took the pains to document the means to \
replicate a successful Debian (etch)/OpenNMS install. I was just completing it \
when your message popped up.</div> <div> </div> <div>If you would volunteer to \
test out my documentation I will make myself readily available to lend whatever \
lessons I may have learned to help you over the difficult spots. Note that full \
credit must be given to the OpenNMS team for %90+ of the content as most of the \
content was culled from their work and stripped and massaged to fit the specific \
needs of a Debian (etch) install.</div> <div> </div> <div>I'll try and send an \
attachment but since I don't know if the mailing list will allow this through, I \
have also added it inline. I used the outline method in msword so some of the text is \
rather large and I have not taken the time to reformat.</div> <div> </div> \
<div>Your humble servant,</div> <div>Dan</div> <div> </div> <div> </div> \
<H1 style="MARGIN: 12pt 0in 3pt"><FONT size=5>Install Debian</FONT></H1> <H2 \
style="MARGIN: 12pt 0in 3pt"><EM>Note: These instructions assume a basic familiarity \
with linux/unix and the vi editor. If you have not worked with linux or vi, the \
following sources should be sufficient to get you started.</EM></H2> <H4 \
style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>vi is an antiquated \
linux/unix editing tool which you will use to modify certain text files. You can \
learn more about vi by going to </FONT><A \
href="https://engineering.purdue.edu/ECN/Support/KnowledgeBase/Docs/20020202121609"><FONT \
face="Times New Roman" color=#606420 \
size=5>https://engineering.purdue.edu/ECN/Support/KnowledgeBase/Docs/20020202121609</FONT></A><FONT \
face="Times New Roman" size=5> or </FONT><A \
href="http://www.eng.hawaii.edu/Tutor/vi.html"><FONT face="Times New Roman" \
color=#606420 size=5>http://www.eng.hawaii.edu/Tutor/vi.html</FONT></A></H4> <H4 \
style="MARGIN: 12pt 0in 3pt 0.5in"><FONT face="Times New Roman" size=5>linux \
</FONT><A href="http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html"><FONT \
face="Times New Roman" color=#606420 \
size=5>http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html</FONT></A><BR><A \
href="http://www.debian.org/"><FONT face="Times New Roman" color=#606420 \
size=5>http://www.debian.org/</FONT></A></H4> <H3 style="MARGIN: 12pt 0in 3pt">These \
are just some of the sites I have found to be helpful. There are a lot more good \
sources available on the web which I will leave to the reader to search out.<BR \
style="mso-special-character: line-break"><BR style="mso-special-character: \
line-break"></H3> <H2 style="MARGIN: 12pt 0in 3pt"><EM>This assumes a fresh install \
on a new server.</EM></H2> <H3 style="MARGIN: 12pt 0in 3pt">before starting you \
should have completed the following.</H3> <H3 style="MARGIN: 12pt 0in 3pt 0.5in; \
TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN \
style="FONT-WEIGHT: normal; mso-fareast-font-family: Arial; mso-bidi-font-weight: \
bold"><SPAN style="mso-list: Ignore">-<SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN>Reserve \
an IP address for the server in IPPlan</H3> <H3 style="MARGIN: 12pt 0in 3pt 0.5in; \
TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN \
style="FONT-WEIGHT: normal; mso-fareast-font-family: Arial; mso-bidi-font-weight: \
bold"><SPAN style="mso-list: Ignore">-<SPAN style="FONT: 7pt 'Times New \
Roman'"> \
</SPAN></SPAN></SPAN>Reserved address should be cleared with security to be a \
“slider” ip<SPAN style="mso-spacerun: yes"> </SPAN>in order to bypass the proxy \
server.</H3> <H3 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: \
l0 level1 lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; \
mso-fareast-font-family: Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: \
Ignore">-<SPAN style="FONT: 7pt 'Times New \
Roman'"> \
</SPAN></SPAN></SPAN>Determine a node name and have it already added to DNS</H3> <H3 \
style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; \
tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; mso-fareast-font-family: \
Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: Ignore">-<SPAN style="FONT: \
7pt 'Times New Roman'"> \
</SPAN></SPAN></SPAN>Have the following information handy</H3> <H4 style="MARGIN: \
12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list \
.5in"><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; mso-fareast-font-family: \
Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: Ignore"><FONT \
size=5>-</FONT><SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN><FONT \
face="Times New Roman" size=5>Node IP Address __________________________</FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 \
lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; \
mso-fareast-font-family: Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: \
Ignore"><FONT size=5>-</FONT><SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN><FONT \
face="Times New Roman" size=5>Network Mask ___________________________</FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 \
lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; \
mso-fareast-font-family: Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: \
Ignore"><FONT size=5>-</FONT><SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN><FONT \
face="Times New Roman" size=5>Gateway IP ______________________________</FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 \
lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; \
mso-fareast-font-family: Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: \
Ignore"><FONT size=5>-</FONT><SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN><FONT \
face="Times New Roman" size=5>DNS ____________________________________</FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 \
lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; \
mso-fareast-font-family: Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: \
Ignore"><FONT size=5>-</FONT><SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN><FONT \
face="Times New Roman" size=5>Host Name _______________________________</FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 \
lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; \
mso-fareast-font-family: Arial; mso-bidi-font-weight: bold"><SPAN style="mso-list: \
Ignore"><FONT size=5>-</FONT><SPAN style="FONT: 7pt 'Times New \
Roman'"> </SPAN></SPAN></SPAN><FONT \
face="Times New Roman" size=5>Domain Name<SPAN style="mso-spacerun: yes"> \
</SPAN>__________________________</FONT></H4> <H3 style="MARGIN: 12pt 0in 3pt \
0.25in">Start base system install entering the required information.</H3> <H3 \
style="MARGIN: 12pt 0in 3pt 0.25in">When asked “Use a Network Mirror?”, select “Yes”. \
Then select an appropriate mirror site. Any one in the <?xml:namespace prefix = st1 \
ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:country-region \
w:st="on"><st1:place w:st="on">US</st1:place></st1:country-region> should be ok or \
you can just go with the default.</H3> <H3 style="MARGIN: 12pt 0in 3pt 0.25in">When \
asked to choose software to install;</H3> <H4 style="MARGIN: 12pt 0in 3pt 0.5in; \
TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN \
style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; mso-fareast-font-family: Arial; \
mso-bidi-font-weight: bold"><SPAN style="mso-list: Ignore"><FONT size=5>-</FONT><SPAN \
style="FONT: 7pt 'Times New Roman'"> \
</SPAN></SPAN></SPAN><FONT face="Times New Roman" size=5>use the space bar to \
select/unselect</FONT></H4> <H4 style="MARGIN: 12pt 0in 3pt 0.5in; TEXT-INDENT: \
-0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN style="FONT-WEIGHT: \
normal; FONT-FAMILY: Arial; mso-fareast-font-family: Arial; mso-bidi-font-weight: \
bold"><SPAN style="mso-list: Ignore"><FONT size=5>-</FONT><SPAN style="FONT: 7pt \
'Times New Roman'"> \
</SPAN></SPAN></SPAN><FONT face="Times New Roman" size=5>select “standard system” \
only. No other items should be selected</FONT></H4> <H4 style="MARGIN: 12pt 0in 3pt \
0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"><SPAN \
style="FONT-WEIGHT: normal; FONT-FAMILY: Arial; mso-fareast-font-family: Arial; \
mso-bidi-font-weight: bold"><SPAN style="mso-list: Ignore"><FONT size=5>-</FONT><SPAN \
style="FONT: 7pt 'Times New Roman'"> \
</SPAN></SPAN></SPAN><FONT face="Times New Roman" size=5>hit return and go find \
something to do for a while the system loads.</FONT></H4> <H3 style="MARGIN: 12pt \
0in 3pt 0.25in">When you return, the system should have finished loading, ejected the \
startup CD, and rebooted to the new operating system. If everything has gone well, \
then you are now ready to begin the installation process for OpenNMS.</H3> <H1 \
style="MARGIN: 12pt 0in 3pt"><FONT size=5>Load support applications</FONT></H1> <H2 \
style="MARGIN: 12pt 0in 3pt 0.25in"><EM>Aptitude</EM></H2> <H3 style="MARGIN: 12pt \
0in 3pt">From This point on, all the necessary software packages should be loadable \
using “aptitude”.<SPAN style="mso-spacerun: yes"> </SPAN>“aptitude” is a front \
end to APT (Advanced Packaging Tool) which is a tool for managing software packages \
on linux systems. It automates the retrieval, configuration and installation of \
software packages either from binary files or by compiling source code.</H3> <H3 \
style="MARGIN: 12pt 0in 3pt">To use aptitude, simply enter “aptitude” at the command \
prompt. This will load the ascii based user interface. Here is a quick summary of \
the most used commands.</H3> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New \
Roman" size=5>/<SPAN style="mso-spacerun: yes"> </SPAN>-brings up a window for \
entering the search term you are interested in. Enter the desired search term and \
press enter. </FONT></H4> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New \
Roman" size=5>n<SPAN style="mso-spacerun: yes"> </SPAN>-takes you to the next \
known package matching your search term.</FONT></H4> <H4 style="MARGIN: 12pt 0in \
3pt"><FONT face="Times New Roman" size=5>+<SPAN style="mso-spacerun: yes"> \
</SPAN>-selects the highlighted package for install. </FONT></H4> <H4 style="MARGIN: \
12pt 0in 3pt"><FONT face="Times New Roman" size=5>-<SPAN style="mso-spacerun: \
yes"> </SPAN>-selects the highlighted package for install. </FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>u<SPAN \
style="mso-spacerun: yes"> </SPAN>-updates the Available Package list from the \
sources.</FONT></H4> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=5>q<SPAN style="mso-spacerun: yes"> </SPAN>-quit aptitude.</FONT></H4> \
<H3 style="MARGIN: 12pt 0in 3pt">Edit Source File</H3> <H4 style="MARGIN: 12pt 0in \
3pt"><FONT face="Times New Roman" size=5>Before attempting to load any packages, you \
will need to edit the source file (/etc/apt/sources.list) used by aptitude to find \
packages</FONT></H4> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=5>From the root user prompt, enter<BR>vi /etc/apt/sources.list</FONT></H4> <H4 \
style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>edit the file to \
read as follows:</FONT></H4> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT \
face="Times New Roman" size=3># </FONT></div> <div class=MsoNormal style="MARGIN: \
0in 0in 0pt"><FONT face="Times New Roman" size=3># deb cdrom:[Debian GNU/Linux 4.0 r0 \
_Etch_ - Official amd64 NETINST Binary-1 20070407-11:25]/ etch contrib \
main</FONT></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace \
prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times \
New Roman" size=3> </FONT></o:p></div> <div class=MsoNormal style="MARGIN: 0in \
0in 0pt"><FONT face="Times New Roman" size=3>deb cdrom:[Debian GNU/Linux 4.0 r0 \
_Etch_ - Official amd64 NETINST Binary-1 20070407-11:25]/ etch contrib \
main</FONT></div> <div class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT \
face="Times New Roman" size=3> </FONT></o:p></div> <div class=MsoNormal \
style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>deb \
http://ftp.us.debian.org/debian/ etch main contrib non-free</FONT></div> <div \
class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" \
size=3>deb-src http://ftp.us.debian.org/debian/ etch main</FONT></div> <div \
class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" \
size=3> </FONT></o:p></div> <div class=MsoNormal style="MARGIN: 0in 0in \
0pt"><FONT face="Times New Roman" size=3>deb http://security.debian.org/ etch/updates \
main contrib non-free</FONT></div> <div class=MsoNormal style="MARGIN: 0in 0in \
0pt"><FONT face="Times New Roman" size=3>deb-src http://security.debian.org/ \
etch/updates main contrib</FONT></div> <div class=MsoNormal style="MARGIN: 0in 0in \
0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></div> <div \
class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>deb \
http://debian.opennms.org/ unstable main</FONT></div> <H2 style="MARGIN: 12pt 0in \
3pt"><EM>Load support applications</EM></H2> <H3 style="MARGIN: 12pt 0in 3pt">Start \
aptitude and enter update. This will update the package list based upon the changes \
made in the source.list file.</H3> <H3 style="MARGIN: 12pt 0in 3pt">find and select \
the following packages for loading.<BR>- lynx<BR>- sudo<BR>- ssh</H3> <H3 \
style="MARGIN: 12pt 0in 3pt">Once ssh is installed you should be able to log in and \
complete the remainder of the install remotely.<SPAN style="mso-spacerun: yes"> \
</SPAN></H3> <H3 style="MARGIN: 12pt 0in 3pt">NOTE:<SPAN style="mso-spacerun: \
yes"> </SPAN>You may be asked to insert the install cd to load some \
applications. Be sure you REMOVE it when you are finished loading those applications \
so that the system does not boot off of the install cd next time you reboot it.</H3> \
<H2 style="MARGIN: 12pt 0in 3pt"><EM>Load Java</EM></H2> <H3 style="MARGIN: 12pt 0in \
3pt">OpenNMS is written mainly in Java and the JDK from Sun, version 1.5 or higher, \
is recommended. If you are running OpenNMS on a 64-bit system, be sure to install the \
64-bit JDK.</H3> <H3 style="MARGIN: 12pt 0in 3pt">Using aptitude, install \
sun-java5-jdk</H3> <H3 style="MARGIN: 12pt 0in 3pt">Following successful install of \
Java, you will need to edit the file /etc/profile and add the following two \
lines<BR><BR>JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun”<BR>export JAVA_HOME</H3> <H3 \
style="MARGIN: 12pt 0in 3pt">Note that if you installed a version of Java other than \
1.5, you will probably need to modify the JAVA_HOME path to match the link in the \
/usr/lib/jvm directory.</H3> <H2 style="MARGIN: 12pt 0in 3pt"><EM>load \
Tomcat5</EM></H2> <H3 style="MARGIN: 12pt 0in 3pt">Tomcat is part of the <st1:City \
w:st="on"><st1:place w:st="on">Jakarta</st1:place></st1:City> project in Apache. It \
0in 3pt">Following the tomcat install you will need to ensure that the correct java \
alternative is being used</H3> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times \
New Roman" size=5>at the command prompt, enter:<BR><BR>update-alternatives --config \
java</FONT></H4> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=5>select:<BR>/usr/lib/jvm/java-1.5.0-sun/jrc/bin/java</FONT></H4> <H4 \
style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>at the command \
prompt, enter:<BR><BR>update alternatives --config javac</FONT></H4> <H4 \
style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=5>select:<BR>/usr/lib/jvm/java-1.5.0-sun/bin/javac</FONT></H4> <H3 \
style="MARGIN: 12pt 0in 3pt">One more step is required to ensure that Tomcat has \
sufficient memory within which to operate.</H3> <H4 style="MARGIN: 12pt 0in \
3pt"><FONT face="Times New Roman" size=5>Locate the file catalina.sh and add the \
following line:<BR>CATALINA_OPTS=”-Xmx1024m”</FONT></H4> <H4 style="MARGIN: 12pt 0in \
3pt"><FONT face="Times New Roman" size=5>This will allow Tomcat to access up to 1GB \
of memory assuming that there is sufficient available memory to begin with. This \
number may be adjusted/tuned to the operational limitations of the server being \
employed.</FONT></H4> <H2 style="MARGIN: 12pt 0in 3pt"><EM>Load PostgreSQL</EM></H2> \
<H3 style="MARGIN: 12pt 0in 3pt"><SPAN style="mso-spacerun: yes"> </SPAN>OpenNMS \
uses PostgreSQL as the relational database for storing information about network \
devices, events, notifications and outages. Version 7.4 or later is required though \
the recommended is 8.1 and 8.2 has recently become available.</H3> <H3 \
style="MARGIN: 12pt 0in 3pt">Return to aptitude and install the following \
packages:<BR>- postgresql-8.1<BR>- postgresql-doc-8.1<BR>- \
postgresql-server-dev-8.1<BR>- libpq-dev</H3> <H3 style="MARGIN: 12pt 0in 3pt">After \
PostgreSQL has been installed, there are two configuration files that must be \
modified, postgresql.conf and pg_hba.conf. These files are created the first time \
PostgreSQL is run. PostgreSQL should have started but if it didn’t, you will need to \
start it before continuing.</H3> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times \
New Roman" size=5>check to see if PostgreSQL has started by \
entering:<BR>/etc/init.d/postgresql-8.1 status</FONT></H4> <H4 style="MARGIN: 12pt \
0in 3pt"><FONT face="Times New Roman" size=5>If PostgreSQL has not started, this can \
be remedied by entering:<BR>/etc/init.d/postgresql-8.1 start</FONT></H4> <H4 \
style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>Locate the \
configuration file postresql.conf. This file controls basic operating parameters for \
PostgreSQL and two of which we will be modifying.</FONT></H4> <H5 style="MARGIN: \
12pt 0in 3pt"><FONT face="Times New Roman" size=4><EM>Find the line that reads \
“max_connections” and change it to read:<BR><SPAN style="mso-spacerun: \
yes"> </SPAN>max_connections = 256</EM></FONT></H5> <H5 style="MARGIN: 12pt \
0in 3pt"><EM><FONT face="Times New Roman" size=4>Find the line that reads \
“shared_buffers and change it to read:<BR>shared_buffers = 1024</FONT></EM></H5> <H4 \
style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>Locate the \
configuration file pg_jba.conf. This file controls which machines and users can \
access te database on a given machine via TCP/IP. Since this is how OpenNMS accesses \
the database (via localhost) it is necessary to modify this file to allow OpenNMS to \
work.</FONT></H4> <H5 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=4><EM>Search the file for the line that reads:<BR># TYPE DATABASE USER \
IP-ADDRESS IP-MASK METHOD.</EM></FONT></H5> <H5 style="MARGIN: 12pt 0in 3pt"><FONT \
face="Times New Roman" size=4><EM>Change the line that follow to read as \
below:<BR>local<SPAN style="mso-spacerun: yes"> </SPAN>all<SPAN \
style="mso-spacerun: yes"> </SPAN>all<SPAN style="mso-spacerun: yes"> \
</SPAN>trust<BR>host<SPAN style="mso-spacerun: yes"> </SPAN>all<SPAN \
style="mso-spacerun: yes"> </SPAN>all<SPAN style="mso-spacerun: yes"> \
</SPAN>127.0.0.1<SPAN style="mso-spacerun: yes"> \
</SPAN>255.255.255.255<SPAN style="mso-spacerun: yes"> \
</SPAN>trust<BR>host<SPAN style="mso-spacerun: yes"> </SPAN>all<SPAN \
style="mso-spacerun: yes"> </SPAN>all<SPAN style="mso-spacerun: yes"> \
</SPAN>::1<SPAN style="mso-spacerun: yes"> \
</SPAN>ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff<SPAN style="mso-spacerun: yes"> \
</SPAN>trust</EM></FONT></H5> <H5 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New \
Roman" size=4><EM>Note: If your system does not support IPv6 or you are not running \
it anywhere on your network, then comment out, or do not add, the last line \
above.</EM></FONT></H5> <H5 style="MARGIN: 12pt 0in 3pt"><EM><FONT face="Times New \
Roman" size=4>Make sure that no other lines are uncommented in this \
file.</FONT></EM></H5> <H3 style="MARGIN: 12pt 0in 3pt">You will need to stop and \
restart PostgreSQL after making these changes.</H3> <H4 style="MARGIN: 12pt 0in \
3pt"><FONT face="Times New Roman" size=5>/etc/init.d/postgresql-8.1 stop</FONT></H4> \
<H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=5>/etc/init.d/postgresql-8.1 start</FONT></H4> <H2 style="MARGIN: 12pt 0in \
3pt"><EM>Install iplike and jicmp</EM></H2> <H3 style="MARGIN: 12pt 0in 3pt">OpenNMS \
makes heavy use of two functions written in C which it accesses using the Java Native \
Interface (JNI). Since the 1.3.6 version of the main OpenNMS application is pure \
Java, jicmp and iplike have been removed from the main OpenNMS code and must be \
loaded separately.</H3> <H3 style="MARGIN: 12pt 0in 3pt">using aptitude, select and \
install iplike and jicmp</H3> <H3 style="MARGIN: 12pt 0in 3pt">Nothing more special \
to do here so move on.</H3> <H2 style="MARGIN: 12pt 0in 3pt"><EM>Install \
OpenNMS</EM></H2> <H3 style="MARGIN: 12pt 0in 3pt">Now that you’ve enjoyed the bread \
and salad, it is finally time for the main dish. So back to aptitude again to select \
and install the following packages.<BR>- opennms<BR>- opennms-doc<BR>- \
opennms-contrib</H3> <H3 style="MARGIN: 12pt 0in 3pt">Once that is done you are \
still not ready to run OpenNMS just yet. There are still a few things left to \
do.</H3> <H3 style="MARGIN: 12pt 0in 3pt">Ensure that the proper permissions are set \
</H3> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" size=5>If the \
permissions are not set correctly tomcat will not have the permissions it needs to \
run correctly will generate various errors as you try to make administrative changes \
to the tool. To prevent this source of error, run the following set of \
commands:<BR>-<SPAN style="mso-spacerun: yes"> </SPAN>chmod +x \
/usr/share/opennms/bin/ *<BR>-<SPAN style="mso-spacerun: yes"> </SPAN>chmod +x \
/usr/share/opennms/contrib/ *<BR>-<SPAN style="mso-spacerun: yes"> \
</SPAN>chmod -x /usr/share/opennms/contrib/ *.README<BR>-<SPAN style="mso-spacerun: \
yes"> </SPAN>chmod -x /usr/share/opennms/contrib/ opennms.mib</FONT></H4> <H3 \
style="MARGIN: 12pt 0in 3pt">Configure Java for OpenNMS</H3> <H4 style="MARGIN: 12pt \
0in 3pt"><FONT face="Times New Roman" size=5>First OpenNMS needs to be configured to \
use the appropriate Java Runtime Environment (JRE). This is done by executing the \
following command.<BR>- $OPENNMS_HOME/bin/runjava –s</FONT></H4> <H4 style="MARGIN: \
12pt 0in 3pt"><FONT face="Times New Roman" size=5>Note: “$OPENNMS_HOME” is the base \
directory for OpenNMS. This is likely to be /usr/share/opennms.</FONT></H4> <H3 \
style="MARGIN: 12pt 0in 3pt">Run the Installer to setup the PostgreSQL database and \
jicmp.</H3> <H4 style="MARGIN: 12pt 0in 3pt"><FONT face="Times New Roman" \
size=5>Running install with the –l parameter will look for the jicmp libraries in the \
location specified by the path that follows.<SPAN style="mso-spacerun: yes"> \
</SPAN>The –dis parameter will initialize and check the database.<BR>- \
$OPENNMS_HOME/bin/install –l /usr/lib/jni –dis</FONT></H4> <H3 style="MARGIN: 12pt \
0in 3pt">Run the installer to setup the web application</H3> <H4 style="MARGIN: 12pt \
0in 3pt"><FONT face="Times New Roman" size=5>This will set up the web application and \
ensure that the appropriate pointers are set to jicmp.<BR>-<SPAN style="mso-spacerun: \
yes"> </SPAN>$OPENNMS_HOME/bin/install –l /usr/lib/jni –y –w \
$CATALINA_HOME/conf/Catalina/localhost</FONT></H4> <H4 style="MARGIN: 12pt 0in \
3pt"><FONT face="Times New Roman" size=5>Note: $CATALINA_HOME is the base directory \
for the Tomcat installation. This is likely to be /var/lib/tomcat5.5/</FONT></H4> \
<H2 style="MARGIN: 12pt 0in 3pt"><EM>Configuring OpenNMS</EM></H2> <H3 \
style="MARGIN: 12pt 0in 3pt">At this point you will want to refer to the voluminous \
documentation available on the OpenNMS website as well as the many tips, trick and \
resolutions available on the Opennms-discuss mailing list, to configure, troubleshoot \
and improve the operation of your OpenNMS installation.</H3> <H2 style="MARGIN: 12pt \
0in 3pt"><EM>Making things easier</EM></H2> <H3 style="MARGIN: 12pt 0in 3pt">Tomcat, \
PostgreSQL and OpenNMS can be stopped, started and statused by entering:<BR>- \
/etc/init.d/{opennms | postgresql-8.1 | tomcat5.5} {stop | start | status}</H3> <H3 \
style="MARGIN: 12pt 0in 3pt">To make this easier, enter the following line in \
/etc/profile:<BR>alias onms='/etc/init.d/opennms'<BR>alias \
tomcat='/etc/init.d/tomcat5.5'<BR>alias postgres='/etc/init.d/postgresql-8.1'</H3> \
<H3 style="MARGIN: 12pt 0in 3pt">This will allow you to enter the short alias name \
instead of the whole path to start stop or status the applications.</H3> \
<div><BR><BR><B><I>mcmlracd <mcmlracd@terra.es></I></B> wrote:</div> \
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: \
#1010ff 2px solid">Hi!<BR><BR>I’m a person who loves the risk and the strong \
emotions. That’s the reason<BR>why I’m trying to build opennms over a Debian etch \
(4.0) :-), but build.sh<BR>gives me an error:<BR><BR>[INFO] [gwt:compile {execution: \
default}]<BR>[WARNING] Exception in thread "main" java.lang.RuntimeException: The \
schema<BR>class 'com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema' should have \
been<BR>registered prior to parsing<BR><BR>I downloaded gwt 1.3.3 from google, untar \
it in /usr/lib/gwt and add<BR>/usr/lib/gwt to the classpath… The same error.<BR><BR>I \
create the file build.properties and write the line<BR>“gwt.home=/usr/lib/gwt”… \
Doesn’t works<BR><BR>I launch build.sh –Dgwt.home=/usr/lib/gwt install… Nothing to \
do, always get<BR>the same error<BR><BR>Can anybody help me?<BR><BR>Thanks in \
advance<BR>Jose I. Merino<BR><BR><BR>-------------------------------------------------------------------------<BR>This \
SF.net email is sponsored by: Splunk Inc.<BR>Still grepping through log files to \
find problems? Stop.<BR>Now Search log events and configuration files using AJAX and \
a browser.<BR>Download your FREE copy of Splunk now >> \
http://get.splunk.com/<BR>_______________________________________________<BR>Please \
read the OpenNMS Mailing List \
FAQ:<BR>http://www.opennms.org/index.php/Mailing_List_FAQ<BR><BR>opennms-install \
mailing list<BR><BR>To *unsubscribe* or change your subscription options, see the \
bottom of this page:<BR>https://lists.sourceforge.net/lists/listinfo/opennms-install<BR></BLOCKQUOTE><BR><p> 
<hr size=1>Boardwalk for $500? In 2007? Ha! <br><a \
href="http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow">Play \
Monopoly Here and Now</a> (it's updated for today's economy) at Yahoo! Games.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-install mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic