Last active
August 15, 2017 19:40
-
-
Save HeatfanJohn/25d6bbbd12a17f9744d38406db91c471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz | |
tar xf noip-duc-linux.tar.gz | |
rm noip-duc-linux.tar.gz | |
cd noip-2.1.9-1/ | |
make | |
# Use sed to add the following after #! /bin/sh in debian.noip2.sh | |
sed -i -f - debian.noip2.sh <<EOF | |
2 i\\ | |
### BEGIN INIT INFO \\ | |
# Provides: no-ip Dynamic DNS IP update \\ | |
# Required-Start: $remote_fs $syslog \\ | |
# Required-Stop: $remote_fs $syslog \\ | |
# Default-Start: 2 3 4 5 \\ | |
# Default-Stop: 0 1 6 \\ | |
# Short-Description: Start daemon at boot time \\ | |
# Description: Enable service provided by daemon. \\ | |
### END INIT INFO \\ | |
EOF | |
sudo cp noip2 /usr/local/bin | |
sudo cp debian.noip2.sh /etc/init.d/noip2.sh | |
sudo ln -s /etc/init.d/noip2.sh /etc/rc2.d/S04noip2 | |
sudo chmod 755 /etc/init.d/noip2.sh | |
# sudo /etc/init.d/noip2.sh start | |
# ps -aef | grep noip2 | |
sudo /usr/local/bin/noip2 -F -C # create config -F for direct connect | |
sudo /usr/local/bin/noip2 -S # Show configuration | |
sudo /etc/init.d/noip2.sh start # Start noip2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment