Skip to content

Instantly share code, notes, and snippets.

@jpelaezClub
Forked from daz/install-noip-duc.sh
Created August 12, 2018 09:11
Show Gist options
  • Save jpelaezClub/162a36ebe0db21154b33f9d7fb412573 to your computer and use it in GitHub Desktop.
Save jpelaezClub/162a36ebe0db21154b33f9d7fb412573 to your computer and use it in GitHub Desktop.
Script to install and configure no-ip client on Ubuntu/Debian
LOGIN="test@example.com"
PASSWORD=MyPassword
INTERFACE=wlan0
INTERVAL=30
mkdir -p "$HOME/src/noip"
cd "$HOME/src/noip"
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar zxf noip-duc-linux.tar.gz
cd noip-2.1.9-1
make clean
make
sudo cp noip2 /usr/local/bin/noip2
sudo chmod 700 /usr/local/bin/noip2
sudo chown root:root /usr/local/bin/noip2
# Run on boot
sudo cp debian.noip2.sh /etc/init.d/noip2
sudo chmod +x /etc/init.d/noip2
sudo update-rc.d noip2 defaults
# Config no-ip
killall noip2
sudo rm /usr/local/etc/no-ip2.conf
sudo noip2 -C -u$LOGIN -p$PASSWORD -I$INTERFACE -U$INTERVAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment