openHABian installation offline?

Hi, I have a frustrating problem.
i downloaded img installation file and also xz file…

the problem is, I can not access zulu, bintray and oracle from my country!!!
so when i try to install img, it fails.
I try to login ssh and setup a vpn connection and install from openhabian-config…
i reach the ip:8080 screen but after choosing expert…it took me a lot of time waiting and nothing changes…

I try xz file…but in that because it follows a procedure … i can not set up vpn connection…so it fails at zulu…
:cry:
i dont know what to do…is there another method or offline one?
i think xz file is offline installation but it check the repositories :cry:
txn a lot

is there a way to add
sudo /sbin/modprobe tun
sudo apt-get install openconnect
to main xz file? or other ways?

This sucks big time… :frowning:

Since it seems that you are an advanced user of Linux, I recommend the following:

a) Deploy vanilla Raspbian Jessie Lite
b) Setup your VPN tunnel on the Raspbian
c) Deploy Zulu (over VPN)
d) Deploy OH2 using apt-get (over VPN)

Optionally, you can deploy Zulu and OH2 manually:
OH2 snapshot
Zulu Embedded ARM 32bit HardFloat

(of course, you will need to download all of the above manually on your PC, using your VPN connection and then deploy on the Raspberry Pi)

I don’t use openHABian and I don’t know if you will be able to establish a VPN tunnel in advance of the installation steps…

1 Like

Hey @Javad_Effat_doost,
that’s not cool :frowning: makes the process a lot less hassle-free…
I would @Dim’s suggestion. As you clearly know what you are doing, just do the setup manually… however with manually I mean this: http://docs.openhab.org/installation/openhabian.html#manual-setup

Install Raspbian Lite, then set up the VPN connection, then clone and execute the openHABian configuration tool as described. The rest should work out just fine :wink: Good luck!!

1 Like

thanks a lot
i followed your instructions.
a) Deploy vanilla Raspbian Jessie Lite
b) Setup your VPN tunnel on the Raspbian
c) Deploy Zulu1 (over VPN)
followed by http://docs.openhab.org/installation/openhabian.html#manual-setup
and do the update, upgrade, basic setup, …openhab2

when I ssh, i can see openhabian

but i can not access it in local browser

i tried these two command which i found on searching
what can I do?
thanks
edit: i also intall addons

Does your /var/log/openhab2/openhab.log have any errors?
Also: Check the output of the java -version command.
If Zulu is not appearing, you may have to set Zulu as default with update-alternatives --config java
Try also a restart of the OH2 service (systemctl restart openhab2) and let it run for 2-3 minutes. It takes sometime after startup to load the UIs.

Tip: To avoid using sudo in front of every command, switch from the user pi to root with sudo su. Then you can execute commands directly as root.

1 Like

tnx,
log is empty.


and zulu auto is default.
i did restart openhab2 and wait…but nothing changes.
:cry:

I install agian, this time with java 8…openhab2, basic setup
just run these …
am i doing it right?
1.java
2.openhab2
3.basic setup
4.upgrade
i did the basic setup last time, first…
i am a little confused here

checking log file:

2017-05-25 09:17:21.136 [ERROR] [org.eclipse.smarthome.core.audio ] - FrameworkEvent ERROR - org.eclipse.smarthome.core.audio
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.audio [99]
Unresolved requirement: Import-Package: org.osgi.service.http

    at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

2017-05-25 09:17:21.187 [ERROR] [org.eclipse.smarthome.core.voice ] - FrameworkEvent ERROR - org.eclipse.smarthome.core.voice
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.voice [108]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
-> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name=“org.eclipse.smarthome.core.audio”; bundle-version=“0.9.0.b4”; version="0.0.0"
org.eclipse.smarthome.core.audio [99]
Unresolved requirement: Import-Package: org.osgi.service.http

    at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

2017-05-25 09:17:21.196 [ERROR] [org.eclipse.smarthome.io.javasound ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.javasound
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.javasound [111]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
-> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name=“org.eclipse.smarthome.core.audio”; bundle-version=“0.9.0.b4”; version="0.0.0"
org.eclipse.smarthome.core.audio [99]
Unresolved requirement: Import-Package: org.osgi.service.http

    at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

2017-05-25 09:17:21.207 [ERROR] [org.eclipse.smarthome.io.rest.voice ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.voice
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.rest.voice [119]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.voice
-> Export-Package: org.eclipse.smarthome.core.voice; bundle-symbolic-name=“org.eclipse.smarthome.core.voice”; bundle-version=“0.9.0.b4”; version="0.0.0"
org.eclipse.smarthome.core.voice [108]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
-> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name=“org.eclipse.smarthome.core.audio”; bundle-version=“0.9.0.b4”; version="0.0.0"
org.eclipse.smarthome.core.audio [99]
Unresolved requirement: Import-Package: org.osgi.service.http

    at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

2017-05-25 09:17:21.231 [ERROR] [org.eclipse.smarthome.io.webaudio ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.webaudio
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.webaudio [121]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
-> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name=“org.eclipse.smarthome.core.audio”; bundle-version=“0.9.0.b4”; version="0.0.0"
org.eclipse.smarthome.core.audio [99]
Unresolved requirement: Import-Package: org.osgi.service.http

    at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

Hey,
the menu as you are seeing it right now is not ideal for your needs. I’ve actually an improved one in the pipeline but time has been short the last couple of weeks :sob: https://github.com/openhab/openhabian/pull/134/files

The installation of zulu was successful as we can see from your screenshot. So let’s go with this. the following steps should do it:

Update, Upgrade, Basic Setup, Zulu, openHAB, Samba, frontail (optional), Basic Setup (again)

Nevertheless, openHAB should have started the way you’ve set it up. Reboot and restart the openHAB service, wait a few minutes. If indeed nothing comes up, please check the openhab.log as well as /var/log/daemons.log.

Regarding the log you have posted: Did you go with the snapshot version? Maybe try the stable.

1 Like

tnx a lot
i m totally frustrated!
I did everything you said with the orders.
after installation …I did reboot raspberry and restart openhab service
the openhabian logo is shown in terminal ssh but in browser nothing comes up!
i check deamons .log
but it is empty
what can i do?:cry:
is this normal? because im doing every thing right I think
edit: I also check the ports, there is no 8080 port in the list!

Hello,

What do you type in your browser to open openhab? Try the ip of the Raspberry with 8080

hello i am using ip:8080

Did you try http:// raspberrypi:8080 or http://openhab2:8080

1 Like

tnx, I tried both of them now and same thing happens.
maybe it is sth with openhab on jessie the cause problem, i idont know :cry:

Wen your in ssh let openhabian start then enter $sudo su then netstat -nlp | grep 8080 what does it says it should be someting like this
tcp6 0 0 :::8080 :::* LISTEN 908/java

1 Like

tnx, it returns nothing
look at the images below:

Try to install java with:$ openhabian-config then update and upgrade system and reboot then look if this changes netstat -nlpt

1 Like

Otherwise, it’d be good to post the results of the following:

sudo service openhab2 status
sudo journalctl -f -u openhab2.service
sudo tail /var/log/openhab2/openhab2.log

If it’s a general Linux problem, I may be able to help.

1 Like

did not change antthing

tnx, here are the screenshots of three commands: