User Tools

Site Tools


evergreen-user:installing_and_running_the_staff_client

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
evergreen-user:installing_and_running_the_staff_client [2009/10/19 16:18] jamesrfevergreen-user:installing_and_running_the_staff_client [2023/03/07 09:52] (current) – Delete this page dyrcona
Line 1: Line 1:
-**[[evergreen-user:evergreen_end-user_documentation|Table of Contents]]** \\ 
-[[user-comments:evergreen-user:installing_and_running_the_staff_client|User Comments]] 
- 
-====== Installing and Running the Staff Client ====== 
- 
- 
-===== Installing On Windows ===== 
- 
-The staff client is available for download from the downloads section on the Open-ILS website at http://www.evergreen-ils.org/downloads.php. Download the staff client installer, and run it. A screen will appear that looks similar to this: 
- 
-{{:evergreen-user:wizard1.jpg|}} 
- 
-Click the Next button to continue through the guided install process. The install wizard will ask you to agree to the end-user license, ask you where to install the software, ask about where to place icons, and then will install the software on your workstation.  
- 
-When you run the staff client for the first time, a screen similar to this will appear: 
- 
-{{:evergreen-user:staff-client_unconfigured.jpg|}} 
- 
-First, configure the server you would like to connect to in the **Server** section. For example, the PINES demo system is **demo.gapines.org**. After selecting a server, click the **Re-Test Server** button. \\ \\ 
- 
-Because this is the initial run of the staff client, the **Workstation** section in the upper-right states: **Not yet configured for the specified server**. The first thing that must be done to every workstation is to assign it a workstation name. This is covered in the [[Workstation Names]] section of the documentation.  
- 
- 
- 
- 
- 
-===== Installing On Mac ===== 
- 
-==== Option 1: Evergreen Indiana Pkg file ==== 
-  - Download and install the [[http://developer.mozilla.org/en/docs/XULRunner_1.8.0.4_Release_Notes|1.8.0.4 Version of XULRunner]] for Mac.  Note, later versions may not work correctly. 
-  - Download and install the Mac Installation package for the 1_2_3_0 Version Staff Client from [[http://evergreen.lib.in.us/opac/extras/files/evergreen_osx_staff_client_1_2_3.zip|HERE]]. 
-  - To upgrade to a more recent version of the staff client, you can copy the "build" directory from a working Windows installation of the desired version of the staff client to your Mac.  The required files may be located in a directory like this on the Windows machine: C:\Program Files\Evergreen Staff Client\build.  Copy these files into the "Resources" folder within the Open-ILS package in your Applications directory on the Mac, overwriting files with the same names. 
-  - Drag the application's icon into your toolbar for easier access. 
- 
-When you run the staff client installer, a screen will appear that looks similar to this: 
- 
-{{http://es.zionsville.lib.in.us/atheos/eg_osx_a.gif}} 
- 
-Click continue, accept the license, then finish the installation. The application will be located at the destination you selected during installation. You will then be able to drag the application into your toolbar for easier access. 
- 
-{{http://es.zionsville.lib.in.us/atheos/eg_osx_b.gif}} 
- 
-==== Option 2: Running directly using xulrunner ==== 
- 
-Follow these next steps if you choose to build the client. 
- 
-XULRunner operates a bit differently under OSX.   
- 
-The [[http://developer.mozilla.org/en/docs/XULRunner_1.8.0.4_Release_Notes|Mozilla Developer Center]] contains information that you'll need.   
-There seems to be issues with the community provided package (currently 1.8.1.3), although ver 1.8.0.4 has been successfully used. 
- 
-The staff client data from the ./staff_client/build directory must be placed somewhere on the machine (e.g. ~/Desktop/Evergreen_Staff_Client). 
- 
-XULRunner must be called via the full path to the binary, followed by the install command and the path to the client data. 
-  /Library/Frameworks/XUL.framework/xulrunner-bin --install-app ~/Desktop/Evergreen_Staff_Client 
- 
-This command should exit quietly. 
- 
-A folder named OpenILS under /Applications, with a launcher named open_ils_staff_client, will be created. 
- 
- 
-If you already have ver. 1.8.1.3 installed, per the 1.8.0.4 release notes, you'll need to remove the entire /Library/Frameworks/XUL.framework directory before reinstalling.  In addition, you may also need to remove the previous xulrunner-ver-mak.pkg file from /Library/Receipts/ 
- 
-==== Option 3: Creating an APP file ==== 
- 
-  - An app file is basically a folder.  Start with a folder stucture like this: 
-  * Evergreen.app 
-    * Contents 
-      * Frameworks 
-      * Resources 
-      * MacOS 
-eg: 
-<code sh> 
-  mkdir -p Evergreen.app/Contents/Frameworks 
-  mkdir -p Evergreen.app/Contents/Resources 
-  mkdir -p Evergreen.app/Contents/MacOS 
-</code> 
- 
-  - Create a new file in Evergreen.app/Contents/Info.plist with the following (adjust for your version of Evergreen) 
-<code xml> 
-<?xml version="1.0" encoding="UTF-8"?> 
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
-<plist version="1.0"> 
-<dict> 
-        <key>CFBundleExecutable</key> 
-        <string>xulrunner</string> 
-        <key>CFBundleGetInfoString</key> 
-        <string>OpenILS open_ils_staff_client rel_1_6_0_0</string> 
-        <key>CFBundleInfoDictionaryVersion</key> 
-        <string>6.0</string> 
-        <key>CFBundleName</key> 
-        <string>Evergreen Staff Client</string> 
-        <key>CFBundlePackageType</key> 
-        <string>APPL</string> 
-        <key>CFBundleShortVersionString</key> 
-        <string>rel_1_6_0_0</string> 
-        <key>CFBundleVersion</key> 
-        <string>rel_1_6_0_0.rel_1_6_0_0</string> 
-        <key>NSAppleScriptEnabled</key> 
-        <true/> 
- <key>CFBundleTypeIconFile</key> 
-        <string>Evergreen.icns</string> 
-</dict> 
-</plist> 
-</code> 
- 
-  - Download and install an appropriate Mac OS package of XULRunner from the Mozilla website  
-  - Make a copy of /Library/Frameworks/XUL.Framework inside your app file, it should look something like this: 
-    * Evergreen.app/ 
-      * Contents/ 
-        * Frameworks/ 
-          * XUL.Framework/ 
-            * Versions/ 
-              * Current -> 1.9.1.3 (symlink) 
-              * 1.9.1.3/ 
-            * XUL -> Versions/Current/XUL 
-            * libxpcom.dylib -> Versions/Current/libxpcom.dylib 
-            * xulrunner-bin -> Versions/Current/xulrunner-bin 
-  - copy XUL.Framework/Versions/Current/xulrunner into Evergreen.app/MacOS (do not symlink, copy the file) 
-  - Make Evergreen.app/Resources the root of your Evergreen application files like this: 
-    * Evergreen.app/ 
-      * Contents/ 
-        * Resources/ 
-          * BUILD_ID 
-          * application.ini 
-          * chrome/ 
-          * components/ 
-          * etc. 
-  - Put a Mac format icon file named Evergreen.icns in Resources  
- 
- 
-===== Installing On Linux ===== 
-====Building the Staff Client on the Server==== 
-A Linux staff client is built on the server as part of the initial installation of Evergreen, using the following steps: 
-<code>cd ~/ILS/Open-ILS/xul/staff_client 
-make STAFF_CLIENT_BUILD_ID='12345' 
-mkdir /openils/var/web/xul/ 
-mkdir /openils/var/web/xul/12345/ 
-cd build/ 
-cp -R server/ /openils/var/web/xul/12345/</code> 
- 
-It can be run from the build directory by: 
-<code>xulrunner application.ini</code> 
- 
-In order to install a compatible staff client on another Linux machine, you can copy the applicable files from the server to that Linux machine, or even build it from scratch on that machine.  Just be sure the Build ID you chose on the server (12345 in this example) matches the Build ID for each staff client you use on other machines.   
- 
-If you will be using a pre-packaged Windows version on some computers as well, you may want to choose your Build ID on both server and other versions to match that of the Windows staff client.  You can determine what Build ID has been used for existing installations of the staff client by clicking the "About this Client" button. 
- 
-An alternative option if you have access to make changes to the Evergreen server is to create a symbolic link.  In order for a copy of the staff client and server to work together, the Build ID (shown when you click "About this Client") of the client, must match the name of the directory containing the server components of the staff client or the name of a symbolic link to that directory.  
- 
-<code>cd /openils/var/web/xul 
-sudo ln -s server_build_id/ client_build_id</code> 
- 
- 
-====Building the Staff Client on a Client Machine==== 
-This section is more toward an end-user who may wish to use Linux rather than Windows for client machines, but has limited Linux experience. 
-The Staff Client can be built on Linux without installing the Evergreen Server component; this is a relatively simple process, compared to server installation, though does require some command-line work.  The following directions are for building Staff Client version 1.2.1.4 on Kubuntu 7.10, so you may need to modify them for other distributions (these instructions should work as-is for Ubuntu or Ubuntu derivatives). 
- 
-===1: Prerequisites=== 
-  * subversion client 
-  * xulrunner 
-Using apt-get to acquire these: 
-<code> 
-sudo apt-get install subversion 
-sudo apt-get install xulrunner 
-</code> 
-Synaptic can also be used; search for subversion and select the latest version, and search for xulrunner and select version 1.8.1.4-2ubuntu5. 
-===2: Download the Source Code=== 
-==2a: Determine which version is needed.== 
-For most end-users, a specific version is required to communicate properly with the Evergreen server.  Check with your system admin, IT person, or HelpDesk to determine which Staff Client versions are supported.  
- 
-Next, you'll need to determine which //tag// to use when downloading the source code.  Tags are markers in the source code to create a snapshot of the code as it existed at a certain time; tags usually point to tested and stable code, or at least a community-recognized release version.  
- 
-To determine which tag to use, browse to http://svn.open-ils.org/trac/ILS.  Look in the "Visit" drop-down box.  You will see a list of Branches and, further down, a list of Tags.  You'll have to do some guesswork, but it's fairly straightforward to determine which tag to use.  If the server is on version 1.2.1.4, you'll want to use the tag that looks most appropriate.  As you look through the tag list, you'll notice a tag named 'rel_1_2_1_4' This is the tag you'll want to use; make a note of it, because you'll need the tag name for the next step.  
- 
- 
-==2b: Download the Source Code.== 
-Now, open a terminal (command-line prompt) and navigate to the directory in which you wish to download the staff client.  Navigate to the desired directory and use the following command to download the proper version of the source code by tag: 
-<code> 
-svn co svn://svn.open-ils.org/ILS/tags/rel_1_2_1_4/ 
-</code> 
-Note that you'll want to change "rel_1_2_1_4" to the appropriate tag for your installation. 
-===3: Build the Staff Client.=== 
- 
-==Evergreen 1.2.x== 
- 
-From the command line, navigate to the directory in which you downloaded the source code.  Then, navigate to the proper subdirectory: 
-<code>cd Open-ILS/xul/staff_client</code> 
-Now, we'll run the "make" script to actually build the Staff Client files.  Be sure to check wtih your sysadmin about which "Staff Client Build ID" to use; the server checks the Staff Client Build ID against itself to determine whether or not a connecting client is supported.  For the PINES installation at 1.2.1.4, the supported build id is "rel_1_2_1_4" Modify the following command accordingly: 
-<code>make STAFF_CLIENT_BUILD_ID='rel_1_2_1_4'</code> 
- 
-==Evergreen 1.4.x== 
- 
-The 1.4 series of Evergreen has complicated the build process for staff clients a bit.  If you downloaded a .tar.gz (tarball) of Evergreen, then your steps will resemble: 
- 
-FIXME -- Need instructions for getting certain Javascript files from OpenSRF, preferably without actually installing OpenSRF. 
- 
-<code> 
-wget http://evergreen-ils.org/downloads/Evergreen-ILS-1.4.0.4.tar.gz 
-tar xfz Evergreen-ILS-1.4.0.4.tar.gz 
-cd Evergreen-ILS-1.4.0.4/ 
-./configure --prefix=/openils --sysconfdir=/openils/conf 
-cd Open-ILS/xul/staff_client/ 
-make STAFF_CLIENT_BUILD_ID='rel_1_4_0_4' install 
-</code> 
- 
-If you're installing from a Subversion checkout: 
- 
-<code> 
-svn co svn://svn.open-ils.org/ILS/tags/rel_1_4_0_4/ 
-cd rel_1_4_0_4 
-./autogen.sh   # If you downloaded a .tar.gz of Evergreen, you may skip this step 
-./configure --prefix=/openils --sysconfdir=/openils/conf 
-cd Open-ILS/xul/staff_client/ 
-make STAFF_CLIENT_BUILD_ID='rel_1_4_0_4' install 
-</code> 
- 
- 
-===4: Run the Staff Client (from the command line).=== 
-Navigate to the 'build' subdirectory, then run the following command: 
-<code>xulrunner application.ini</code> 
-Make sure you run this from 'build\', not from 'staff_client\'. 
-===5: Cleaning Up/Creating Shortcuts (Optional)=== 
-The source code download included many files that are needed to build the Staff Client, but not necessary to run it.  You may wish to remove them to save space, or to create a directory containing the built staff client that can be copied to other machines.\ 
-To do this, first create the directory where you wish to place your 'finished' staff client: 
-<code> mkdir ~/<Destination Directory> </code> 
-Then, copy the 'staff_client' directory to it: 
-<code>cd ~/<Download Directory>/Open-ILS/xul/ 
-cp -r staff_client ~/<Destination Directory> 
-</code> 
-Test to verify that all the necessary files were moved to the destination directory: 
-<code> 
-cd ~/<Destination Directory>/staff_client/build 
-xulrunner application.ini 
-</code> 
-The Staff Client should run properly.  Now remove the original download directory and all sub directories: 
-<code>rm -r -f ~/<Download Directory></code> 
- 
-Almost done!  Now, the command <code>xulrunner ~/<Destination Directory>/staff_client/build/application.ini</code> will run the Staff Client.  You may wish to create Desktop/Start Menu/K-Menu shortcuts for the Staff Client.  To do so, use the previous command as the target. 
- 
- 
-==== Using Wine to Install On Linux ==== 
-Wine is also an alternative for those who want to install the packaged Windows versions rather than building the Staff Client manually.  Wine is application that allows Linux users to run Windows executables, and is a simple way for casual Linux users to use the Evergreen Staff Client. 
- 
-1: Install Wine (using apt-get): 
- 
-     command-prompt:~/sudo apt-get install wine 
- 
-Here is more information about installing Wine: 
-http://www.winehq.org/site/docs/wineusr-guide/getting-wine  
- 
- 
-2) Download the proper EG Staff Client installer from the 
-open-ils.org website and put it in a directory you like: 
- 
-<code>command-prompt:~/cd directory/of/choice 
-command-prompt:~/wget http://open-ils.org/downloads/evergreen-setup-rel_version-number.exe 
-</code> 
-3) In the GUI, navigate to the file where you downloaded the 
-setup file and run it; this will install the SC.  If this fails, 
-you may need to configure Wine first to emulate Windows XP.   
- 
-To do so, type "winecfg" from the command line; in the 
-"Applications" tab of the window that pops up, select "Default 
-Settings" and choose "Windows XP" from the drop-down menu and 
-click "Apply". 
- 
-4) To launch the Evergreen Staff Client, go to the All Applications menu, 
-select "Wine->Program Files->Evergreen Staff Client->Evergreen 
-Staff Client", or launch from the desktop shortcut. 
- 
- 
  
evergreen-user/installing_and_running_the_staff_client.1255983490.txt.gz · Last modified: 2022/02/10 13:33 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.