# \[SOLVED\] How to install MQTT on openHAB2

**URL:** <https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859>\
**Category:** Beginners\
**Tags:** openhab2, mqtt\
**Created:** [January 9, 2017, 11:59am UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859 "2017-01-09T11:59:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![djhosken](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@djhosken](https://community.openhab.org/u/djhosken)\
**Post date:** [January 9, 2017, 11:59am UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/1 "2017-01-09T11:59:53Z")

</div>

Hi, I have installed the beta 5 release of OH2 on my Ubuntu server. It is working, but I can not manage to install MQTT binding. I read many posts, but just can not get it to work. According to this post([MQTT Setup - #8 by weswitt](https://community.openhab.org/t/mqtt-setup/11540/8)), I should see it in in my PaperUI. But, it is not listed there? I also tried to manually install it by copying the MQTT binding JAR files to my “/usr/share/openhab2/addons” folder, but this causes other errors to appear in log file. Seems like the simplest method should be to use my Paper UI. I can see heaps of other bindings in Paper UI, but seems like all the old v1.xx bindings are not there.

---

<div class="post-metadata">

**Author:** ![sihui](https://community.openhab.org/user_avatar/community.openhab.org/sihui/32/55674_2.png) [@sihui](https://community.openhab.org/u/sihui)\
**Post date:** [January 9, 2017, 12:24pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/2 "2017-01-09T12:24:45Z")

</div>

> [@djhosken](#):
>
> I should see it in in my PaperUI

Go to PaperUI → Configuration → System and activate “Access Remote Repositories” and “Include Legacy 1.x Bindings” and you should see them all …

---

<div class="post-metadata">

**Author:** ![djhosken](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@djhosken](https://community.openhab.org/u/djhosken)\
**Post date:** [January 9, 2017, 10:47pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/3 "2017-01-09T22:47:41Z")

</div>

Hi, that was one of the first things I did. But, it does not change anything. In PaperUI, when I look at available bindings, nearly all of them are “2.0.0.b5” only. There is only about 8 ones that are “0.9.0.b2”. I had the snapshop version of OH2 installed. I uninstalled it, and installed the Beta 5 version, but exactly the same. I there something I could look for in my configuration files?

---

<div class="post-metadata">

**Author:** ![djhosken](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@djhosken](https://community.openhab.org/u/djhosken)\
**Post date:** [January 10, 2017, 6:00am UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/4 "2017-01-10T06:00:06Z")

</div>

I got it to work. My installation package was configured for minimal. After changing it in “addons.cfg”, it now works:  
`package = standard`

---

<div class="post-metadata">

**Author:** ![Stan](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@Stan](https://community.openhab.org/u/Stan)\
**Post date:** [January 13, 2017, 9:46pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/5 "2017-01-13T21:46:55Z")

</div>

OMG… Thank you so much!.. 🙂

---

<div class="post-metadata">

**Author:** ![shourya\_kunndan\_saha](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@shourya\_kunndan\_saha](https://community.openhab.org/u/shourya_kunndan_saha)\
**Post date:** [May 7, 2017, 6:12pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/6 "2017-05-07T18:12:20Z")

</div>

This is so helpful. However, I did spend sometime to find the path for “addons.cfg” (duh)! So, I thought of sharing it with any other Noob like me:  
/etc/openhab2/services/addons.cfg

---

<div class="post-metadata">

**Author:** ![mbuurmei](https://community.openhab.org/user_avatar/community.openhab.org/mbuurmei/32/62817_2.png) [@mbuurmei](https://community.openhab.org/u/mbuurmei)\
**Post date:** [April 22, 2018, 2:24pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/7 "2018-04-22T14:24:49Z")

</div>

These cfg files are created by the openhab account. Any idea how to edit these while they remain owned by the openahb account?

---

<div class="post-metadata">

**Author:** ![sihui](https://community.openhab.org/user_avatar/community.openhab.org/sihui/32/55674_2.png) [@sihui](https://community.openhab.org/u/sihui)\
**Post date:** [April 22, 2018, 2:51pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/8 "2018-04-22T14:51:27Z")

</div>

> [@mbuurmei](#):
>
> Any idea how to

Create a Samba share  
[https://docs.openhab.org/installation/linux.html#network-sharing](https://docs.openhab.org/installation/linux.html#network-sharing)  
and use [Visual Studio Code with the openHAB VSC extension](https://docs.openhab.org/configuration/editors.html#openhab-vscode) to edit your config files.

---

<div class="post-metadata">

**Author:** ![Paresh](https://community.openhab.org/user_avatar/community.openhab.org/paresh/32/38248_2.png) [@Paresh](https://community.openhab.org/u/Paresh)\
**Post date:** [June 10, 2018, 1:34pm UTC](https://community.openhab.org/t/solved-how-to-install-mqtt-on-openhab2/19859/9 "2018-06-10T13:34:33Z")

</div>

Thanks so much djhosken. I was about to reinstall the whole thing before I saw this and…problem solved!
