Archivo de la categoría: software

Configuring no-ip dynamic DNS service on Arch Linux ARM

Installation

We will first need to have yaourt installed, so if you don’t have yet, let’s install it.

curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
tar zxvf package-query.tar.gz
cd package-query
makepkg -si
cd ..
curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
tar zxvf yaourt.tar.gz
cd yaourt
makepkg -si
cd ..

Once installed, we can install no-ip dynamic updater.

# yaourt noip
==> WARNING: Building package as root is dangerous.
 Please run yaourt as a non-privileged user.
1 aur/guide 1.0.2-1 (0)
    The official IDE for the Chinese NOI/NOIP
2 aur/noip 2.1.9-6 (4)
    Dynamic DNS Client Updater for no-ip.com services
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> --------------------------------------------------------
==> 2

We will select the proper option (2, at the moment of writing), and we’ll need to edit PKGBUILD with our editor.

==> Downloading noip PKGBUILD from AUR...
x .AURINFO
x noip.service
x noip.install
x PKGBUILD
Comment by xyproto  (2014-08-01 09:29)
Moved from [community]. See aur-general for more information.

noip 2.1.9-6  (Fri Aug  1 11:28:49 CEST 2014)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

Please add $EDITOR to your environment variables
for example:
export EDITOR="vim" (in ~/.bashrc)
(replace vim with your favorite editor)

==> Edit PKGBUILD with:  nano

On the PKGBUILD, we’ll add the raspberry pi platofrm, armv6h, as shown here.

arch=('x86_64' 'i686' 'armv6h')

We’ll save (in nano we’ll do it with Ctrl + X) and we’ll answer with ‘Yes’ the rest of questions yaourt ask to us to be done.

Configuration

To configure de No-IP DUC you have to execute the noip2 executable with -C option (create the configuration file step by step), or if you want to select all hosts in your account to be updated add the -Y option.

# noip2 -C

To see more options off the No-IP DUC use:

# noip2 -h

To start the service

Start the service with

# systemctl start noip2

To start automatically at boot simply do:

# systemctl enable noip2