View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

How do I configure Swiki headless?

Question: Is there a possibility to configure the swiki on a Server without a X-Environment ? I solved this by configuring the Image on a computer with X and copied it to the server without X. But isn't this a little bit stupid ? Swiki doesn't need X at all and could be configured through textfiles where Port and other items are set.

Regards
Chris Burkert

Answer: Yes, you can actually give Squeak a file with Smalltalk code in it as an argument and do the configuring/startup in there. An example bash-script to start Squeak headless with any image in the same directory and then running the code in the file "proxy.st" upon startup.

#!/bin/bash
./squeak -headless .image proxy.st

Don't forget to "chmod +x" this script so you can run it. The exact contents of the script for configuring Swiki I don't have handy. Mail me att goran.hultgren@bluefish.se and I can dig it up for you.

Answer: I solved the problem. Run the Swiki with:
# squeak -headless squeak.image config.st
The Configuration File config.st looks something like this:
ComSwikiLauncher allInstances do:
[ :instance |
  instance port: 8000.
  instance isOn ifTrue: [ instance stopServer ].
  instance startServer.
].!
Regards
Chris Burkert

Link to this Page

  • Swiki FAQ last edited on 7 May 2011 at 6:22 pm by 108-81-8-212.lightspeed.milwwi.sbcglobal.net