Skip to content

Instantly share code, notes, and snippets.

@daz
Created May 3, 2016 07:01
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save daz/ae4c7a8c21e9e447be3d97fe54d9ec92 to your computer and use it in GitHub Desktop.
Save daz/ae4c7a8c21e9e447be3d97fe54d9ec92 to your computer and use it in GitHub Desktop.
Script to install and configure no-ip client on Ubuntu/Debian
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
@grvtechno
Copy link

grv@localhost:~$ sudo noip2
Can't get shared memory. (Function not implemented) Ending!

Why this error?

@RUGMJ
Copy link

RUGMJ commented Dec 1, 2020

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