Page 1 of 2

SSL

Posted: Mon Apr 16, 2018 10:22 am
by pzygmunt
Od najnowszej wersji nie trzeba kompilować supla-dev z dedykowanym SSL-em.
Wystarczy użyć domyślnego SSL-a z zainstalowanej dystrybucji.

Re: SSL

Posted: Mon Apr 16, 2018 4:32 pm
by Sibikk
Cześć
@Pzygmunt czyli działamy tak?

Code: Select all

sudo rm /etc/init.d/supla-dev
 sudo rm /usr/sbin/supla-dev
 
git clone https://github.com/SUPLA/raspberry
cp -r raspberry/ext01/* /
rm -r raspberry


git clone https://github.com/SUPLA/supla-core
cd supla-core/supla-dev/Release
make clean
make
cp supla-dev /usr/sbin/
cd ../../../
rm -r supla-core

Re: SSL

Posted: Mon Apr 16, 2018 5:20 pm
by pzygmunt
Sibikk wrote:
Mon Apr 16, 2018 4:32 pm
Cześć
@Pzygmunt czyli działamy tak?

Code: Select all

sudo rm /etc/init.d/supla-dev
 sudo rm /usr/sbin/supla-dev
 
git clone https://github.com/SUPLA/raspberry
cp -r raspberry/ext01/* /
rm -r raspberry


git clone https://github.com/SUPLA/supla-core
cd supla-core/supla-dev/Release
make clean
make
cp supla-dev /usr/sbin/
cd ../../../
rm -r supla-core
Tylko

Code: Select all

git clone https://github.com/SUPLA/supla-core
cd supla-core/supla-dev/Release
make clean
make
cp supla-dev /usr/sbin/
cd ../../../
rm -r supla-core

Re: SSL

Posted: Wed May 16, 2018 6:33 pm
by Sibikk
Wziąłem się za ogarnianie bo wszystko mam offline :? ale cały czas mam na rpi0 problem

Code: Select all

supla-dev: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

@pzygmunt Coś powinienem dodatkowo usunąć/ zmienić/ dodać po za

Code: Select all

git clone https://github.com/SUPLA/supla-core
cd supla-core/supla-dev/Release
make clean
make
cp supla-dev /usr/sbin/
cd ../../../
rm -r supla-core

Re: SSL

Posted: Wed May 16, 2018 7:49 pm
by fracz
Na samym początku spróbuj dodać

Code: Select all

apt-get install libssl-dev

Re: SSL

Posted: Thu May 17, 2018 6:47 am
by pzygmunt
Tu masz gotową binarkę. Wystarczy, że uruchomisz

Code: Select all

curl -sk https://raw.githubusercontent.com/SUPLA/raspberry/master/scripts/dev_bin_update.sh |sudo sh

Re: SSL

Posted: Thu May 17, 2018 8:06 am
by Sibikk
Panowie czy to ze mną coś nie teges czy ta malina leci w kulki, zrobiłem wszystko po kolei od nowa a mimo to cały czas nie łączy z chmurą.

Code: Select all

pi@raspberrypi:~ $ curl -sk https://raw.githubusercontent.com/SUPLA/raspberry/master/scripts/dev_bin_update.sh |sudo sh
--2018-05-17 07:49:51--  https://github.com/SUPLA/raspberry/raw/master/ext01/usr/sbin/supla-dev
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/SUPLA/raspberry/master/ext01/usr/sbin/supla-dev [following]
--2018-05-17 07:49:52--  https://raw.githubusercontent.com/SUPLA/raspberry/master/ext01/usr/sbin/supla-dev
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.12.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.12.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127824 (125K) [application/octet-stream]
Saving to: ‘supla-dev’

supla-dev           100%[===================>] 124.83K   576KB/s    in 0.2s    

2018-05-17 07:49:53 (576 KB/s) - ‘supla-dev’ saved [127824/127824]

[ ok ] Stopping supla-dev (via systemctl): supla-dev.service.
[ ok ] Starting supla-dev (via systemctl): supla-dev.service.

Location id i supla-dev.cfg uzupełnione
W last sate - disconected

Re: SSL

Posted: Thu May 17, 2018 8:31 am
by pzygmunt
Uruchom ręcznie i zobacz co widać w konsoli

Re: SSL

Posted: Thu May 17, 2018 8:40 am
by Sibikk
pzygmunt wrote:
Thu May 17, 2018 8:31 am
Uruchom ręcznie i zobacz co widać w konsoli

Code: Select all

i@raspberrypi:~ $ supla-dev start
supla-dev: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Re: SSL

Posted: Thu May 17, 2018 8:58 am
by pzygmunt
Uruchom jakiegoś temviewer-a i wyślij mi dane na priv