Criterion4101

Script to install No-IP DUC for Linux

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