Access Root?

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.

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.

https://www.makeuseof.com/tag/a-quick-guide-to-get-started-with-the-linux-command-line/

  1. log in with putty to openhabian
  2. cd /var/lib/openhab2
  3. cat uuid
  4. cat openhabcloud/secret

Does openHABian also share the userdata folder via samba? I thought it was only the conf folder.

Good question, I have never used openHABian. :sunglasses:

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 …

[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
  1. works
  2. works
  3. works
  4. works

Openhab offline… mhhhh