Pytanie o vscode i ...
 
Powiadomienia
Wyczyść wszystko

[Rozwiązany] Pytanie o vscode i openhab

25 Wpisów
2 Użytkownicy
2 Reactions
2,827 Wyświetleń
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#1681]

Mam takie pytanie - edytowany plik items z poziomu vscode nie daje się zapisać ( brak uprawnień ). Otwieram lokalizację openhab2-conf, edytuję, zmieniam, ale nie zapiszę. Radzę sobie robiąc na koniec copy i wklejam przez putty po zalogowaniu openhabian:openhabian

Jakoś da się to poprawić ? 


 
Dodane : 22/04/2020 11:56 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Serio? nikt?....

ps. plik config zapisuję bez problemu, a np items już nie.

 

może ktoś coś ?


 
Dodane : 24/04/2020 10:06 am
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

jeśli masz problem  z zapisywaniem no to czy sprowadziłeś uprawnienia?

Napisz trochę więcej bo nikt nie zna Twojej konfiguracji.

  • edytujesz na tej samej maszynie co masz zainstalowany OH? na innej?
  • linux/window
  • jak linux serwer a edytujesz windows to jak dostajesz sie do /etc/openhab2/conf - samba
  • jak samba skonfigurowana? jakim użytkownikiem się łączysz przez sambe
  • kto jest właścicielem pliku *.items , jakie uprawnienia zapisu 

w ciemno to ciężko będzie doradzić

 


 
Dodane : 24/04/2020 11:02 am
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@adrian dzięki za wskazówki, bo dobiero zaczynam, więc nawet nie wiedziałem że to istotne, ale sytuacja wygląda tak:

- openhab chodzi na malinie z obrazu openhabian, czyli linux

- ja się łączę z windows

-nie wiem jak sambę skonfigurować - na raspberry czy windowsie z którego się łączę.

- jeśli dobrze zrozumiałem mam się dostać do pliku /etc/openhab2/conf - samba - o czym też nie wiedziałem i nie wiem po co - proszę o wskazówkę.

-nie konfigurowałem w ogóle samby zakładając że skoro wiszę openhab w dyskach sieciowych windows to jest ok

- i ostatnie pytanie już całkiem mnie pogrąży - nie wiem jak dokładnie sprawdzić kto jest właścicielem pliku items, stworzyłem go przez putty będąc zalogowany jako openhabian

Brodzę we mgle ale bardzo mi zależy żeby to ogarnąć.

 


 
Dodane : 24/04/2020 12:01 pm
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

na serwerze gdzie masz OH masz folder  /etc/openhab2

w tym folderze są wszystkie pliki konfiguracyjne

jego zawartość musisz otworzyć w Windows - czyli za'map'ować go jako dysk sieciowy

jak teraz otwierasz te pliki w Windows


 
Dodane : 24/04/2020 9:35 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@adrian dokładnie tak jak mówisz, ale tylko do odczytu. Jakby mi uprawnień brakowało.


 
Dodane : 24/04/2020 10:02 pm
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

wklej zawartość pliku /etc/samba/smb.conf


 
Dodane : 24/04/2020 10:14 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@adrian

login as: openhabian
openhabian@192.168.0.193's password:
Linux openHABianPi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Apr 24 18:20:46 2020 from 192.168.0.192

###############################################################################
############### openHABianPi ################################################
###############################################################################
## Ip = 192.168.0.193
## Release = Raspbian GNU/Linux 9 (stretch)
## Kernel = Linux 4.19.66-v7+
## Platform = Raspberry Pi 3 Model B Plus Rev 1.3
## Uptime = 0 day(s). 0:21:28
## CPU Usage = 0.25% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
## CPU Load = 1m: 0.00, 5m: 0.00, 15m: 0.02
## Memory = Free: 0.46GB (49%), Used: 0.49GB (51%), Total: 0.95GB
## Swap = Free: 0.09GB (100%), Used: 0.00GB (0%), Total: 0.09GB
## Root = Free: 53.91GB (96%), Used: 2.18GB (4%), Total: 58.50GB
## Updates = 0 apt updates available.
## Sessions = 1 session(s)
## Processes = 108 running processes of 32768 maximum processes
###############################################################################

Welcome to __ _____ ____ _
____ ____ ___ ____ / / / / | / __ )(_)___ _____
/ __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __ / / __ `/ __ \
/ /_/ / /_/ / __/ / / / __ / ___ |/ /_/ / / /_/ / / / /
\____/ .___/\___/_/ /_/_/ /_/_/ |_/_____/_/\__,_/_/ /_/
/_/
openHAB 2.5.4-1 (Release Build)

Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openHABianPi:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'

[20:13:33] openhabian@openHABianPi:~$
[20:13:47] openhabian@openHABianPi:~$ sudo nano /etc/openhab2/rules/home.rules
[sudo] password for openhabian:
[20:14:11] openhabian@openHABianPi:~$ sudo nano /etc/samba/smb.conf
GNU nano 2.7.4 File: /etc/samba/smb.conf

#
# 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


 
Dodane : 24/04/2020 10:18 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

i w międzyczasie odłączyłem dysk i prubuje ponownie go zmpować ale nie przyjmuje poświadczeń login openhabian i hasło jakim się loguje prze putty


 
Dodane : 24/04/2020 10:19 pm
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@lukaszbeben to raczej nie jest cala zawartość tego pliku konfiguracyjnego smb.conf - kawałek nagłówka wkleiłeś, ściągnij go może, spakuj do zip i załącz


 
Dodane : 24/04/2020 10:22 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Teraz już cała, źle mi się zaznaczyło wcześniej

 

 

login as: openhabian
openhabian@192.168.0.193's password:
Linux openHABianPi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Apr 24 18:20:46 2020 from 192.168.0.192

###############################################################################
############### openHABianPi ################################################
###############################################################################
## Ip = 192.168.0.193
## Release = Raspbian GNU/Linux 9 (stretch)
## Kernel = Linux 4.19.66-v7+
## Platform = Raspberry Pi 3 Model B Plus Rev 1.3
## Uptime = 0 day(s). 0:21:28
## CPU Usage = 0.25% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
## CPU Load = 1m: 0.00, 5m: 0.00, 15m: 0.02
## Memory = Free: 0.46GB (49%), Used: 0.49GB (51%), Total: 0.95GB
## Swap = Free: 0.09GB (100%), Used: 0.00GB (0%), Total: 0.09GB
## Root = Free: 53.91GB (96%), Used: 2.18GB (4%), Total: 58.50GB
## Updates = 0 apt updates available.
## Sessions = 1 session(s)
## Processes = 108 running processes of 32768 maximum processes
###############################################################################

Welcome to __ _____ ____ _
____ ____ ___ ____ / / / / | / __ )(_)___ _____
/ __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __ / / __ `/ __ \
/ /_/ / /_/ / __/ / / / __ / ___ |/ /_/ / / /_/ / / / /
\____/ .___/\___/_/ /_/_/ /_/_/ |_/_____/_/\__,_/_/ /_/
/_/
openHAB 2.5.4-1 (Release Build)

Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openHABianPi:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'

[20:13:33] openhabian@openHABianPi:~$
[20:13:47] openhabian@openHABianPi:~$ sudo nano /etc/openhab2/rules/home.rules
[sudo] password for openhabian:
[20:14:11] openhabian@openHABianPi:~$ sudo nano /etc/samba/smb.conf
GNU nano 2.7.4 File: /etc/samba/smb.conf

;[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

 


 
Dodane : 24/04/2020 10:28 pm
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

na pewno to jest cala zawartosc?


 
Dodane : 24/04/2020 10:31 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@adrian tak. wyciągnął bym  go z windowsa ale nie mogę teraz podłączyć wogóle tego dysku. próbuje login openhabian i hasło takie jak łączę się putty ale nie działa...


 
Dodane : 24/04/2020 10:34 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

i jeszcze jedną rzecz zauważyłem. Zmapowałem z powrotem dyski ale na defoltowym haśle openhaba, a nie na tym które mam teraz ustawione. Może to jest problem, że mapuje dyski jako loginn:openhabian passw:openhabian a w rzeczywistości ustawione mam inne hasło w raspberry ?


 
Dodane : 24/04/2020 10:59 pm
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

nie ma znaczenia w zasadzie jak mapujesz - wazna jest konfiguracja z mapowanych folderów - załącz plik smb.conf 


 
Dodane : 24/04/2020 11:01 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@adrian z poziomu windows nie mam dostępu do katalogu ect, a z wiersza poleceń linux w malinie nie mam pojęcia jak wyciągnąć ten plik więc chyba utknęliśmy ...


 
Dodane : 24/04/2020 11:35 pm
adrian
(@adrian)
Wpisów: 4083
Szefu Admin Zasłużony dla Forum, Patron Strony
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

to sprawdź jeszcze raz czy skopiowałeś całość tego pliku - strzałka górka dół

może po'google'aj i zrób sobie jakiś podstawowy kurs z linuxa bo bida będzie


 
Dodane : 24/04/2020 11:41 pm
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@adrian zaraz to ogarnę 🙂


 
Dodane : 25/04/2020 12:02 am
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

...albo nie tak zaraz. Ogarnę to i podeślę - pewno jutro

Dzięki


 
Dodane : 25/04/2020 12:28 am
(@lukaszbeben)
Wpisów: 73
Kontrybutor
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Jak już skopiowałem smb.conf na usb, to zaś Windows krzyczy że zły format plików i nie mogę otworzyć usb, więc ja uczę się dalej linuxa, ale w między czasie skopiowałem jeszcze raz całą zawartość SAMBY do pliku txt. Patrz załącznik.


 
Dodane : 25/04/2020 11:58 am
Strona 1 / 2
Udostępnij: