2015-01-21 9:29 GMT+01:00 Michal Balda <li...@michalbalda.cz>: > Hi all, > is there any difference between -vm-display-null and --no-display (and > using both)? >
no-display is deprecated, whereas vm-display-null is not. It does the same but use vm-display-null or your script will stop working in the future. > > I used this command to successfully run a Seaside app on a headless Linux > server, with a standard Pharo VM (not the Squeak one from the repositories): > > ./pharo-vm/pharo \ > -vm-display-null \ > -vm-sound-null \ > --plugins ./pharo-vm \ > --encoding utf8 \ > ./image/Seaside.image \ > --no-quit > > Or, to run a script at startup to initialize the app/server: > > ./pharo-vm/pharo \ > -vm-display-null \ > -vm-sound-null \ > --plugins ./pharo-vm \ > --encoding utf8 \ > ./image/Seaside.image \ > st ./startServer.st \ > --no-quit > > Apart from running it under a limited user/group, it is also possible to > chroot it for an extra security measure. > > > Michal > > > > > On 21.1.2015 09:16, Clément Bera wrote: > > Just a detail. When you run headless with the latest pharo-vm (that you > can download here: http://files.pharo.org/vm/pharo/ in your OS directory, > file stable.zip), add --no-quit after --no-display in the VM start-up > options. > > 2015-01-21 7:21 GMT+01:00 p...@highoctane.be <p...@highoctane.be>: > >> why running pharo with a squeakvm? >> >> I am runnin headless with PharoVM here. >> >> Your vm params look like weird. >> >> I'll give you a copy of my CLI when I have access to my Pc. >> >> Phil >> Le 21 janv. 2015 03:59, "sergio_101" <sergio....@gmail.com> a écrit : >> >> #!/bin/bash >>> >>> # settings >>> USER="badgesoup" >>> VM="/usr/lib/squeak/4.10.2-2614/squeakvm" >>> VM_PARAMS="-mmap 256m -vm-sound-null -vm-display-null" >>> IMAGE="/home/badgesoup/badgesoup_image/Pharo3.0.image" >>> >>> # start the vm >>> exec \ >>> setuidgid "$USER" \ >>> "$VM" $VM_PARAMS "$IMAGE" >>> >>> On Tue Jan 20 2015 at 9:32:04 PM Esteban A. Maringolo < >>> emaring...@gmail.com> wrote: >>> >>>> What is in the 'run' file? >>>> >>>> Esteban A. Maringolo >>>> >>>> >>>> 2015-01-20 23:26 GMT-03:00 sergio_101 <sergio....@gmail.com>: >>>> > i am ready to put my seaside app online, and am finding that all the >>>> > information i am finding is outdated. >>>> > >>>> > I am running the latest Pharo (as of last night), and ubuntu14.04. >>>> > >>>> > when i try to run using squeakvm, i get: >>>> > >>>> > $ sudo ./run >>>> > 'Your VM is too old for this image. Please download the latest VM.' >>>> > 'Pharo cannot locate the sources file named >>>> > /usr/lib/squeak/4.10.2-2614/PharoV30.sources. >>>> > >>>> > Please check that the file is named properly and is in the >>>> > same directory as this image.' >>>> > A PharoCommandLineHandler is xxxxxxxxx. >>>> > >>>> > everywhere i look, the information seems several years old.. >>>> > >>>> > ideas? thanks! >>>> > >>>> > >>>> >>>> > >