[Pharo-project] Some questions about pharo
Hello =) I have a few questions: - If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger) - I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute). Adrien.
2010/10/18 Adrien BARREAU <abarreau.dev@live.fr>
Hello =)
I have a few questions:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
Not that I am aware of. However, what you can do is to run the image as headless and have VNC running on in. Then, from any machine with a VNC client you can connect, see the World, and use it. Once I was thinking to hack a little and see if I can use the UIDummyMananger of PharoKernel but on a Pharo non-headless. And see if there was a way to not show any way, but then, after if you wanted, you just needed to change the UIManager. But I have no idea if this could work.
- I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute).
I don't know :(
Adrien.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
See <http://book.seaside.st/book/advanced/deployment/maintaining/vnc>. Cheers, Lukas 2010/10/18 Adrien BARREAU <abarreau.dev@live.fr>:
Hello =)
I have a few questions:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
- I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute).
Adrien.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch
The Windows vm displays a system tray icon that allows the image to leave the headless state. It has been quite useful, but there should be (hopefully is) a way to prevent that. ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Lukas Renggli [renggli@gmail.com] Sent: Monday, October 18, 2010 2:09 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Some questions about pharo See <http://book.seaside.st/book/advanced/deployment/maintaining/vnc>. Cheers, Lukas 2010/10/18 Adrien BARREAU <abarreau.dev@live.fr>:
Hello =)
I have a few questions:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
- I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute).
Adrien.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
On Mon, Oct 18, 2010 at 9:05 PM, Schwab,Wilhelm K <bschwab@anest.ufl.edu>wrote:
The Windows vm displays a system tray icon that allows the image to leave the headless state. It has been quite useful, but there should be (hopefully is) a way to prevent that.
ahh yes?? That's cool! do you know if this is possible also with other VMs ?
________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [ pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Lukas Renggli [ renggli@gmail.com] Sent: Monday, October 18, 2010 2:09 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Some questions about pharo
See <http://book.seaside.st/book/advanced/deployment/maintaining/vnc>.
Cheers, Lukas
2010/10/18 Adrien BARREAU <abarreau.dev@live.fr>:
Hello =)
I have a few questions:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
- I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute).
Adrien.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Possible? Sure :) You are of course asking whether it has been done, and I do not know the answer to that. It is indeed a nice feature. It is also one of those things that can also be classified as a bug ("The stupid user clicked this and caused all kinds of trouble..."), so it should be made conditional allowing truly headless operation when appropriate. Another option is to remote into a headless image as Lukas suggested. Bill ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Mariano Martinez Peck [marianopeck@gmail.com] Sent: Monday, October 18, 2010 3:30 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Some questions about pharo On Mon, Oct 18, 2010 at 9:05 PM, Schwab,Wilhelm K <bschwab@anest.ufl.edu<mailto:bschwab@anest.ufl.edu>> wrote: The Windows vm displays a system tray icon that allows the image to leave the headless state. It has been quite useful, but there should be (hopefully is) a way to prevent that. ahh yes?? That's cool! do you know if this is possible also with other VMs ? ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr<mailto:pharo-project-bounces@lists.gforge.inria.fr> [pharo-project-bounces@lists.gforge.inria.fr<mailto:pharo-project-bounces@lists.gforge.inria.fr>] On Behalf Of Lukas Renggli [renggli@gmail.com<mailto:renggli@gmail.com>] Sent: Monday, October 18, 2010 2:09 PM To: Pharo-project@lists.gforge.inria.fr<mailto:Pharo-project@lists.gforge.inria.fr> Subject: Re: [Pharo-project] Some questions about pharo See <http://book.seaside.st/book/advanced/deployment/maintaining/vnc>. Cheers, Lukas 2010/10/18 Adrien BARREAU <abarreau.dev@live.fr<mailto:abarreau.dev@live.fr>>:
Hello =)
I have a few questions:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
- I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute).
Adrien.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr<mailto:Pharo-project@lists.gforge.inria.fr> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch<http://www.lukas-renggli.ch> _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr<mailto:Pharo-project@lists.gforge.inria.fr> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr<mailto:Pharo-project@lists.gforge.inria.fr> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
On Mon, Oct 18, 2010 at 9:05 PM, Schwab,Wilhelm K <bschwab@anest.ufl.edu> wrote:
The Windows vm displays a system tray icon that allows the image to leave the headless state. Â It has been quite useful, but there should be (hopefully is) a way to prevent that.
I think that someone asked on squeak-dev some time ago and Andreas told that it is not possible with the standard VM. -- Pavel
________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Lukas Renggli [renggli@gmail.com] Sent: Monday, October 18, 2010 2:09 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Some questions about pharo
See <http://book.seaside.st/book/advanced/deployment/maintaining/vnc>.
Cheers, Lukas
2010/10/18 Adrien BARREAU <abarreau.dev@live.fr>:
Hello =)
I have a few questions:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
- I wanna run Pharo as a deamon; how can I interact with it after i launched it? (for example, if I want to give it a piece of code to execute).
Adrien.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2010/10/18 Adrien BARREAU <abarreau.dev@live.fr>:
- If I run a headless Pharo, is it possible to display the graphical interface after? (for example, if something raises an exception, I want to open the GUI and use the debugger)
It depends. If your headless Pharo image is running on a unix VM you could utilize the genius OSProcess/XDisplayControl plugin available for this VM. Load the appropriate packages from [1] into your Pharo image and then you can close and reopen the window even on another machine if it's running X11. For example this OSProcess thisOSProcess closeXDisplay. (Delay forSeconds: 5) wait. OSProcess thisOSProcess displayOnXServer: ':0.0'. will close the Window (headless) and reopen it (headful) again on the local X server after five seconds. If you're using Seaside in that image you could trigger window open/close via Seaside or you could change the default handler for errors to make the window open on the local display as a default, ... Alex [1] http://www.squeaksource.com/OSProcess
participants (6)
-
Adrien BARREAU -
Alexander LazareviÄ -
Lukas Renggli -
Mariano Martinez Peck -
Pavel Krivanek -
Schwab,Wilhelm K