Orion/How Tos/Install Orion on Localhost
< Orion | How Tos
Revision as of 14:12, 17 March 2011 by Mamacdon.ca.ibm.com (→Downloading and Running Orion on Localhost)
Downloading and Running Orion on Localhost
- Download Orion for your platform from the download page. Choose the most recent Stable Build.
- Unzip the zip file to a folder on your computer.
Note: Be sure to choose a folder that you have write access to.
- Make sure you have Java installed - the server is implemented in Java. (Does 'java -version' print something like: java version "1.6.0_22"?)
- Launch the Orion server:
- Now the server is running on port 8080. (If you want it to use a different port, change the setting in the eclipse.ini file. On Mac OS X, you will have to right-click on eclipse/eclipse and select "Show Package Contents", then navigate into Contents/MacOS.)
- Point your web browser to http://localhost:8080/.
- You'll be directed to the Orion login screen:
From here you can create a new account for yourself on your local Orion server, or connect Orion to an existing Google, Yahoo, AOL or myOpenID account instead.
Linking to existing content
You can try out Orion's text editing features by editing existing files on your computer. Here's how:
- Open the
eclipse\eclipse.inifile in a text editor.
- In the
-vmargssection, add a line similar to this:
This sets the JVM system property
org.eclipse.orion.server.core.allowedPathPrefixes, which tells the Orion server what local paths may be accessed by web users. Its value is a comma-separated list of absolute paths. (Remember that any Orion user who logs into your server will have this access, so don't point it to something sensitive.)
Note that this option was named differently prior to M5. If you are running M4, use -Dorg.eclipse.e4.webide.server.allowedPathPrefixes=some_path. For all newer builds, including M5, use -Dorg.eclipse.orion.server.core.allowedPathPrefixes=some_path.
- Relaunch the Orion server.
- Log in and click the "Link Folder" or "Link Project" button on the toolbar.
- Type in a name for the link, and in the Server path: field, enter the path to the folder you want to link to (it must be a subdirectory of one of the paths you supplied in Step 2). Then click OK.
- You should now be able to browse and edit the contents of the folder from the Orion UI.
Stopping the server
- Go to the OSGi console window that opened when you launched the server.
closeand press Enter.