en:user_advanced:webswing_gli
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:user_advanced:webswing_gli [2023/11/28 23:44] – created kjdon | en:user_advanced:webswing_gli [2024/09/10 03:51] (current) – [Debugging] kjdon | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Webswing GLI ====== | ====== Webswing GLI ====== | ||
- | Webswing is a technology that allows java programs to run in a browser. | + | Webswing is a technology that allows java programs to run in a browser.\\ |
- | Greenstone 3.11 and later comes with webswing enabled. | + | Greenstone 3.11 and later comes with webswing enabled, so that GLI can be run in a browser, allowing remote users the ability to build and edit collections on the server without having to install Greenstone (and Remote GLI).\\ |
+ | To get started using webswing GLI, see tutorial [[https:// | ||
- | It is provided as an extension, in greenstone3/ | + | It is provided as an extension, in greenstone3/ |
The webswing framework requires a graphical environment. If you are on a standard desktop, then it will work out of the box. | The webswing framework requires a graphical environment. If you are on a standard desktop, then it will work out of the box. | ||
However, if you are on a headless Linux environment, | However, if you are on a headless Linux environment, | ||
- | * xvfb - x-virtual frame buffer | + | * xvfb (x-virtual frame buffer) - for example, '' |
You may also need the following: | You may also need the following: | ||
* libxext6 | * libxext6 | ||
Line 15: | Line 16: | ||
* libxrender1 | * libxrender1 | ||
+ | To start Greenstone when you are using webswing, please use the new scripts: | ||
+ | * ant-start-with-exts.sh | ||
+ | * ant-stop-with-exts.sh | ||
+ | * ant-restart-with-exts.sh | ||
+ | These will make sure the right environment is set up for Tomcat. | ||
+ | ==== When Tomcat is behind an Apache server ==== | ||
+ | If you Tomcat is running behind an Apache webserver, there are some extra steps to get it running in this situation. | ||
+ | * Apache needs to have the proxy_wstunnel module enabled: | ||
+ | * (sudo) apachectl -M - to list modules | ||
+ | * (sudo) a2enmod proxy_wstunnel | ||
+ | See [[https:// | ||
+ | |||
+ | You also need to edit the apache configuration file for your VirtualHost. This file might be in eg / | ||
+ | |||
+ | Assuming your tomcat is running on port 8383: | ||
+ | |||
+ | If your apache is 2.4.47 or later: | ||
+ | |||
+ | < | ||
+ | ProxyPass "/ | ||
+ | </ | ||
+ | |||
+ | If your apache is older than 2.4.47, try the following: | ||
+ | < | ||
+ | RewriteEngine on | ||
+ | |||
+ | RewriteCond %{HTTP: | ||
+ | RewriteRule /(.*) ws:// | ||
+ | |||
+ | RewriteCond %{HTTP: | ||
+ | RewriteRule /(.*) http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | Note, this doesn' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | There is a config file web/ | ||
+ | |||
+ | Some useful settings in this file: | ||
+ | * uploadMaxSize - the maximum file size allowed to be uploaded (FileChooser) in MB. Set to 0 for unlimited size. Note, if the size is less than a file you are trying to upload to a collection, it will silently fail and give you no reason why. | ||
+ | * | ||
+ | |||
+ | ==== Debugging ==== | ||
+ | |||
+ | * webswing log goes to packages/ | ||
+ | * For GLI debugging - add -debug to the args for GathererProg in web/ | ||
+ | |||
+ | |||
+ | ====Deactivating Webswing ==== | ||
+ | |||
+ | Webswing is used for web-based GLI, Phind and Collage classifiers. If you don't need any of these things you can deactivate webswing by running: | ||
+ | |||
+ | < | ||
+ | cd < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | It can be re-activated by running '' |
en/user_advanced/webswing_gli.1701215052.txt.gz · Last modified: 2023/11/28 23:44 by kjdon