EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Phoebus lock down BOB
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Stainer Tom <Tom.Stainer at sckcen.be>
Date: Fri, 26 Mar 2021 16:11:52 +0000
In an interactive session, open the desired display(s).
Maybe use the "Window" menu to hide toolbar and status bar, and maybe select the full-screen mode.
Use Window, Save Layout As .. to save that layout.
By default, it will end in a file $HOME/.phoebus/NameOfLayout.memento, for details see https://control-system-studio.readthedocs.io/en/latest/locations.html

From now on you can start phoebus with the 
    -layout /path/to/Example.memento
option to open that saved layout.


> Ideally I would just like to ship a single binary which can be loaded by a user (given the have the JVM) and they see a simple read-only screen.

You can include the JVM in your package.
The example launch scripts look for "../jdk".
The SNS-specific packages use that.



BUT: That's a large package to download, just to offer you users with a crippled read-only screen.

Have you looked at the display builder web runtime, https://github.com/kasemir/dbwr?
That allows your users to see (by default: read only) displays in a web browser.
There are some limitations to what you can do in that display, mostly: No scripts, but many screens will "just work" with zero installation effort on the user end.

-Kay


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Stainer Tom via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, March 26, 2021 12:00 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] Phoebus lock down BOB 
 
Dear,
 
I have a Display builder (.bob) file which I would like to “lock down” in the sense that I can provide a stand-alone application just showing this OPI without the ability to edit or play with it, and hide from the user that it is CS-Studio/Phoebus.
 
Ideally I would just like to ship a single binary which can be loaded by a user (given the have the JVM) and they see a simple read-only screen.
 
I am sure this is possible to do, I just am struggling to find any documentation or examples on how to do this.
 
I’ve been trying things like this with no success:
./phoebus.sh -resource file:/home/user/opi/simple.bob?app=display_runtime
 
Any pointers or advice on this would be much appreciated.
 
Kind regards,
Tom

Replies:
RE: Phoebus lock down BOB Stainer Tom via Tech-talk
References:
Phoebus lock down BOB Stainer Tom via Tech-talk

Navigate by Date:
Prev: Phoebus lock down BOB Stainer Tom via Tech-talk
Next: RE: Phoebus lock down BOB Stainer Tom via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Phoebus lock down BOB Stainer Tom via Tech-talk
Next: RE: Phoebus lock down BOB Stainer Tom via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 26 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·