Created
August 20, 2021 16:43
-
-
Save progerio/0655309107d20350c7b9779baad6a8b3 to your computer and use it in GitHub Desktop.
Script install no-ip2 ubuntu raspberry PI 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Donwload no-ip2 software | |
donwload() { | |
cd /usr/local/src/ | |
sudo wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz | |
} | |
# Unzip tar | |
unzip() { | |
cd /usr/local/src/noip-2.1.9-1/ | |
sudo tar xf noip-duc-linux.tar.gz | |
} | |
# Install | |
install() { | |
sudo make && make install | |
} | |
# Configure | |
configure() { | |
/usr/local/bin/noip2 -C | |
systemctl enable noip2.service | |
} | |
# Run | |
run() { | |
#/usr/local/bin/noip2 | |
systemctl start noip2.service | |
} | |
# Main function | |
main() { | |
donwload | |
unzip | |
install | |
configure | |
run | |
echo -n "done"; | |
cd ~; | |
exit; | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment