Witam wszystkich
od kilku dni bawie sie raspberry , niestety jestem w linuxie zielony ...
za pomoca tutoriali udalo mi sie odpalic i zaczac zabawe OH w wersjii 1.8 ,malutkie sukcesy ...jakis przelacznik juz dziala cos sie wyswietla . Radosc pelna he he
A teraz widze ,iz jest wersja 2.0 ,ktora moim zdaniem wyglada znacznie lepiej wiec co , zamiast tracic czas na starej wersjii moze by tak odrazu meczyc nowa ...ale ....
Nie moge nigdzie znalezc krok po kroku jak zainstalowac nowa wersje .... komendy sie roznia tzn linki i jakos nie idzie mi ich podmiana ...
Moze ktos jest w stanie podpowiedziec jak ma wygladac instalacja OH2.0 ?
oczywiscie na raspberry pi
sposob na instalacje starego OH :
sudo raspi-config
Expand the filesystem; and from the advanced menu, change the memory split to 16. When you’re done, restart, and as good practice, run a full update
sudo apt-get update
sudo apt-get upgrade
The easier way to install the OpenHAB runtime is via apt-get, but first we need to add a secure key and the new repository:
wget -qO - '
https://bintray.com/user/downloadSubjectPublicKey?username=openhab' |sudo apt-key add -
echo "deb
http://dl.bintray.com/openhab/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/openhab.list
sudo apt-get update
sudo apt-get install openhab-runtime
sudo update-rc.d openhab defaults
Curiously, everything was installed as owned by “root”. We need to fix that with the following commands.
sudo chown -hR openhab:openhab /etc/openhab
sudo chown -hR openhab:openhab /usr/share/openhab
Next, we’ll install Samba and share the configuration and user folders – this will make it easier to install add-ons and change the sitemap remotely.
sudo apt-get install samba samba-common-bin
sudo nano /etc/samba/smb.conf
Change the workgroup name if needed, but otherwise enable WINS support:
wins support = yes
(you’ll need to uncomment the line, and change no to yes)
then add the following to the share definitions section (scroll all the way down to the bottom of the long file):
[OpenHAB Home]
comment= OpenHAB Home
path=/usr/share/openhab
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
[OpenHAB Config]
comment= OpenHAB Site Config
path=/etc/openhab
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
I also commented out the Printers section. I’ve made two shares, since the configuration files are actually stored separately to the add-ons.
Save and exit. We finally need to set a Samba password for the openhab user:
sudo smbpasswd -a openhab
I’d suggest “openhab” as the password just for ease of use, but it doesn’t really matter.
Thanks to reader David L – it appears the method of restarting Samba has changed in the latest Raspian. Here’s the updated instructions:
sudo update-rc.d smbd enable
sudo update-rc.d nmbd enable
sudo service smbd restart
After restarting Samba (older installs use sudo service samba restart), test you can access the shared drive. It might not be auto-discovered on a Mac; but you can use the Finder -> Go -> Connect to Server and the address
smb://openhab@raspberrypi.local
Authenticate with username openhab and your chosen password, then open up both your shares to have a look around. You should even be able to open
http://raspberrypi.local:8080/ in your web browser, but you’ll be met with an error because we haven’t create a sitemap yet. That’s normal.