Stop dashboard and all UIs loading

How do you remove all UIs/Dashboard and other services from Openhab2?
Is there a file that states what openhab2 will load/start?
We would like the smallest installation possible.
It appears we stopped all UIs but dashboard. How can we remove dashboard?

2018-08-25 15:51:06.117 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.104:8080
2018-08-25 15:51:06.174 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.104:8443
2018-08-25 15:51:22.746 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘yachtbrain.items’
2018-08-25 15:51:28.719 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-08-25 15:51:29.595 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-08-25 15:51:30.128 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2018-08-25 15:51:30.507 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2018-08-25 15:51:30.867 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-08-25 15:51:33.016 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled ‘openhab-ui-basic’
2018-08-25 15:51:41.130 [INFO ] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2018-08-25 15:51:41.303 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled ‘openhab-ui-classic’
2018-08-25 15:51:49.481 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2018-08-25 15:51:49.593 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled ‘openhab-ui-habmin’
2018-08-25 15:51:56.131 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-08-25 15:51:56.279 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled ‘openhab-ui-habpanel’
2018-08-25 15:52:03.643 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2018-08-25 15:52:03.717 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled ‘openhab-ui-paper’

Thanks.

Services/addons.cfg defines many of these things.

I understand you are trying for a minimal instal. What is you intended plan if you are removing so many things?

Thanks for your response.
Minimal install still loads dashboard I believe - Secure, headless platform all ports are closed except for 2 that are secured and are used for a specific purpose. We plan to use OH2 for items and rules. services/addon.cfg is not where we removed UIs and I don’t see how to use addon.cfg to remove uneeded services - like DashBoard and LSP. Both open ports. Is there a file(s) like oh1.8 bundles.info?

I don’t think you can remove the dashboard and frankly it’s more of a webpage than a service. It is hosted by the same service (jetty) that hosts the REST API and disabling that renders OH non-functional.

I don’t know about the LSP. You can lock down access to these through a host based firewall but I don’t think you can remove them without breaking OH and making nothing work.

1 Like