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! |
What is in the 'run' file?
Esteban A. Maringolo 2015-01-20 23:26 GMT-03:00 sergio_101 <[hidden email]>: > 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! > > |
#!/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 <[hidden email]> wrote:
What is in the 'run' file? |
In reply to this post by sergio_101
Le 21/01/2015 03:26, sergio_101 a écrit :
> 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. > May be you installed squeak in your system from the ubuntu package management system, and it is quite outdated. You can install the pharo one with the little script given at: http://pharo.org/download You will get a newer pharo vm and a launcher that is very handy to manage images HTH -- Regards, Alain |
In reply to this post by sergio_101
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" <[hidden email]> a écrit :
|
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 [hidden email] <[hidden email]>:
|
Hi all,
is there any difference between -vm-display-null and --no-display (and using both)? 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:
|
2015-01-21 9:29 GMT+01:00 Michal Balda <[hidden email]>:
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.
|
In reply to this post by philippeback
2015-01-21 10:31 GMT+01:00 nacho <[hidden email]>: philippeback wrote Actually I think only the UI is slow on the Pi because on the squeak VM made by Tim he reimplemented differently BitBlt. Is it also slower in headless ? It shouldn't. > |
AFAIK, in our builds JB included Tim’s additions into raspbian (FastBlt changes). Real slowness is because morphic is slow (also BitBlt is not the fastest technology neither).
well… slowness is subjective, of course :) I think in headless mode its speed is “reasonable”, but of course, it can’t be compared to a regular machine. Esteban
|
In reply to this post by philippeback
> On 21 Jan 2015, at 10:31, nacho <[hidden email]> wrote: > > philippeback wrote >> why running pharo with a squeakvm? >> >> I do it, in my Raspberry Pi :p and its slowwww >> >> >> 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.rrd@ > >> > 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 < >>> > >> emaringolo@ > >>> wrote: >>> >>>> What is in the 'run' file? >>>> >>>> Esteban A. Maringolo >>>> >>>> >>>> 2015-01-20 23:26 GMT-03:00 sergio_101 < > >> sergio.rrd@ > >> >: >>>>> i am ready to put my seaside app online, and am finding that all the >>>>> information i am finding is outdated. where are you looking for such information? >>>>> >>>>> 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! you should not use it a squeak vm with pharo ;) why would you do that? Esteban >>>>> >>>>> >>>> >>>> > > > > > > ----- > Nacho > Smalltalker apprentice. > Buenos Aires, Argentina. > -- > View this message in context: http://forum.world.st/Running-Pharo-headless-tp4800750p4800768.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > |
Yes, don't forget no-quit My starting file for Seaside is: #!/bin/sh USER="www-data" VM="/usr/bin/pharo" VM_PARAMS="--mmap 256m -vm-sound-null -vm-display-null" IMAGE="/opt/myApp/Pharo3.0.image" exec \ setuidgid "$USER" \ "$VM" $VM_PARAMS "$IMAGE" \ --no-quit Olivier ;-) 2015-01-21 12:14 GMT+01:00 Esteban Lorenzano <[hidden email]>:
|
Hey, all..
Thanks for the tips! i am going to try this out in a bit.. Is there any place where this info is available to those who are searching for it? I found the above at the documentation for seaside: if you search around for this info, you will find that it all mirrors the above.. is the online seaside book still being maintained? is there a place where users can go to find up to date information? if not, i would be willing to help spearhead such a mission, and to host it, too.. let me know.. On Wed Jan 21 2015 at 6:29:02 AM olivier auverlot <[hidden email]> wrote:
|
okay.. thanks your all your input! i have gotten this to work..
i tried pulling the files from the server, but was getting an issue with 'pharo' not found.. which was odd in that it was in the directory, and it had execute permissions. it had several executable files in it, but i am not sure what was wrong with it. i didn't stick around too long.. i then grabbed it from the PPA.. i installed pharo-vm-core, rather than the launcher.. this gave me pharo-vm-nox. .which i assumed meant that it was headless.. i fired this up, and everything works just fine.. the web interface works correctly, as does the RFB interface.. looks like we're good to go.. i do think that this should be documented in full somewhere. my offer still stands to write/update/host such info.. thanks! On Wed Jan 21 2015 at 8:43:16 AM sergio_101 <[hidden email]> wrote:
Hey, all.. |
There is also this document: http://zn.stfx.eu/zn/build-and-deploy-1st-webapp
A bit old, but still. > On 21 Jan 2015, at 16:19, sergio_101 <[hidden email]> wrote: > > okay.. thanks your all your input! i have gotten this to work.. > > i tried pulling the files from the server, but was getting an issue with 'pharo' not found.. which was odd in that it was in the directory, and it had execute permissions. it had several executable files in it, but i am not sure what was wrong with it. i didn't stick around too long.. > > i then grabbed it from the PPA.. > > i installed pharo-vm-core, rather than the launcher.. > > this gave me pharo-vm-nox. .which i assumed meant that it was headless.. > > i fired this up, and everything works just fine.. the web interface works correctly, as does the RFB interface.. > > looks like we're good to go.. > > i do think that this should be documented in full somewhere. > > my offer still stands to write/update/host such info.. > > thanks! > > On Wed Jan 21 2015 at 8:43:16 AM sergio_101 <[hidden email]> wrote: > Hey, all.. > > Thanks for the tips! i am going to try this out in a bit.. > > Is there any place where this info is available to those who are searching for it? > > I found the above at the documentation for seaside: > > http://book.seaside.st/book/advanced/deployment/deployment-apache/run-vm > > if you search around for this info, you will find that it all mirrors the above.. > > is the online seaside book still being maintained? is there a place where users can go to find up to date information? > > if not, i would be willing to help spearhead such a mission, and to host it, too.. > > let me know.. > > On Wed Jan 21 2015 at 6:29:02 AM olivier auverlot <[hidden email]> wrote: > Yes, don't forget no-quit > > My starting file for Seaside is: > > #!/bin/sh > USER="www-data" > VM="/usr/bin/pharo" > VM_PARAMS="--mmap 256m -vm-sound-null -vm-display-null" > IMAGE="/opt/myApp/Pharo3.0.image" > > exec \ > setuidgid "$USER" \ > "$VM" $VM_PARAMS "$IMAGE" \ > --no-quit > > Olivier ;-) > > 2015-01-21 12:14 GMT+01:00 Esteban Lorenzano <[hidden email]>: > > > On 21 Jan 2015, at 10:31, nacho <[hidden email]> wrote: > > > > philippeback wrote > >> why running pharo with a squeakvm? > >> > >> I do it, in my Raspberry Pi :p and its slowwww > >> > >> > >> 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.rrd@ > > > >> > 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 < > >>> > > > >> emaringolo@ > > > >>> wrote: > >>> > >>>> What is in the 'run' file? > >>>> > >>>> Esteban A. Maringolo > >>>> > >>>> > >>>> 2015-01-20 23:26 GMT-03:00 sergio_101 < > > > >> sergio.rrd@ > > > >> >: > >>>>> i am ready to put my seaside app online, and am finding that all the > >>>>> information i am finding is outdated. > > where are you looking for such information? > > >>>>> > >>>>> 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! > > you should not use it a squeak vm with pharo ;) > why would you do that? > > Esteban > > >>>>> > >>>>> > >>>> > >>>> > > > > > > > > > > > > ----- > > Nacho > > Smalltalker apprentice. > > Buenos Aires, Argentina. > > -- > > View this message in context: http://forum.world.st/Running-Pharo-headless-tp4800750p4800768.html > > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > > > > |
thanks! that is not very old at all, compared to the things i was finding.. although this takes a different approach, i need to sit down and absorb this article.. good stuff here..
On Wed Jan 21 2015 at 10:23:48 AM Sven Van Caekenberghe <[hidden email]> wrote:
There is also this document: http://zn.stfx.eu/zn/build-and-deploy-1st-webapp |
In reply to this post by Michal Balda
On Wed, Jan 21, 2015 at 09:29:34AM +0100, Michal Balda wrote:
> is there any difference between -vm-display-null and --no-display (and > using both)? Not sure what is the latest but in the VMs/images that I run, no-display meant that some display initialization is bypassed, so VNC into Pharo won't work, while vm-display-null allows VNC, which is how I am managing my image. I wrote some old blog posts on this, I think. Here's my daemontools run file that is running my Pharo-powered blog: #!/bin/sh /usr/bin/setuidgid app1 \ /pkg/pharovm/pharo -vm-display-none -vm-sound-none app1.image "app1" is the uid/gid pair that I run the service on. This is on Ubuntu Trusty. Used to be FreeBSD, and if I ever have the time to get Pharo VM and NativeBoost run on FreeBSD, I may go back. -- Pierce http://www.samadhiweb.com/blog |
Free forum by Nabble | Edit this page |