Bastian_H
(Bastian H )
January 12, 2018, 5:07pm
1
Hello,
i want to start using openhab Cloud and need to get the UUID and secret… I know where to find them from the Wiki but what i dont know is how to get access to them… from where can i get these without unplugging the SD Card from my Pi? Logging in with putty and “openhabian” doesnt leave to much options once there…
Sorry, totally new to Linux so no idea about the commands…
Any help would be appreciated.
sihui
(SiHui)
January 12, 2018, 5:42pm
2
Bastian_H:
“openhabian”
If you are using openHABian a samba server is included, you just need to enable it via openHABian config and can easily access those files via windows explorer.
rlkoshak
(Rich Koshak)
January 12, 2018, 5:45pm
3
log in with putty to openhabian
cd /var/lib/openhab2
cat uuid
cat openhabcloud/secret
Does openHABian also share the userdata folder via samba? I thought it was only the conf folder.
sihui
(SiHui)
January 12, 2018, 5:49pm
4
Good question, I have never used openHABian.
Edit: no, it does not, only the conf folder … sorry
https://docs.openhab.org/installation/linux.html#mounting-locally
2nd Edit: from the code it does (if enabled), so the docs are a bit misleading …
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
# - When such options are commented with ";", the proposed setting
# differs from the default Samba behaviour
# - When commented with "#", the proposed setting is the default
# behaviour of Samba but the option is considered important
# enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
This file has been truncated. show original
[openHAB-share]
comment=openHAB2 combined folders
path=/srv
writeable=yes
public=no
create mask=0664
directory mask=0775
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
delete veto files = yes
[openHAB-conf]
comment=openHAB2 site configuration
path=/etc/openhab2
writeable=yes
public=no
create mask=0664
directory mask=0775
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
delete veto files = yes
;[openHAB-userdata]
; comment=openHAB2 userdata
; path=/var/lib/openhab2
; writeable=yes
; public=no
; create mask=0664
; directory mask=0775
; veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
; delete veto files = yes
;[openHAB-sys]
; comment=openHAB2 application
; path=/usr/share/openhab2
; writeable=yes
; public=no
; create mask=0664
; directory mask=0775
; veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
; delete veto files = yes
;[openHAB-log]
; comment=openHAB2 log files
; path=/var/log/openhab2
; writeable=yes
; public=no
; create mask=0664
; directory mask=0775
; veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
; delete veto files = yes
;[var-www]
; comment=webserver files
; path=/var/www
; writeable=yes
; only guest=no
; public=no
; create mask=0664
; directory mask=0775
; veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
; delete veto files = yes
;[opt]
; comment=opt folder
; path=/opt
; writeable=yes
; only guest=no
; public=no
; create mask=0664
; directory mask=0775
; veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
; delete veto files = yes
# vim: filetype=samba
1 Like