戻る

noip-duc-linux.tar.gz

採用しようとするもの下記参考に

get from www.no-ip.com target noip-duc-linux.tar.gz

fdopstm@lx:~$ ls -l noip-duc-linux.tar.gz 
-rw-r--r--    1 fdopstm  users  147640 11月 11日  09:55 noip-duc-linux.tar.gz

fdopstm@lx:~$ scp noip-duc-linux.tar.gz fdopstm@192.168.0.9:/home/fdopstm
Password: 
noip-duc-linux.tar.gz                         100%  144KB 144.2KB/s   00:00  
# cd /usr/local/src/
# mkdir 005_noip
# cd 005_noip/
# cp /var/data/v_org_gz/006_noip/noip-duc-linux.tar.gz .
# tar zxvf noip-duc-linux.tar.gz 2>&1 | tee untar-noip 
noip-2.1.7/
noip-2.1.7/._.DS_Store
noip-2.1.7/.DS_Store
noip-2.1.7/binaries/
noip-2.1.7/binaries/noip2-Linux-32bit
noip-2.1.7/binaries/noip2-Linux-64bit
noip-2.1.7/COPYING
noip-2.1.7/debian.noip2.sh
noip-2.1.7/gentoo.noip2.sh
noip-2.1.7/LEEME.PRIMERO
noip-2.1.7/LISEZMOI.ENPREMIER
noip-2.1.7/mac.osx.startup
noip-2.1.7/Makefile
noip-2.1.7/noip2.c
noip-2.1.7/README.FIRST
noip-2.1.7/README.FIRST-SWE
noip-2.1.7/README.FIRST.FRANCAIS
noip-2.1.7/README.FIRST.ITALIANO
noip-2.1.7/README.FIRST.JAPANESE
noip-2.1.7/README.FIRST.pt_BR
noip-2.1.7/redhat.noip.sh
===================================
# ls -l
total 160
drwxr-xr-x    3 501      501          4096 Aug 28 06:54 noip-2.1.7/
-rw-r--r--    1 root     root       147640 Nov 11 10:02 noip-duc-linux.tar.gz
-rw-r--r--    1 root     root          554 Nov 11 10:04 untar-noip
============================
# cd noip-2.1.7/
# make 2>&1 | tee make-noip-log
gcc -Wall -g -O2 -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2 
# make install 2>&1 | tee make-install-noip-log
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf

Auto configuration for Linux client of no-ip.com.

Please enter the login/email string for no-ip.com  non-sumi@excite.co.jp
Please enter the password for user 'non-sumi@excite.co.jp'  ************
Only one host [nyanta.no-ip.info] is registered to this account.
It will be used.
Please enter an update interval:[30]  y
Please enter an update interval:[30]  Y
Please enter an update interval:[30]  30
Do you wish to run something at successful update?[N] (y/N)  N
New configuration file '/tmp/no-ip2.conf' created.

mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
# mv *-log ../
# cd /etc/rc.d/
========== here is copy
# cat rc.noip2
#! /bin/sh
        # . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc
        case "$1" in
            start)
                echo "Starting noip2."
                /usr/local/bin/noip2
            ;;
            stop)
                echo -n "Shutting down noip2."
                killproc -TERM /usr/local/bin/noip2
            ;;
            *)
                echo "Usage: $0 {start|stop}"
                exit 1
        esac
        exit 0
=================
# ls -l rc.noip2 
-rwx------    1 root     root          464 Nov 11 10:47 rc.noip2*
# ls -l rc.local 
-rwxr-xr-x    1 20043    users         757 Oct 19 07:57 rc.local*
# ls -l /usr/local/bin/noip2 
-rwxr-xr-x    1 root     root        85793 Nov 11 10:40 /usr/local/bin/noip2*
# vi rc.local 
# diff -s rc.local 20071110_rc.local_org
29,33d28
< # ADD Sun Nov 11 20:55:33 JST 2007
< if [ -x /etc/rc.d/rc.noip2 ]; then
< /etc/rc.d/rc.noip2 start
< fi
< # ADD Sun Nov 11 20:55:33 JST 2007 END
==================================
This is pateern on lx.bcnet.ne.jp
Now here is begin on sv.bcnet.ne.jp
sv:/var/log/z_log# cd /usr/local/src/
sv:/usr/local/src# mkdir 005_noip
sv:/usr/local/src# cd 005_noip/
sv:/usr/local/src/005_noip# mv /home/fdopstm/noip-duc-linux.tar.gz .
sv:/usr/local/src/005_noip# ls -l
total 152
-rw-r--r--    1 fdopstm  users 147640 Nov 11 09:58 noip-duc-linux.tar.gz
sv:/usr/local/src/005_noip# tar zxvf noip-duc-linux.tar.gz 2>&1 |tee untar-noip
noip-2.1.7/
noip-2.1.7/._.DS_Store
noip-2.1.7/.DS_Store
noip-2.1.7/binaries/
noip-2.1.7/binaries/noip2-Linux-32bit
noip-2.1.7/binaries/noip2-Linux-64bit
noip-2.1.7/COPYING
noip-2.1.7/debian.noip2.sh
noip-2.1.7/gentoo.noip2.sh
noip-2.1.7/LEEME.PRIMERO
noip-2.1.7/LISEZMOI.ENPREMIER
noip-2.1.7/mac.osx.startup
noip-2.1.7/Makefile
noip-2.1.7/noip2.c
noip-2.1.7/README.FIRST
noip-2.1.7/README.FIRST-SWE
noip-2.1.7/README.FIRST.FRANCAIS
noip-2.1.7/README.FIRST.ITALIANO
noip-2.1.7/README.FIRST.JAPANESE
noip-2.1.7/README.FIRST.pt_BR
noip-2.1.7/redhat.noip.sh
==========================
sv:/usr/local/src/005_noip# rm -r noip-2.1.7/
sv:/usr/local/src/005_noip# tar xvzpf noip-duc-linux.tar.gz >&1 |tee untar-noip
noip-2.1.7/
noip-2.1.7/._.DS_Store
noip-2.1.7/.DS_Store
noip-2.1.7/binaries/
noip-2.1.7/binaries/noip2-Linux-32bit
noip-2.1.7/binaries/noip2-Linux-64bit
noip-2.1.7/COPYING
noip-2.1.7/debian.noip2.sh
noip-2.1.7/gentoo.noip2.sh
noip-2.1.7/LEEME.PRIMERO
noip-2.1.7/LISEZMOI.ENPREMIER
noip-2.1.7/mac.osx.startup
noip-2.1.7/Makefile
noip-2.1.7/noip2.c
noip-2.1.7/README.FIRST
noip-2.1.7/README.FIRST-SWE
noip-2.1.7/README.FIRST.FRANCAIS
noip-2.1.7/README.FIRST.ITALIANO
noip-2.1.7/README.FIRST.JAPANESE
noip-2.1.7/README.FIRST.pt_BR
noip-2.1.7/redhat.noip.sh
=================================
sv:/usr/local/src/005_noip# ls
noip-2.1.7/  noip-duc-linux.tar.gz  untar-noip
sv:/usr/local/src/005_noip# cd noip-2.1.7/
sv:/usr/local/src/005_noip/noip-2.1.7# make 2>&1 | tee make-noip-log
gcc -Wall -g -O2 -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2 
sv:/usr/local/src/005_noip/noip-2.1.7# touch /tmp/date-check ;sleep 3
sv:/usr/local/src/005_noip/noip-2.1.7# make install 2>&1 | tee make-install-noip-log
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf

Auto configuration for Linux client of no-ip.com.

Please enter the login/email string for no-ip.com  non-sumi@excite.co.jp
Please enter the password for user 'non-sumi@excite.co.jp'  ************Only one host [nyanta.no-ip.info] is registered to this account.
It will be used.
Please enter an update interval:[30]  
Do you wish to run something at successful update?[N] (y/N)  N
New configuration file '/tmp/no-ip2.conf' created.




mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
==========================
sv:/usr/local/src/005_noip/noip-2.1.7\
# find / -cnewer /tmp/date-check ! -type d -print > /tmp/newer-inst-list
find: /proc/444/fd/4: No such file or directory
sv:/usr/local/src/005_noip/noip-2.1.7# ls -l /tmp/
total 24
-rw-r--r--    1 root     root            0 Nov 11 11:38 date-check
srwxr-xr-x    1 wnn      root            0 Nov 11 08:47 jd_sockV4=
-rw-r--r--    1 root     root        23621 Nov 11 12:19 newer-inst-list
srwxr-xr-x    1 root     root            0 Nov 11 08:47 sj3sock=
sv:/usr/local/src/005_noip/noip-2.1.7# rm /tmp/date-check 
sv:/usr/local/src/005_noip/noip-2.1.7# mv /tmp/newer-inst-list .
sv:/usr/local/src/005_noip/noip-2.1.7# mv *-log ../
sv:/usr/local/src/005_noip/noip-2.1.7# mv newer-inst-list ../
sv:/usr/local/src/005_noip/noip-2.1.7# cd ../
sv:/usr/local/src/005_noip# wc -l newer-inst-list 
   1118 newer-inst-list
# sed -e '/^\/proc/d' newer-inst-list        
/etc/ntp.drift
/tmp/newer-inst-list
/usr/local/bin/noip2
/usr/local/etc/no-ip2.conf
/usr/local/src/005_noip/noip-2.1.7/make-install-noip-log
sv:/usr/local/src/005_noip# sed -e '/^\/proc/d' newer-inst-list >list_noip-base
sv:/usr/local/src/005_noip# mv newer-inst-list newer-inst-list-full
sv:/usr/local/src/005_noip# vi list_noip-base 
sv:/usr/local/src/005_noip# cat list_noip-base 
/usr/local/bin/noip2
/usr/local/etc/no-ip2.conf
=========================
/usr/local/bin/noip2 と /usr/local/etc/no-ip2.conf の 2個が インストール
された事になるようだ。
=========================
lx:/etc/rc.d# cp rc.noip2 /home/fdopstm/
lx:/etc/rc.d# chown fdopstm.users /home/fdopstm/rc.noip2 
=========================

fdopstm@sv:~$ scp fdopstm@192.168.0.5:/home/fdopstm/rc.noip2 .
The authenticity of host '192.168.0.5 (192.168.0.5)' can't be established.
RSA key fingerprint is e6:13:59:cf:63:86:9c:50:58:74:d3:ba:5e:33:3d:8c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.5' (RSA) to the list of known hosts.
Password: 
rc.noip2                                  100%  464     0.5KB/s   00:00    

fdopstm@sv:~$ su -
Password: 
sv:~# cd /etc/rc.d/
sv:/etc/rc.d# mv /home/fdopstm/rc.noip2 .
sv:/etc/rc.d# ls -l rc.noip2 
-rwx------    1 fdopstm  users         464 Nov 11 12:26 rc.noip2*
sv:/etc/rc.d# chown root.root rc.noip2 
sv:/etc/rc.d# ls -l rc.noip2 
-rwx------    1 root     root          464 Nov 11 12:26 rc.noip2*
sv:/etc/rc.d# cp rc.local 20070825_rc.local_non-noip 
sv:/etc/rc.d# vi rc.local 
sv:/etc/rc.d# diff -s rc.local 20070825_rc.local_non-noip
41,46d40
< # ADD Sun Nov 11 20:55:33 JST 2007
< if [ -x /etc/rc.d/rc.noip2 ]; then
< /etc/rc.d/rc.noip2 start
< fi
< # ADD Sun Nov 11 20:55:33 JST 2007 END
< 
=============================

何か加工すると 良いかもしれません。

にゃんたろう 拝!

2007年12月 4日 (火) 23:13:42 JST 作成


戻る

Copyright © 2007. nyantarou All Rights Reserved.