Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with free DDNS service (DuckDNS) #165

Open
viniciusvillas opened this issue Jun 28, 2021 · 1 comment
Open

Integration with free DDNS service (DuckDNS) #165

viniciusvillas opened this issue Jun 28, 2021 · 1 comment

Comments

@viniciusvillas
Copy link

viniciusvillas commented Jun 28, 2021

Here's a quick & dirty debug_cmd.sh that I've put together to update my DuckDNS (DDNS) entry:

#!/bin/sh

# Enable telnet (wait until after p2pcam kills it and then start it again).
(sleep 60 && /usr/sbin/telnetd)&

# Always disable the voices.
if [ -f "/home/VOICEON" ]; then rm /home/VOICEON; fi
if [ ! -f "/home/VOICEOFF" ]; then touch /home/VOICEOFF; fi

# Setup curl.
export LD_LIBRARY_PATH=/mnt/mmc01/0/curl/:$LD_LIBRARY_PATH

# Enable DDNS to update DuckDNS hourly.
while true; do echo url="https://www.duckdns.org/update?domains=<domain>&token=<token>&ip=" | ./curl/curl -k -o ./duckdns.log -K - ; sleep 3600 ; done &

The curl binary and dependencies I got from this repository.

I've also changed the RTSP password by modifying the parameter passwd = <password> in the file /bak/hwcfg.ini (in this firmware version 5.5.4.0728, the files are automatically copied from /bak/* to /home/* after every reboot).

The only thing that remains for me to do is changing the root password (currently, cxlinux) for the telnet connection. Since / is mounted as a read-only squashfs, I can't write to /etc/passwd. 😕

@viniciusvillas
Copy link
Author

Just found a way to make /etc/passwd writable :)

mount --bind ./files/passwd /etc/passwd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant