Help with OpenHAB on Ubuntu 16.04

After following the wiki from top to bottom (https://github.com/openhab/openhab/wiki/Ubuntu-on-x64) but I am a bit confused because OpenHAB site says to put in all in /opt/openhab and the wiki says /etc/openhab is there any major issue there? I have put the repository in Ubuntu Software Center and tired to load it that way but I did not get any success. Here is where I am at right now I built a 16.04 Ubuntu server that will be used to operate all home automation. I create a user in my name but I think I should have created an “openhab” user since several sites mention that. I tired to follow what they had on the Get Starting part of OpenHaB but extracting the files to /opt/openhab but found I was missing a bunch of steps like MySQL, Samba, OpenSSH, and Mosquitto so no workie there. Then followed the Wiki but go to the bottom and no joy. I have rebuilt the server 10 times and frankly about to give up any help in the right direction would be great…

Thanks ahead

On Ubuntu you should install using apt-get. For openHAB 1.8.3 those instructions are b here

For openHAB 2 those instructions are here.

http://docs.openhab.org/installation/linux.html

In both cases the openhab use will be created as part of the install and everything gets put in the standard places fit debian based Linux like Ubuntu.

Rich,

Thanks I will try that. I did do it the first time by using apt-get but no joy in the end. I will go by these instruction then. I am glad to see a Openhab2 instruction I wanted to go that route but couldn't figure it out. 

Thanks again,
Greg

Ok going good so far but found I cannot do the Snapshot due to missing files.

There is a known bug with the snapshot build right now that is causing problems for apt. I too am awaiting that bug to be fixed soon.

Thanks everything is working now.

I am still unable to install snapshot for OH2 with apt. Has this been fixed or am I missing something?

I had the same issue and was told the snapshot was having problems. I tried it again and it loaded, so not sure what the issue was at that time.

What is the most simple way to install openhab 2 manual or package?

Hi

I just started my openhab 2 projekt. I installed Ubuntu 16 and also Java, and maybe OpenHab2, when i try to use ubunty seach I cant find any Ubunty, so maybe the installation did not work?

Shall I try to install Open hab again, and if so, what is the most simple way?

Looks like this
camilla@CamillasDator:~$ sudo systemctl restart openhab2.service
Failed to restart openhab2.service: Unit openhab2.service not found.
camilla@CamillasDator:~$

Package

http://docs.openhab.org/installation/linux.html#package-repository-installation

Okej

I did the guide again with no Joy, How do i check if OpenHab is installed? ( on Ubuntu )

You will have an /etc/openhab2 folder.

But if you followed the guide and Oh did not install you had an error somewhere along the line which would have been shown to you.

So what errors did you see?

Thanks

Yes I got that folder and I did nopt got any error messages. However when I tried to install Openhab when I hade win8 installed I got to a setup pager during the end off the install. But not when I installed OpenHab on Ubunty, and I dont understand how to login to my openHab so can try to setup my IP camera and do my basic setup.

http://<ip of machine>:8080

HTTP ERROR 500

Problem accessing /openhab.app. Reason:

Sitemap 'default' could not be found

Caused by:

org.openhab.ui.webapp.render.RenderException: Sitemap ‘default’ could not be found
at org.openhab.ui.webapp.internal.servlet.WebAppServlet.service(WebAppServlet.java:115)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:748)

I tried to create a sitemap file, but still have the same problem

try http://<ip>:8080/start/index

When you create a sitemap file, what did you put in the file and where did you put it?

Did you install the snapshot or 2.1?

Thanks

tryed this with no succes
http://192.168.0.14:8080/start/index

I belive i installed OpenHab 2.1? How can I check with version I am running?

And the answer to my other question?