WDCommunity / wdpksrc

Cross compilation framework to create native packages for the Western Digital My Cloud
BSD 3-Clause "New" or "Revised" License
221 stars 58 forks source link

Installing on OS5 #95

Open ISQman opened 3 years ago

ISQman commented 3 years ago

Hello, i tryed to install syncthing on my wd cloud os 5, but there is no user root on ssh and without editing your script it not possible to install. The best way what i found - to change TARGET="$2" to TARGET="sshd@$2" and BINARY=$(find packages/$PACKAGE -name "${MODEL}${PACKAGE}.bin" | sort | tail -n1), also after install - need to login to the device and restart service manually, after it works. Also here logs:

./build_and_install.sh syncthing 172.16.0.123 WDMyCloud Building syncthing version 1.11.1 ERROR: unknown model_name: WDMyCloudEX4 ERROR: unknown model_name: WDMyCloudEX2 WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. ERROR: unknown model_name: WDMyCloudMirrorGen2 WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. *** WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. Move binaries Bundle sources Select model WDMyCloud Created packages/syncthing/WDMyCloud_syncthing_1.11.1.bin

Upload the app packages/syncthing/WDMyCloud_syncthing_1.11.1.bin sshd@172.16.0.123's password: WDMyCloud_syncthing_1.11.1.bin 100% 15KB 3.5MB/s 00:00

Install the app sshd@172.16.0.123's password: Warning: this usually doesn't work! sshd@172.16.0.123's password: *** WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. SUCCESS!

Run test hooks grep: /usr/local/apache2/conf/httpd.conf: No such file or directory nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server... nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server... nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server... nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server... nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server... nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server... nc: getaddrinfo for host "sshd@172.16.0.123" port 8384: Name or service not known Waiting for server...

Server become reachable only after i restarted it from web gui.

JediNite commented 3 years ago

@ISQman,

Why not use something like what is mentioned in https://unix.stackexchange.com/questions/344903/how-to-force-user-in-ssh-config-file to override the user that is logged into on the destination rather than updating how the "$2" variable works. It looks to have broken other stuff.

JediNite