ラベル

Server (108) work (77) Idea (68) Car (31) PC (29) DAW (28) other (19) MakingWEBsite (18) 趣味 (18) health (13) CentOS (11) drupal (11) 山 (9) android (4) スマホ (4) communication (3) drupal7 (3) hint (3) meno (3) モバイル (3) 歯医者 (3) 第二種電気工事士 (3) 英語 (3) PC Server (2) drupal8 (2) ms access (2) uwp C# (2) めし (2) 整備 (2) 音楽 (2) MIDI (1) diy (1) 会計 (1) 動画再生 (1) 生活 (1) 郵便 (1) 食べ物 (1)

2013年9月21日土曜日

http://www.value-domain.com/

confirm nameserver's information

dig @ns1.value-domain.com someauto.net

2013年9月20日金曜日

2013年9月15日日曜日

Backup by cp command at Centos6.4

[root@hoge ~]# \cp -apruv /home/name /hd1tb/backupCentos/home/

In case of CentOS6.4.
"cp"="cp -i"
"cp" of CentOS is running in alias.

You can know if you try command "alias" on your computer.
[root@hoge ~]# alias
alias cp='cp -i'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

Or try this command
# which cp
alias cp='cp -i'
        /bin/cp

Option "cp -f" doesn't work for this alias..
When you want to use option f, simply escape "cp" or call with full path:
$ \cp -f
("\" is to escape alias.)
or
$ /bin/cp -f

2013年9月10日火曜日

ntp time server

ntp time server

#yum install ntp

back up original conf
# mv /etc/ntp.conf /etc/ntp.conf.bak

make a new conf
#vi /etc/ntp.conf
driftfile /var/lib/ntp/drift
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp

synchronize a server's time manually
#ntpdate ntp1.jst.mfeed.ad.jp

ntp service start
#/etc/rc.d/init.d/ntpd start

#chkconfig ntpd on
#chkconfig --list ntpd

prints current time server
#ntpq -p

check status
#/etc/init.d/ntpd status

DHCP error

logwatch says
Sep 10 10:22:34 some dhcpd: DHCPINFORM from 192.168.?.?? via eth0: not authoritative for subnet 192.168.?.0

To fix this, --authoritative;-- was added on dhcpd.conf.

# vi /etc/dhcp/dhcpd.conf
-----------------------------------------------------
subnet 192.168.?.0 netmask 255.255.255.0 {

authoritative;

# --- default gateway
        option routers                  192.168.?.?;
        option subnet-mask              255.255.255.0;

#       option nis-domain               "domain.org";
"/etc/dhcp/dhcpd.conf" 53L, 1275C
----------------------------------------------------

restart
# /etc/rc.d/init.d/dhcpd restart