Ubuntu Linux Server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Ubuntu Linux Server

Richard Eng
I¹m thinking of hosting my Seaside app on Ubuntu Linux Server. This is a
GUI-less OS which raises a couple of questions...

1) I'm currently running a bit of Squeak code in a Workspace window to
enable file-serving (and to set the WAKom port to 9090). When I download the
image to Ubuntu Linux Desktop running on my server, the image "forgets" that
I'm running on port 9090 (and probably forgets about file-serving as well).

How do I run this code on Ubuntu Linux Server without a GUI?

2) I also have to run a simple Seaside program to setup my database for my
Seaside app on the server machine. Without a GUI, I don't see how I can get
around this.

Forgive these questions. Not only am I a Squeak newbie, I'm also a Linux
newbie...

Thanks,
Richard


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu Linux Server

Adrian Lienhard
There is a VNC client/server implemented in squeak: http://
www.squeaksource.com/RFB.html. Works very well.

Since we have lots of images running at the same time, to connect to  
an image, we start/stop VNC via HTTP on the selected image. Having a  
GUI can be very useful for debugging.

Cheers,
Adrian


On Sep 10, 2007, at 15:29 , Richard Eng wrote:

> I’m thinking of hosting my Seaside app on Ubuntu Linux Server. This  
> is a
> GUI-less OS which raises a couple of questions...
>
> 1) I'm currently running a bit of Squeak code in a Workspace window to
> enable file-serving (and to set the WAKom port to 9090). When I  
> download the
> image to Ubuntu Linux Desktop running on my server, the image  
> "forgets" that
> I'm running on port 9090 (and probably forgets about file-serving  
> as well).
>
> How do I run this code on Ubuntu Linux Server without a GUI?
>
> 2) I also have to run a simple Seaside program to setup my database  
> for my
> Seaside app on the server machine. Without a GUI, I don't see how I  
> can get
> around this.
>
> Forgive these questions. Not only am I a Squeak newbie, I'm also a  
> Linux
> newbie...
>
> Thanks,
> Richard
>
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu Linux Server

Patrick Collison
In reply to this post by Richard Eng
On 10/09/2007, Richard Eng <[hidden email]> wrote:
> I¹m thinking of hosting my Seaside app on Ubuntu Linux Server. This is a
> GUI-less OS which raises a couple of questions...
>
> 1) I'm currently running a bit of Squeak code in a Workspace window to
> enable file-serving (and to set the WAKom port to 9090). When I download the
> image to Ubuntu Linux Desktop running on my server, the image "forgets" that
> I'm running on port 9090 (and probably forgets about file-serving as well).
>
> How do I run this code on Ubuntu Linux Server without a GUI?

It may come GUI-less, but it doesn't have to stay that way.

sudo apt-get install -y xorg
ssh -X server
squeak -vm-display-x11 squeak.image

(VNC is a lot faster, though.)

> 2) I also have to run a simple Seaside program to setup my database for my
> Seaside app on the server machine. Without a GUI, I don't see how I can get
> around this.
>
> Forgive these questions. Not only am I a Squeak newbie, I'm also a Linux
> newbie...
>
> Thanks,
> Richard
>
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu Linux Server

NorbertHartl
In reply to this post by Richard Eng

On Mon, 2007-09-10 at 09:29 -0400, Richard Eng wrote:

> I¹m thinking of hosting my Seaside app on Ubuntu Linux Server. This is a
> GUI-less OS which raises a couple of questions...
>
> 1) I'm currently running a bit of Squeak code in a Workspace window to
> enable file-serving (and to set the WAKom port to 9090). When I download the
> image to Ubuntu Linux Desktop running on my server, the image "forgets" that
> I'm running on port 9090 (and probably forgets about file-serving as well).
>
> How do I run this code on Ubuntu Linux Server without a GUI?
>
Usually you don't need to do anything. Setting up WAKom and save your
image should start the server when you start the image. You can
configure WAKom from the commandline, too. If you invoke your image
with

squeak -nodisplay squeak.image "" port 9090

you can control the port WAKom will use on startup. The "" is necessary
as squeak expects the first argument to be a startup script location.

You could also put your code into a startup script an invoke

squeak -nodisplay squeak.image startup.st

The startup.st could contain the code from your workspace.

Have a look at

Smalltalk addToStartUpList: aService

you can have look at WAKom what is needed to be a service which is
addable.

> 2) I also have to run a simple Seaside program to setup my database for my
> Seaside app on the server machine. Without a GUI, I don't see how I can get
> around this.
>
Have a look at WASystemConfiguration. You subclass it and can build
a configuration editor which you can add to your application. Then you
can see it in the configuration under /seaside/config. Sorry, for not
being more verbose.

Alternatively you could use a startup script as well.

I use something like this

configuration := (
   (WADispatcher default)
      entryPointAt: 'mywebapp'
   ) configuration.

" webapp database configuration "
configuration valueAt: #database put: 'dbname'.

and so on.

Hope this helps,

Norbert


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside