Created
May 3, 2016 07:01
-
-
Save daz/ae4c7a8c21e9e447be3d97fe54d9ec92 to your computer and use it in GitHub Desktop.
Script to install and configure no-ip client on Ubuntu/Debian
This file contains 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
LOGIN="test@example.com" | |
PASSWORD=MyPassword | |
INTERFACE=wlan0 | |
INTERVAL=30 | |
mkdir -p "$HOME/src/noip" | |
cd "$HOME/src/noip" | |
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz | |
tar zxf noip-duc-linux.tar.gz | |
cd noip-2.1.9-1 | |
make clean | |
make | |
sudo cp noip2 /usr/local/bin/noip2 | |
sudo chmod 700 /usr/local/bin/noip2 | |
sudo chown root:root /usr/local/bin/noip2 | |
# Run on boot | |
sudo cp debian.noip2.sh /etc/init.d/noip2 | |
sudo chmod +x /etc/init.d/noip2 | |
sudo update-rc.d noip2 defaults | |
# Config no-ip | |
killall noip2 | |
sudo rm /usr/local/etc/no-ip2.conf | |
sudo noip2 -C -u$LOGIN -p$PASSWORD -I$INTERFACE -U$INTERVAL |
im getting this error
rm -f *o
rm -f binaries/*
rm -f noip2
gcc -Wall -g -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2
noip2.c:136:10: fatal error: stdio.h: No such file or directory
136 | #include <stdio.h>
| ^~~~~~~~~
compilation terminated.
make: *** [Makefile:25: noip2] Error 1
cp: cannot stat 'noip2': No such file or directory
chmod: cannot access '/usr/local/bin/noip2': No such file or directory
chown: cannot access '/usr/local/bin/noip2': No such file or directory
noip2: no process found
rm: cannot remove '/usr/local/etc/no-ip2.conf': No such file or directory
sudo: noip2: command not found
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grv@localhost:~$ sudo noip2
Can't get shared memory. (Function not implemented) Ending!
Why this error?