retrography
4/12/2015 - 12:38 AM

A script that installs and sets up NO-IP's dynamic IP updater engine on Ubuntu

A script that installs and sets up NO-IP's dynamic IP updater engine on Ubuntu

#!/bin/bash

# Usage: bash noip2setup.sh HOST USERNAME PASSWORD

echo noip2 noip2/forcenatoff select false | sudo /usr/bin/debconf-set-selections
echo noip2 noip2/matchlist select $1 | sudo /usr/bin/debconf-set-selections
echo noip2 noip2/netdevice select  | sudo /usr/bin/debconf-set-selections
echo noip2 noip2/password select $3 | sudo /usr/bin/debconf-set-selections
echo noip2 noip2/updating select 30 | sudo /usr/bin/debconf-set-selections
echo noip2 noip2/username select $2 | sudo /usr/bin/debconf-set-selections
cd ~
curl -O http://launchpadlibrarian.net/26258014/noip2_2.1.9-3_amd64.deb && sudo dpkg -i noip2_2.1.9-3_amd64.deb && rm noip2_2.1.9-3_amd64.deb