LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can some1 pleease help me with this code?? (https://www.linuxquestions.org/questions/linux-newbie-8/can-some1-pleease-help-me-with-this-code-943315/)

kyle7042 05-04-2012 04:35 PM

Can some1 pleease help me with this code??
 
Ok i have downloaded some software on linux mint. When i open it i get 2 options: catalina_base and setenv.sh when i click on the 2nd option i get the following :
#!/bin/sh

# This script is used to setup the config to run the server / tomcat.

export WORKING_ROOT=`pwd`

export CATALINA_BASE=${WORKING_ROOT}/catalina_base

MEM_SETTINGS="-Xmn64m -Xms256m -Xmx256m -XX:MaxPermSize=96m -XX:ThreadStackSize=128 "
export JAVA_OPTS="-Djava.awt.headless=true -server -XX:+UseConcMarkSweepGC -Dcom.sun.management.jmxremote -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Dlog4j.override.configuration=/tmp/caisi_integrator.log4j.xml "${MEM_SETTINGS}

Im sure somewhere here is the code which i need to enter into the terminal to run/install this software but im not sure exactly which part i need to be entering any help please??
Thanks

suicidaleggroll 05-04-2012 04:41 PM

That is the code. Open a terminal, cd to the right directory, and run "chmod +x setenv.sh; ./setenv.sh". Right now you're just opening the script in a text editor rather than executing it.

It looks like that script just sets up some variables. You might need to run catalina_base after running setenv.sh.

Kustom42 05-04-2012 04:42 PM

Are you trying to install Tomcat from source?

Kustom42 05-04-2012 04:43 PM

Quote:

Originally Posted by suicidaleggroll (Post 4670611)
That is the code. Open a terminal, cd to the right directory, and run "chmod +x setenv.sh; ./setenv.sh". Right now you're just opening the script in a text editor rather than executing it.

You are correct, that is code, but will it accomplish what the poster is looking for? I don't think so. All that is doing to do is set some variables. That is file is sourced to set environment variables for installing Tomcat from source.

kyle7042 05-04-2012 04:54 PM

Thanks all for the quick response. So this isnt to set up what i want to then? I didnt want to install tomcat. I want to implement this software: http://www.oscarcanada.org/caisi here is the options i get from sourceforge: http://sourceforge.net/projects/oscarmcmaster/files/ i already have the "oscar" software but i need to implement caisi which is 5th down on the link i just gave. Not sure if it helps but there are other options in the file i downloaded in the "catalina base" i have the following options: conf, logs, CVS, temp, webapps & work!!

Kustom42 05-04-2012 05:04 PM

I'm not familiar with that software but from what you have said and the contents of that file it looks like it is a tomcat web-app that would be deployed on your server, this would require an existing install of tomcat. I tried to do some quick searching for installation documentation on the software vendors site and found this: http://www.oscarcanada.org/caisi/com...-documentation

No documentation at all, awesome. If the vendor does not supply installation documentation I very, very rarely will use it. It kind of implies(atleast to me) that its not a reputable piece of software.

kyle7042 05-04-2012 05:08 PM

Ok thankyou Kustom42. JUst one more question. Im new to Linux and have no idea where i find my server or any programmes etc which i download. Im used to windows and know how to find things there like get into my c drive look at recent downloads etc. and find their location how do i do this on linux mint please?

Kustom42 05-04-2012 05:10 PM

In Linux everything is a flat file, and without knowing how it was downloaded its impossible to tell you. However, if you know the names or part of the names of the files you are looking for you can use a find statement:

Code:

find / -type f -name "*.txt"
That would find anything on your system that is a regular file(-type f) that ends in a .txt extension.

kyle7042 05-04-2012 05:20 PM

Ok thankyou very much for your help it is appreciated. How easy would it be to access software on my linux pc server (im presuming i have a server since i have linux mint?!?) from my windows laptop? Ive been using teamviewer to do this but it requires me to have both pc's powered up.

Kustom42 05-04-2012 05:58 PM

The definition of a server is the usage of the computer. So that's kind of irrelevant. It sounds like you are just looking for an easy way to install it and access it. With Windows it's pretty much double-click, click next until it says its done. In Linux you have to do all the work that the 'next' wizard does for you.

Think about it like Windows is a Gameboy, throw any game in turn it on and it works but you are limited to what is already predefined and set. In Linux you have an erector set with all the pieces you need to make what you want; being able to put the pieces together correctly to achieve what you are wanting is where a lot people get frustrated and go back to using Windows.

Trying to install a third-party app in Linux where the software vendor provides no documentation is something that can stump even the most tenured of Linux users. My best solution to offer you is to reach out to the software vendor and get an install doc, once we have that info we can help get you through the instal process(if you need help beyond the doc).

To further illustrate my point. I am definately not a chef but I can pull out any Betty Crocker recipe book and follow the steps given. Same situation you are in here, you're not a linux guru(no insult intended, i'm definitely not a Guru either) but you would more than likely be able to get to where you are going if you had the steps.

If it were me I would contact the vendor and ask for documentation, if they can't provide it I would find an alternate software solution that does provide that and fits your needs.

kyle7042 05-04-2012 06:03 PM

Makes things alot clearer thank you very much for your help :)


All times are GMT -5. The time now is 09:09 PM.