Skip to content

Instantly share code, notes, and snippets.

@progerio
Created August 20, 2021 16:43
Show Gist options
  • Save progerio/0655309107d20350c7b9779baad6a8b3 to your computer and use it in GitHub Desktop.
Save progerio/0655309107d20350c7b9779baad6a8b3 to your computer and use it in GitHub Desktop.
Script install no-ip2 ubuntu raspberry PI 3
#!/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