Skip to content

Instantly share code, notes, and snippets.

@daxxog
Last active February 6, 2019 03:41
Show Gist options
  • Save daxxog/4597895 to your computer and use it in GitHub Desktop.
Save daxxog/4597895 to your computer and use it in GitHub Desktop.
#!/bin/bash
#curl -L https://gist.github.com/raw/4597895/noip-install.sh | sh
#get gcc toolchain
sudo apt-get update
sudo apt-get install make gcc -y
#make a dev directory and switch to it
cd ~
mkdir dev
cd dev
#grab and install the systemd service config
wget https://gist.githubusercontent.com/daxxog/36d1dc988e5923cdaabd03b47aaa3656/raw/noip2.service
sudo cp ./noip2.service /etc/systemd/system/noip2.service
#get no-ip and build it
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
cd $(ls | grep noip-2)
make
echo --------------------
echo !!! please run !!!
echo --------------------
echo cd $(pwd)
echo sudo make install
echo sudo systemctl enable noip2.service
echo sudo systemctl enable --now noip2.service
echo sudo systemctl status noip2.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment