blog/_posts/2015-03-15-install-and-conf...

73 lines
1.4 KiB
Markdown

---
title: "Install and configure No-IP client"
date: 2015-03-15
url: install-and-configure-no-ip-client
layout: post
category: Hacking
---
[![A missing blog post image](/img/blog/install-and-configure-no-ip-client.jpg)](/img/blog/install-and-configure-no-ip-client.jpg)
The following will show you how you could install [No-IP](http://www.noip.com/) client on Raspberry Pi.
First of all, download the archive which contained the client with :
> $ wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz
Next, extract, install, and launch the configuration script :
{% highlight bash %}
$ tar vzxf noip-duc-linux.tar.gz
$ cd noip-2.1.9-1/
$ make && sudo make install
$ sudo /usr/local/bin/noip2
{% endhighlight %}
For now, we've to create the service running script :
{% highlight bash %}
#!/bin/sh
# Author: Horloge-Skynet
# Date: Begun 2015-03-15
# Objective: Run a NO-IP service.
case "$1" in
start)
/usr/local/bin/noip2
;;
stop)
killall noip2
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart|reload"
exit 1
esac
### BEGIN INIT INFO
# Provides: NOIP_Init
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: NO-IP service
# Description: Launch NO-IP service at the run
### END INIT INFO
{% endhighlight %}
... and move it into _init_ directory :
`# mv NOIP_Init /etc/rc0.d/`
After a reboot, please make sure that the process `noip2` is running.