Can the Webmin Custom Command Output Style allow a solaris x window to be displayed within the webmin frame? I am trying to create a Custom Command that will execute a script (already have that part working). but then send the x window back to the operator. Ultimately, I would like to have the window within the webmin frame and interactive. If I cannot bring the window back to the webmin frame, Can I bring it back to a windows desktop? I am assuming that I will need some form of x server running on my windows desktop if I cannot embed the x window within a webmin frame.
Last edit: Michael Bates 2017-08-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have just returned to webmin to start developing some custom commands for managing cloud assets.
My approach has been to clone Custom Commands module then assign cloned module(s) to a new category in main menu. I have created a Development category. I can then hack the cloned module(s) and rename it/them. I leave Others > Custom Commands untouched as just a template.
Like you, I am also exploring integration of external services into webmin pages.
I start by extending webmin by creating an external folder /etc/webmin-assets/ and in this folder I place js, css, scripts, config, html referred to from webmin HTML code.
For example I have jquery.js placed in /etc/webmin-assets/js/jquery.js.
Now a webmin custom command can be written and in the HTML description field drop in your HTML code which in head tag refers to /etc/webmin-assets/js/jquery.js.
I have yet to explore transferring data from webmin parent page command to any generated page but you can experiment. There might be some cross-domain problems to resolve.
Another approach I use is to launch a popup from the webmin command page. The popup is coded in the HTML description field. I can also launch a jetty server instance or PHP/Apache2/MySQL.
I should add that I am running webmin in my localhost development environment and therefore in a webmin headless server environment (e.g. in the cloud) you will need to stay within webmin page as your wrapper.
Last edit: D L 2017-08-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can the Webmin Custom Command Output Style allow a solaris x window to be displayed within the webmin frame? I am trying to create a Custom Command that will execute a script (already have that part working). but then send the x window back to the operator. Ultimately, I would like to have the window within the webmin frame and interactive. If I cannot bring the window back to the webmin frame, Can I bring it back to a windows desktop? I am assuming that I will need some form of x server running on my windows desktop if I cannot embed the x window within a webmin frame.
Last edit: Michael Bates 2017-08-24
I have just returned to webmin to start developing some custom commands for managing cloud assets.
My approach has been to clone Custom Commands module then assign cloned module(s) to a new category in main menu. I have created a Development category. I can then hack the cloned module(s) and rename it/them. I leave Others > Custom Commands untouched as just a template.
Like you, I am also exploring integration of external services into webmin pages.
I start by extending webmin by creating an external folder /etc/webmin-assets/ and in this folder I place js, css, scripts, config, html referred to from webmin HTML code.
For example I have jquery.js placed in /etc/webmin-assets/js/jquery.js.
Now a webmin custom command can be written and in the HTML description field drop in your HTML code which in head tag refers to /etc/webmin-assets/js/jquery.js.
I have yet to explore transferring data from webmin parent page command to any generated page but you can experiment. There might be some cross-domain problems to resolve.
Another approach I use is to launch a popup from the webmin command page. The popup is coded in the HTML description field. I can also launch a jetty server instance or PHP/Apache2/MySQL.
I should add that I am running webmin in my localhost development environment and therefore in a webmin headless server environment (e.g. in the cloud) you will need to stay within webmin page as your wrapper.
Last edit: D L 2017-08-26