Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $EUID -ne 0 ]]; then
- echo "Please run this script as root. Type sudo bash ./install-duc.sh into your terminal"
- echo "and enter your password when prompted to invoke the script properly. Exiting..."
- exit 1
- else
- wget -O /usr/local/src/noip-duc-linux.tar.gz http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar -xzvf /usr/local/src/noip-duc-linux.tar.gz /usr/local/src
- cd /usr/local/src/$(ls /usr/local/src | grep noip-2)
- if ! [ -x $(which make) ]; then
- echo "Make not found. Installing binutils."
- apt -y install build-essential
- make && make install
- else
- make && make install
- fi
- echo "Done. You may now configure the No-IP client by typing /usr/local/bin/noip2 -C in your terminal."
- echo "After the configuration, type /usr/local/bin/noip2 into your terminal to start the client as a daemon."
- fi
Add Comment
Please, Sign In to add comment