Linux-Install

From SynchroEdit

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:24, 26 May 2006 (edit)
Epic (Talk | contribs)

← Previous diff
Current revision (14:23, 24 January 2007) (edit)
Epic (Talk | contribs)
(provisional.. 2bcontinued)
 
Line 1: Line 1:
 +The SynchroEdit server is licensed under the MPL and the LGPL. For more information
 + see doc/LICENSE.*.
This should once become a HOWTO to help installation under GNU/Linux. This should once become a HOWTO to help installation under GNU/Linux.
I took some text from the INSTALL files - hope you don't mind I took some text from the INSTALL files - hope you don't mind
-* wget http://synchroedit.com/pub/synchroedit-0.3-bundle-latest-tar.bz2+* Prepare:
 + mkdir synchroedit
 + cd synchroedit/
 + wget http://synchroedit.com/pub/se-0.5-bundle.tar.bz2
 + tar -xvjf se-0.5-bundle.tar.bz2
 + 
 +* Get JAVA. SynchroEdit compiles under Sun Java 5 JDK, and (at the point of writing) no other c
 +ompiler. Java has been released under the (L?)GPL by sun recently, so there is java packages available from ubuntu edgy / debian etch onwards.
 + apt-get install sun-java5-jdk
 + 
 +If a prepackaged version is not available to you, you must download JDK from http:/
 +/java.sun.com/ if it
 +is not installed on your system already.
 + 
 +Once you've ensured that you have the correct Java compiler installed, do
 + 
 + ./configure
 + 
 +It will print out which compiler ("javac") it detects. If invalid, you may need to
 +make sure that
 +/usr/bin/javac points to the specific compiler. Alternatively, you can do
 + 
 + ./configure --javahome=LOCATION
 + 
 +When the configuration is satisfactorily, do
 + 
 + make
 + 
 +If all goes well, you should now have a bunch of .class files in the src directory.
 + If you got a crap-
 +load of errors, you are using the wrong compiler. Now you can install the files int
 +o your system
 + 
 + make install
 + 
 +or you can decide to install it under a specific directory. You provide two paramet
 +ers to this; root
 +and prefix. For example
 + 
 + 
-* You need Sun's javac to compile this, and Sun's java to run it. 
-  
-* is there any open alternative for javac? otherwise get this from sun. 
* Compile the code: javac *.java * Compile the code: javac *.java

Current revision

The SynchroEdit server is licensed under the MPL and the LGPL. For more information

see doc/LICENSE.*.
 This should once become a HOWTO to help installation under GNU/Linux.
 I took some text from the INSTALL files - hope you don't mind
  • Prepare:
mkdir synchroedit
cd synchroedit/
wget http://synchroedit.com/pub/se-0.5-bundle.tar.bz2
tar -xvjf se-0.5-bundle.tar.bz2 
  • Get JAVA. SynchroEdit compiles under Sun Java 5 JDK, and (at the point of writing) no other c

ompiler. Java has been released under the (L?)GPL by sun recently, so there is java packages available from ubuntu edgy / debian etch onwards.

apt-get install sun-java5-jdk

If a prepackaged version is not available to you, you must download JDK from http:/ /java.sun.com/ if it is not installed on your system already.

Once you've ensured that you have the correct Java compiler installed, do

       ./configure

It will print out which compiler ("javac") it detects. If invalid, you may need to make sure that /usr/bin/javac points to the specific compiler. Alternatively, you can do

       ./configure --javahome=LOCATION

When the configuration is satisfactorily, do

       make

If all goes well, you should now have a bunch of .class files in the src directory.

If you got a crap-

load of errors, you are using the wrong compiler. Now you can install the files int o your system

       make install

or you can decide to install it under a specific directory. You provide two paramet ers to this; root and prefix. For example



  • Compile the code: javac *.java
  • Place the .class files in a directory somewhere that ends with sserve, e.g. /home/joe/sserve/

I.e.: mv *.class /home/joe/sserve/

  • The SynchroEdit server has default settings, but these will in most cases be invalid.

Thus, you will want to create your own set of settings in the "config_location" path, which is, in scan order;

       1. ./etc/synchroedit.rc
       2. ./.synchroedit.rc
       3. ./synchroedit.rc
       4. /etc/synchroedit/synchroedit.rc
       5. /etc/synchroedit.rc
  • There is a sample (synchroedit.rc.sample) that you can copy to either of these locations

and modify as needed. Alternatives 1-3 are "relative paths" which means, if you call the server from /home/joe, the config will be expected in /home/joe/[...] even though the .class-files are in /home/joe/sserve/.

  • To start the server, go to /home/joe/ and type java sserve.Main
  • What to do next as a Linux User??
  • You will need to restart any running cmd's from which you intend to run the SynchroEdit server before the change will take effect.
Personal tools