aamall

Other

2011������06·���05������

apache2������h264������\¹\���\������¼\���\���\�돢��h264_streaming_module

����h264 - Trac
http://h264.code-shop.com/trac/

����flow player
http://flowplayer.org/index.html

�돪������¾���²��Ï��·������flowplayer��¡�
h264�����²���������돩����������������������­���������̏�¡�\¹\���\������¼\���\���\�돢���������������������������������������Ï���ߏ����ď����쏢����·������������̏������������ď�¡�
(�돫������DL���·���������«��������돩������������������������Ï���돢�­)

»����������̏��������������«������flv�����������С�¹���·������\¹\���\������¼\���\���\�돢�µ���»�����������������ď��̏����������������Џ�����������������¡�
������������������»��ӏ�����²���¼��ҏ��������������⏢�������������·�����ď�����5����̏�����������¾���²��Ï��·�����������������������ď������̏��³������\���\���\������¼\�����¡�
nmr���µ�����я�¡�GOD���¹���돢���������������¡�

»����·�����������Ώ����ď��������µ���������µ��������돩���������¡�����������������������¡�

apahce2·���������\���\���\������¼\���������������������¡��³������������µ���������apache1·������«������apache2.2·���������������¹¹��¡�
php������\���\���\¹\������¼\������������¹���²���¼���������³�����돢���������ď���������������½��������������¡�

# wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
# tar xvfz apache_mod_h264_streaming-2.2.7.tar.gz
# cd mod_h264_streaming-2.2.7 ; pwd
# ./configure --with-apxs=/usr/local/apache2/bin/apxs && make && make install

��apache������conf�������돪�²¼µ­½���
LoadModule h264_streaming_module /usr/local/apache2/modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions .mp4



tuzzy92 at 23:47����Permalink����Comments(0)����

2011������02·���23������

cbq.init�����������������������ѡ돫������폢����

�����²��я��������򏪳���������������¡�돫���¡������������폢��������³����«���������������·��������������¡�½��ԏ��¹����������������������»��ӏ���µ������³�����������ď�¡�

\µ���¼\���\¹������»���������\����¼\���������¹������������
���½�����Ï�����������������������\����¼\������������������������
\����¼\������������������ѡ돫������폢���������ҏ����Ώ��������·�����������Ώ����ď�¡�

���\¹\���\���\��\��������Ώ�����
# cp -ip /usr/share/doc/iproute-2.6.18/examples/cbq.init-v0.7.3 /etc/init.d/cbq.init
# chmod +x /etc/init.d/cbq.init

# chkconfig --add cbq.init
# chkconfig --list cbq.init
cbq.init 0:off 1:off 2:on 3:on 4:on 5:on 6:off
#

���80������\����¼\������������������ѡ돫�������50Kbit�����������폢�������¹�����������Ώ�����
# cd /etc/sysconfig/cbq/ ; pwd
/etc/sysconfig/cbq
#

���á���只����������\µ\���\��\���������������������������������
# mv -i cbq-0000.example .cbq-0000.example

���Ï����ď��¾µ�̏���� cbg-\���\������¼\�����������ď��»���.����̏��«���������������¹���������¾�����
# vi cbq-100.http
==============================
DEVICE=ppp0,100Mbit,10Mbit
RATE=50Kbit
WEIGHT=5Kbit
PRIO=5
RULE=\��\������¼\Ð\���IP\��\���\���\¹:80,
==============================

rate�����������폢����������������»���������
WEIGHT������rate������1/10�����ҏ����Ώ�������¡��������¼���«���������������������я�¡�
\���\���\��ď��¼\���\���\������̏��½�����Ï����������������������������ď�¡�

# /etc/init.d/cbq.init compile(�����ԏ���ߏ��������ޏ����������Ώ��������������������̏���̏��«������)
/sbin/tc qdisc del dev ppp0 root
/sbin/tc qdisc add dev ppp0 root handle 1 cbq bandwidth 100Mbit avpkt 3000 cell 8
/sbin/tc class change dev ppp0 root cbq weight 10Mbit allot 1514

/sbin/tc class add dev ppp0 parent 1: classid 1:100 cbq bandwidth 100Mbit rate 50Kbit weight 5Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 3000 bounded
/sbin/tc qdisc add dev ppp0 parent 1:100 handle 100 tbf rate 50Kbit buffer 10Kb/8 limit 15Kb mtu 1500
/sbin/tc filter add dev ppp0 parent 1:0 protocol ip prio 100 u32 match ip src \��\������¼\Ð\���IP\��\���\���\¹ match ip sport 80 0xffff classid 1:100

# /etc/init.d/cbq.init start

���³������
# /etc/init.d/cbq.init list

### eth0: queueing disciplines

qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

### eth1: queueing disciplines

qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

### ppp0: queueing disciplines

qdisc cbq 1: rate 100000Kbit (bounded,isolated) prio no-transmit
qdisc tbf 100: parent 1:100 rate 50000bit burst 10Kb lat 819.2ms

### ppp0: traffic classes

class cbq 1: root rate 100000Kbit (bounded,isolated) prio no-transmit
class cbq 1:100 parent 1: leaf 100: rate 50000bit (bounded) prio 5
class tbf 100:1 parent 100:

### ppp0: filtering rules

filter parent 1: protocol ip pref 100 u32
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:100
match 7901f9de/ffffffff at 12
match 00500000/ffff0000 at 20

# /etc/init.d/cbq.init stats
### eth0: queueing disciplines

qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
Sent 58221108459 bytes 137153302 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0

### eth1: queueing disciplines

qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
Sent 163878209113 bytes 173976400 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0

### ppp0: queueing disciplines

qdisc cbq 1: rate 100000Kbit (bounded,isolated) prio no-transmit
Sent 5668163 bytes 28005 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
borrowed 0 overactions 0 avgidle 240 undertime 0
qdisc tbf 100: parent 1:100 rate 50000bit burst 10Kb lat 819.2ms
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0

### ppp0: traffic classes

class cbq 1: root rate 100000Kbit (bounded,isolated) prio no-transmit
Sent 5668215 bytes 28006 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
borrowed 0 overactions 0 avgidle 240 undertime 0
class cbq 1:100 parent 1: leaf 100: rate 50000bit (bounded) prio 5
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
borrowed 0 overactions 0 avgidle 1.36171e+07 undertime 0
class tbf 100:1 parent 100:


### ppp0: filtering rules

filter parent 1: protocol ip pref 100 u32
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:100 (rule hit 28007 success 0)
match 7901f9de/ffffffff at 12 (success 27998 )
match 00500000/ffff0000 at 20 (success 0 )

#

�񡯏��¾\µ���¼\Ð����������������̏����ӏ�����\���\���\���\���������wget���·�����������Ώ�����

0% [] 236,283 5.90K/s eta 13h 11m

���������������������

tuzzy92 at 02:13����Permalink����Comments(0)����

2011������02·���14������

PPPoE \«���¼\���\���\������¼\���

²���¼��ҏ��������������⏢����Linux������\������¼\���¹½�����叢�·�����������������я��������ޏ�����\¹\��ԏ��¼\������̏����������������������������������Ï����������ҏ��·�����ď�������¡�
PPPoE������\«���¼\���\���\������¼\�������������돢�«���·�����������Ώ����ď�������¡�����\��\���\Ð\���\¹�����ҏ����������������ď�¡�

��»²¾���µ­»���(Netscreen������������«������������)
http://blog.livedoor.jp/tuzzy92/archives/51815564.html#

\«���¼\���\���\������¼\���������������²��ď��폢�폢��
�������������������Џ����������я��«�����������Ï�������������������������¡񏪤���������µ��𡯏��������������Ð��¡�

³�돪���ԏ����䏪�³DEV /etc/sysconfig/network-scripts/ifcfg-ppp0 ������
²¼µ­µ­½��ҏ����ҏ�����µ­

LINUX_PLUGIN=/usr/lib/pppd/2.4.4/rp-pppoe.so
MTU=1452

��������¡�\���\���\���\������¼\�����돩�µ��������
��������¡�\��\���\»\¹³������

# ps ax | grep ppp
3288 ? S 0:00 /bin/bash /sbin/adsl-connect /etc/sysconfig/network-scripts/ifcfg-ppp0
3327 ? Ss 0:00 /usr/sbin/pppd ipparam ppp0 linkname ppp0 plugin /usr/lib/pppd/2.4.4/rp-pppoe.so eth0 noipdefault noauth default-asyncmap defaultroute hide-password nodetach mtu 1452 mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp user f.su4y-****@atson.net lcp-echo-interval 20 lcp-echo-failure 3

OK
��������¡����������������������������쏢����\���\������¼\���\Ð\���\��� \¹\��ԏ��¼\���\���\¹\���
http://www.bspeedtest.jp/ ������������\¹\��ԏ��¼\���\���\��\���\���

\µ���¼\Ð1[N] 65.6Mbps
\µ���¼\Ð2[S] 75.2Mbps
²¼������¼��؏�ď��������: 75Mbps(75.2Mbps,9.40MByte/s)
¾����������������ď��������: 81Mbps(81.6Mbps,10.2MByte/s)

�����������я��«�����������������������������������������������𡭢������������������я��������¹���ޏ��������

tuzzy92 at 04:26����Permalink����Comments(0)����

2011������02·���07������

\���\��\���\���\���\������¼\µ ������������������¹���������

������½µ�����½����������¹(2·���)¹��ԏ����������ď��ޏ��������������������������������«�����������ď���������\���\���\���������¹��������Џ�¡�

������������¼��������������؏��ޏ�������¡�
��­�����؏����������ҏ�����������������������(������������������������\���\���\��������������򏪢��Ώ��·�����ď���������)\���\��ӏ��¼\�����¡�
# find /etc/ -type f | xargs egrep "r8169"
/etc/modprobe.conf:alias eth1 r8169
/etc/sysconfig/hwconf:driver: r8169

»����·������10GB�����̏�����\���\���\���\��������ҏ��¾�������¡�
³����«�������������������������ޏ�����������²���¹�����ď�㏢������
# uptime
02:43:51 up 1:03, 1 user, load average: 9.13, 7.27, 3.94

���³������������²���\���\���\���\������¼\���������Giga²½���돪�»����(²��ď��«�����돢���������������������������������Ï�����µ�������������)��¡�

\³\\ PCI\Ð\¹ 1000M100M10M LAN\\\\ CG-LAPCIGTR 4519157009690\³\\ PCI\Ð\¹ 1000M...

\³\���\�� PCI\Ð\¹ 1000M����100M����10M LAN\��\���\��\��� CG-LAPCIGTR 4519157009690\³\���\�� PCI\Ð\¹ 1000M...
²���³�����¡�1,743�ޏ�Ώ���������¹��Џ�¡񏪡����������������



tuzzy92 at 02:53����Permalink����Comments(0)����

2011������01·���31������

\«\���6 10m������\���\���\�ޏ����ҏ��������������������­�����ď�����

NIC����\���\�̏��������Ð�ޏ�Џ��·���������������«�����������ď�������������
�����������䏪���������������������������������Ï�����������

# ifconfig -a eth1
eth1 Link encap:Ethernet HWaddr 00:0A:79:88:8C:12
inet addr:192.168.11.1 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::20a:79ff:fe88:8c12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:685995174 errors:0 dropped:0 overruns:0 frame:0
TX packets:720061314 errors:0 dropped:0 overruns:2 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4028562739 (3.7 GiB) TX bytes:1311108297 (1.2 GiB)
Interrupt:201 Base address:0xf00
#

[ELECOM(\\\³\)] \²¼\Т돪\«\\\¼6½µLAN\ޏ¼\\ LD-GM/BK10

[ELECOM(\��\���\³\���)] \²���¼\��������Т������돪�\«\���\��\������¼6½���µ���LAN\�ޏ��¼\���\��� LD-GM/BK10
²���³�����¡�1,750�ޏ�Ώ���������¹��Џ�¡񏪡����������������



tuzzy92 at 23:15����Permalink����Comments(0)����

2011������01·���05������

2011���������������·²���\���\���\���\������¼\���������giga²½���·�����������Ώ�����

���µ���¹���̏���������������������������10�����䏢�������������������������������«�����������ď��̏�¡�\���\���\���\������¾��������̏�����3�����䏢����\¹\��ԏ��¼\���\��\���\�ߏ�¡�
3�����䏢������������𡯏��Ð��𡭏�������������������������\���\���\��������������������5�����������ҏ����������������ď�����������������������ޏ��������­���½��������������¡�

���򏢱���������²��򏪤���������
����vmware�������ޏ�ď����Џ��·������������������\µ���¼\Ð������\���\���\���\������¼\���������������������
����snmp(or HotSaNIC)������\Ð\��

���µ���������³���������쏢����������NAS������¹½�����叢���������Џ����������Ï�������������¡�
��giga��������������𡯏��ÐPC����GIGAµ��㡭��폢�������¹����������������¡�

���Ï�����������������\¹\���\���\���(LSW4-GT-8NS)
http://buffalo.jp/products/catalog/network/lsw4-gt-8ns/

����PC����GIGA
http://www.pc-giga.com/



tuzzy92 at 00:23����Permalink����Comments(0)����

2010������12·���06������

vnc��돪�¾���¹½������

���³����������������������������

vnc-server-4.1.2-14.el5_5.4.i386
xorg-x11-twm-1.0.1-3.1.i386
xterm-215-8.el5_4.1.i386

�����䏪���䏢���������Ώ��·���ޏ��������Ð���³������

fonts-japanese.noarch

����½���²���µ��������»��Џ�����\���\¹\������¼\��������Ώ�����
# vncserver

You will require a password to access your desktops.

Password:
Verify:

New 'v-admin.localhost:1 (root)' desktop is v-admin.localhost:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/v-admin.localhost:1.log

#

����³������
# netstat -nap | grep -i vnc
tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 2602/Xvnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 2602/Xvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 2602/Xvnc
tcp 0 0 :::6001 :::* LISTEN 2602/Xvnc
unix 2 [ ACC ] STREAM LISTENING 11587 2602/Xvnc /tmp/.X11-unix/X1
unix 3 [ ] STREAM CONNECTED 11749 2602/Xvnc /tmp/.X11-unix/X1
unix 3 [ ] STREAM CONNECTED 11747 2602/Xvnc /tmp/.X11-unix/X1
unix 3 [ ] STREAM CONNECTED 11745 2602/Xvnc /tmp/.X11-unix/X1
unix 3 [ ] STREAM CONNECTED 11744 2609/vncconfig
#

����vnc\���\������¼\�����������䏪�³
vnc

tuzzy92 at 01:52����Permalink����Comments(0)����

2010������11·���16������

vmware \���\���\¹\������¼\���\���\��

# ./vmware-install.pl
Creating a new VMware Server installer database using the tar4 format.

Installing VMware Server.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware]

The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the manual files?
[/usr/share/man]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]

The path "/usr/share/doc/vmware" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Server 2.0.2 build-203138 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines [FAILED]
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent [FAILED]
Stopping VMware services:
VMware Authentication Daemon [ OK ]
Virtual machine monitor [ OK ]

You must read and accept the End User License Agreement to continue.
Press enter to display it.

NOTICE: BY DOWNLOADING AND INSTALLING, COPYING OR OTHERWISE USING THE
SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS VMWARE MASTER END
USER LICENSE AGREEMENT ("EULA"). IF YOU DO NOT AGREE TO THE TERMS OF
THIS EULA, YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE SOFTWARE, AND
YOU MAY RETURN THE UNUSED SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A REFUND OF THE LICENSE FEE, IF
ANY, ALREADY PAID UPON SHOWING PROOF OF PAYMENT. "YOU" MEANS THE
NATURAL PERSON OR THE ENTITY THAT IS AGREEING TO BE BOUND BY THIS EULA,
THEIR EMPLOYEES AND THIRD PARTY CONTRACTORS THAT PROVIDE SERVICES TO
YOU. YOU SHALL BE LIABLE FOR ANY FAILURE BY SUCH EMPLOYEES AND THIRD
PARTY CONTRACTORS TO COMPLY WITH THE TERMS OF THIS AGREEMENT.

1. DEFINITIONS

1.1 "Designated Administrative Access" means that access to the
standard user interfaces of a given instance of the Software
(designated in this section) that you may grant to a designated
third party (a) for which you have provided advance written notice
to VMware that you are providing outsourced services and (b) for
whose dedicated benefit you have licensed such instance of the
Software. Designated Administrative Access is applicable only
where you are 1) an IT outsourcing company that is providing
outsourced IT services to a client company and 2) applicable only
to the following Software: ESX Server, VMware Server and
VirtualCenter.

1.2 "GPL Software" means GPL software licensed to you under the GNU
General Public License as published by the Free Software Foundation
(GPL). A copy of the GPL is included on the media on which you
received the Software or included in the files you downloaded, if
you acquired the Software by electronic download.

1.3 "Guest Operating Systems" means instances of third-party operating
systems licensed by you and installed in a Virtual Machine and run
using the Software.

1.4 "Licensed Additional Module" means additional modules that may be
provided with and/or used in conjunction with the Software for
which you have paid the applicable license fee and accepted any
applicable additional license terms.

1.5 "Open Source Software" means various open source software
components licensed under the terms of applicable open source
license agreements included in the materials relating to such
software. Open Source Software is composed of individual software
components, each of which has its own copyright and its own
applicable license conditions. The Open Source Software licenses
can be found in the open_source_licenses.txt file, other materials
accompanying the software package, the documentation or
corresponding source files available at
http://www.vmware.com/download/open_source.html.

1.6 "Processor" means a single, physical chip that houses no more than
four (4) processor cores.


1.7 "Sample Programs" means sample client management programs or
scripts that may be distributed with the Software.

1.8 "Server" means a single physical computer of a type that meets the
specifications as set forth in the applicable product documentation
posted at http://www.vmware.com/support/pubs/. Multiple computers
that share processing power or operate in a networked configuration
as a single logical computer, such as a "server farm" or similar
arrangement, constitute multiple Servers for the purpose of this
EULA.

1.9 "Software" means software products that are licensed to you under
this EULA, including, but not limited to, any related components
purchased or provided with the Software, application programming
interfaces, associated media, printed materials, online or
electronic documentation, and any updates and maintenance releases
thereto.

1.10 "Software License Key" means, if applicable, a serial number issued
to you by VMware to activate and use the Software. A separate,
additional Software License Key may be required to activate and use
each Licensed Additional Module.

1.11 "VMware Tools" means a suite of utilities and drivers that may
enhance the performance and functionality of your Guest Operating
System. VMware Tools may include some or all of the following,
depending on your Guest Operating System: an SVGA driver, a mouse
driver, the VMware Tools control panel and support for features
such as shared folders, drag and drop in Windows guests, shrinking
virtual disks, time synchronization with the host, VMware Tools
scripts, and connection and disconnection of devices while the
virtual machine is running.

1.12 "Virtual Machine" means an instance of a Guest Operating System and
any application programs installed thereon, running on a computing
device on which the Software is installed, or suspended to disk or
any other storage media accessible by the computing device.



2. EVALUATION LICENSES

2.1 General. If available, the Software and each Licensed Additional
Module may be activated with no-cost evaluation Software License
Key(s). You acknowledge that Evaluation Software License Keys have
an expiration date ("Expiration Date") and that VMware is not
obligated to permit further use of the Software.

2.2 Evaluation License. If you activate the Software or any Licensed
Additional Module with an evaluation Software License Key
("Evaluation Product") you may use the Evaluation Product until the
Expiration Date only to evaluate the suitability of the Evaluation
Product for licensing on a for-fee basis. You may acquire
evaluation Software License Key(s) for Licensed Additional Modules.
In such case, the Licensed Additional Modules are licensed to you
subject to the terms of this "EVALUATION LICENSES" section.

2.3 Evaluation Product Warranty Disclaimer. During the use of the
Evaluation Product, the limited 90-day warranty referenced in
Section 7.1 below is not applicable to you. THE EVALUATION PRODUCT
IS PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER
EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE. VMWARE AND ITS
LICENSORS BEAR NO LIABILITY FOR ANY DAMAGES RESULTING FROM USE (OR
ATTEMPTED USE) OF THE EVALUATION PRODUCT THROUGH AND AFTER THE
EXPIRATION DATE.

2.4 No Support. VMware has no duty to provide support to you during
your use of the Evaluation Product.

3. GRANT AND USE RIGHTS FOR SOFTWARE.

3.1 License. The Software is licensed, not sold. Subject to the terms
of this EULA, VMware hereby grants you a non-exclusive, non-
transferable license, without rights to sublicense, to use the
object code of the Software for the purpose as set forth in the
applicable documentation for the Software and to the extent
permitted by your payment of applicable license fees under a VMware
approved licensing model and/or your Software License Key subject
to the software product specific terms specified in this EULA.
Depending upon the model utilized to compute the applicable license
fees paid by you to use the Software (whether per Processor, per
Virtual Machine, per user, or any other VMware approved licensing
model), an applicable Software License Key may limit your usage of
the Software accordingly. You may use the documentation
accompanying the Software in connection with permitted uses of the
Software. If the Software is a version that you have converted or
exchanged from a valid licensed prior version, you agree that by
using the Software you will no longer use the prior version.
VMware reserves the right to require the certification of the
destruction of such previous version of the Software.


3.2 License Limitations. You may not copy the Software except for a
reasonable number of machine-readable copies of the Software for
backup or archival purposes and except as expressly permitted in
this EULA. You may not remove any titles, trademarks or trade
names, copyright notices, legends, or other proprietary markings on
the Software. You are not granted any rights to any trademarks or
service marks of VMware. VMware retains all rights not expressly
granted to you in this EULA.

3.3 Restrictions. You may not (i) sell, lease, license, sublicense,
distribute or otherwise transfer in whole or in part the Software
or the Software License Key to another party; (ii) provide,
disclose, divulge or make available to, or permit use of the
Software in whole or in part by, any third party (except Designated
Administrative Access) without VMware's prior written consent; or
(iii) modify or create derivative works based upon the Software.
Except to the extent expressly permitted by applicable law, and to
the extent that VMware is not permitted by that applicable law to
exclude or limit the following rights, you may not decompile,
disassemble, reverse engineer, or otherwise attempt to derive
source code from the Software, in whole or in part. You may use
the Software to conduct internal performance testing and
benchmarking studies, the results of which you (and not
unauthorized third parties) may publish or publicly disseminate;
provided that VMware has reviewed and approved of the methodology,
assumptions and other parameters of the study. Please contact
VMware at [email protected] to request such review.

3.4 GPL Software. You can redistribute and/or modify the GPL Software
under the terms of the GPL. You may obtain a copy of the source
code corresponding to the binaries for the GPL Software (the "GPL
Source Files") by downloading the GPL Source Files from VMware's
Web site at http://www.vmware.com/download/open_source.html, or by
sending a request, with your name and address, to Vmware at the
address specified under the heading "Contact Information" below, in
which case Vmware will mail a copy of the GPL Source Files to you
on a CD or equivalent physical medium. This offer to obtain a copy
of the GPL Source Files is valid for three years from the date you
acquired this Software product.

3.5 VMware Tools. You may distribute the VMware Tools to any third
party provided that (i) you do not modify the VMware Tools; (ii)
you distribute the VMware Tools in object code format only and
solely in conjunction with, and as part of, the Virtual Machine you
create with the Software; (iii) you do not use VMware's name, logo
or trademarks to market the Virtual Machine you create with the
Software and (iv) you agree to indemnify, hold harmless, and defend
VMware from and against any claims or lawsuits, including
attorneys' fees, that arise or result from the use or distribution
of the Virtual Machine you create. Notwithstanding the foregoing,
you may refer to VMware names, logos or trademarks to indicate that
the Virtual Machine you create with the Software are compatible
with or designed for use with the Software.

3.6 Licenses required for third-party software. The Software enables
you to run multiple instances of third-party guest operating
systems and application programs. You are responsible for obtaining
any licenses necessary to operate any such third-party software,
including Guest Operating Systems.

3.7 Sample Programs. The Software may include Sample Programs. You
may use and distribute Sample Programs under the terms set forth in
the applicable Sample Programs files. VMware does not provide
support services for Sample Programs.

3.8 VMware License Programs. VMware makes available VMware License
programs (for e.g., VMware Academic License). If you have received
the Software pursuant to these VMware License programs, the then-
current terms and conditions posted on
http://www.vmware.com/download/eula/vmtn.html
for that program shall apply for use of the products under such
VMware License programs.

3.9 Audit Rights. You will maintain accurate records as to your use of
the Software as authorized by this EULA, for at least two (2) years
from the last day on which support and subscription services
("Services") expired for the applicable Software. VMware, or
persons designated by VMware, will, at any time during the period
when you are obliged to maintain such records, be entitled to
inspect such records and your computing devices, in order to verify
that the Software is used by you in accordance with the terms of
this EULA and that you have paid the applicable license fees and
Services fees for the Software; provided that VMware may conduct no
more than one (1) audit in any twelve (12) month period. You shall
promptly pay to VMware any underpayments revealed by any such
audit. Any such audit will be performed at VMware's expense during
normal business hours, provided that you shall promptly reimburse
VMware for the cost of such audit and any applicable fees if such
audit reveals an underpayment by you of more than five percent (5%)
of the amounts payable by you to VMware for the period audited.

4. TITLE. VMware retains all right, title, and interest in and to the
Software and the Software License Key and in all related
copyrights, trade secrets, patents, trademarks, and any other
intellectual and industrial property and proprietary rights,
including registrations, applications, renewals, and extensions of
such rights.

5. SUPPORT AND SUBSCRIPTION SERVICES NOT INCLUDED

VMware will not provide any support services under this EULA. This
EULA does not give you any rights to any updates or upgrades to the
Software or to any extensions or enhancements to the Software
developed by VMware at any time in the future. VMware may offer
support and subscription services separately. If you have
purchased VMware support and subscription services with the
Software, these services are provided to you under the Support
Contract Terms and Conditions posted on VMware's Web site at
http://www.vmware.com/support/ and by accepting the terms of this
EULA you are accepting these Support Contract Terms and Conditions.
Any supplemental software code or related materials that VMware
provides to you as part of any support and subscription services
are to be considered part of the Software and are subject to the
terms and conditions of this EULA. VMware may use any technical
information you provide to VMware for any VMware business purposes
without restriction, including for product support and development.
VMware will not use information in a form that personally
identifies you.

6. TERMINATION

6.1 Termination. VMware may terminate this EULA immediately and
without notice if you fail to comply with any term of this EULA.

6.2 Effect of Termination. In the event of termination, you must
destroy all copies of the Software and Software License Key. In
addition you must remove all copies of the Software, including all
backup copies, from the Server and all computers and terminals on
which it is installed. From time to time, VMware may change the
terms of this EULA. VMware will notify you of such change. Your
continued use of the Software will indicate your agreement to the
change.

7. LIMITED WARRANTY AND LIMITATION OF LIABILITY

7.1 Limited Warranty. VMware warrants that the media, if any, on which
the Software is delivered will be free of defects and that the Software
will substantially conform to the description contained in the
applicable end user documentation with respect to the particular
Software licensed under this EULA in each case for a period of 90 days
after the date of shipment of the Software License Key to you ("Warranty
Period"). If during the Warranty Period the media is defective and the
version of that Software is still commercially available, your sole
remedy will be that VMware shall, at its option, repair or replace the
defective media returned to VMware within the Warranty Period. If you
are returning a defective media, please email VMware at [email protected]
to request a Return Authorization number (RMA) and further instructions.
If during the Warranty Period the Software does not substantially
conform to the description contained in the applicable end user
documentation, your sole remedy will be that VMware shall, at it option,
correct the defects in the Software or refund the license fees you paid,
if any, related to the Software provided that (a) the Software has been
properly installed and used at all times and in accordance with the
instructions in the applicable end user documentation; (b) no
modification, alteration or addition has been made to the Software
product by persons other than VMware or VMware's authorized
representative; and (c) VMware receives written notice of the non-
conformity within ninety (90) days following shipment. EXCEPT FOR THE
PRECEDING EXPRESS LIMITED WARRANTY, TO THE MAXIMUM EXTENT PERMITTED BY
APPLICABLE MANDATORY LAW, VMWARE AND ITS LICENSORS PROVIDE THE SOFTWARE
WITHOUT ANY WARRANTIES OF ANY KIND, EXPRESS, IMPLIED, STATUTORY, OR IN
ANY OTHER PROVISION OF THIS EULA OR COMMUNICATION WITH YOU, AND VMWARE
AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.

7.2 LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY
APPLICABLE MANDATORY LAW, IN NO EVENT WILL VMWARE AND ITS LICENSORS BE
LIABLE FOR ANY LOST PROFITS OR BUSINESS OPPORTUNITIES, LOSS OF USE,
BUSINESS INTERRUPTION, LOSS OF DATA, OR ANY OTHER INDIRECT, SPECIAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES UNDER ANY THEORY OF LIABILITY,
WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, PRODUCT LIABILITY, OR
OTHERWISE. BECAUSE SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE
PRECEDING LIMITATION MAY NOT APPLY TO YOU. VMWARE AND ITS LICENSORS'
LIABILITY UNDER THIS EULA WILL NOT, IN ANY EVENT, EXCEED THE LICENSE
FEES, IF ANY, PAID BY YOU FOR THE SOFTWARE LICENSED TO YOU UNDER THIS
EULA. THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT
PERMITTED BY APPLICABLE LAW, REGARDLESS OF WHETHER VMWARE OR ITS
LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND
REGARDLESS OF WHETHER ANY REMEDY FAILS OF ITS ESSENTIAL PURPOSE.

8. GENERAL

8.1 Entire Agreement. This Agreement sets forth VMware's entire
liability and your exclusive remedy with respect to the Software
and supersedes the terms of any purchase orders and any other
communications or advertising with respect to the Software. You
acknowledge that this Agreement is a complete statement of the
agreement between you and VMware with respect to the Software, and
that there are no other prior or contemporaneous understandings,
promises, representations, or descriptions with respect to the
Software.

8.2 Headings. Headings under this EULA are intended only for
convenience and shall not affect the interpretation of this EULA.

8.3 Waiver and Modification. No failure of either party to exercise or
enforce any of its rights under this EULA will act as a waiver of
those rights. This EULA may only be modified, or any rights under
it waived, by a written document executed by the party against
which it is asserted.

8.4 Severability. If any provision of this EULA is found illegal or
unenforceable, it will be enforced to the maximum extent
permissible, and the legality and enforceability of the other
provisions of this EULA will not be affected.

8.5 Governing Law. This EULA will be governed by California law and
the United States of America, without regard to its choice of law
principles. The United Nations Convention for the International
Sale of Goods shall not apply.

8.6 Government Restrictions. You may not export or re-export the Soft-
ware except in compliance with the United States Export
Administration Act and the related rules and regulations and
similar non-U.S. government restrictions, if applicable. The
Software and accompanying documentation are deemed to be
"commercial computer software" and "commercial computer software
documentation," respectively, pursuant to DFAR Section 227.7202 and
FAR Section 12.212(b), as applicable. Any use, modification,
reproduction, release, performing, displaying, or disclosing of the
Software by the U.S. Government shall be governed solely by the
terms of this EULA.

8.7 Contact Information. If you have any questions about this EULA, or
if you want to contact VMware for any reason, please direct all
correspondence to: VMware, Inc., 3401 Hillview Avenue, Palo Alto,
CA 94304, United States of America or email [email protected].

8.8 Other. VMware and VMTN are trademarks and/or registered trademarks
of VMware, Inc. in the United States and/or various jurisdictions.


9. SOFTWARE PRODUCT SPECIFIC TERMS AND CONDITIONS

In addition to the above, the following Software products shall also be
subject to the following terms and conditions set forth below. In the
event of any conflict between the following product-specific terms and
conditions and the preceding sections, the product-specific terms and
conditions shall control.

9.1 VMware Server:
(a) Additional Definitions:
"Redistributable Components" means the Programming API library that may
be provided in conjunction with the Software and licensed under the
Redistributable Components product specific terms and conditions.
"VirtualCenter Server Software" is a proprietary component of the
Software which includes, without limitation, the management agent
software that is installed on each managed Server and a proprietary Web
Service Interface.
"VMware Virtual Infrastructure Client Software" is a proprietary client
component of the Software that provides the user interface and enables
management of the Software.
"VMware WebAccess" is a proprietary component that provides console
access to and management of Virtual Machines created with the Software.
"Web Service Interface" means a programmatic interface to perform
management operations on Servers that are activated for management by
the VirtualCenter Server Software through software programs written by
you or a third party.
(b) Additional License Terms:
VMware grants you a nonexclusive, nontransferable license, without
rights to sublicense, to (i) install or have installed a single instance
of the Software and each Licensed Additional Module on a single Server,
unless permitted by VMware to have multiple instances on a single Server
or to have multiple instances on multiple Servers; (ii) use the Software
and each Licensed Additional Module solely for information processing
and computing purposes, including the hosting of computer application-
based services from a Virtual Machine and provision of such services via
an internal or external network, provided such services may not consist
of services to a third party that provide primarily computing or
processing power (such as utility computing or grid computing) or any
computer application-based service that is traded, rented, leased or
sold on a Virtual Machine basis; and (iii) use and reproduce the VMware
Virtual Infrastructure Client Software or VMware WebAccess (in object
code form only) for the purposes of installation and operation on an
unlimited number of your own internal computers or terminals solely for
the purpose of accessing the Server on which the Software is installed;
(iv) internally use and reproduce the Redistributable Components to
create programs that interface with the Redistributable Components to
manage Virtual Machines ("Your Management Programs"); and (v) internally
use Your Management Programs solely for the purpose of managing Virtual
Machines operated on VMware software products installed on your own
internal Servers and computers. Subject to the above, each copy of the
Software may not be used by any other person, whether or not such person
is employed by or otherwise associated with your entity.
Distributing the Software. VMware Server is intended for your personal
non-commercial use only. If you are interested in distributing the
Software for internal or external use, promotion, review or as part of a
solution, please apply now at http://www.vmware.com/go/distribution.





Do you accept? (yes/no)yes

Thank you.

The bld-2.6.18-8.el5-i686smp-RHEL5 - vmmon module loads perfectly into the
running kernel.

The bld-2.6.18-8.el5-i686smp-RHEL5 - vmci module loads perfectly into the
running kernel.

The bld-2.6.18-8.el5-i686smp-RHEL5 - vsock module loads perfectly into the
running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]

Configuring a bridged network for vmnet0.

Please specify a name for this network.
[Bridged]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]

Configuring a NAT network for vmnet8.

Please specify a name for this network. [NAT]

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]

Probing for an unused private subnet (this can take some time)...

The subnet 172.16.201.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 172.16.201.0.

Do you wish to configure another NAT network? (yes/no) [no]

Do you want to be able to use host-only networking in your virtual machines?
[yes]

Configuring a host-only network for vmnet1.

Please specify a name for this network.
[HostOnly]

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]

Probing for an unused private subnet (this can take some time)...

The subnet 172.16.127.0/255.255.255.0 appears to be unused.

The following host-only networks have been defined:

. vmnet1 is a host-only network on private subnet 172.16.127.0.

Do you wish to configure another host-only network? (yes/no) [no]

The bld-2.6.18-8.el5-i686smp-RHEL5 - vmnet module loads perfectly into the
running kernel.

Please specify a port for remote connections to use [902]

Please specify a port for standard http connections to use [8222]

Please specify a port for secure http (https) connections to use [8333]

The current administrative user for VMware Server is ''. Would you like to
specify a different administrator? [no]

Using root as the VMware Server administrator.

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /Virtual

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: A0N4M-FYL2T-UF3FM-4K135

Creating a new VMware VIX API installer database using the tar4 format.

Installing VMware VIX API.

In which directory do you want to install the VMware VIX API binary files?
[/usr/bin]

In which directory do you want to install the VMware VIX API library files?
[/usr/lib/vmware-vix/lib]

The path "/usr/lib/vmware-vix/lib" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the VMware VIX API document pages?
[/usr/share/doc/vmware-vix]

The path "/usr/share/doc/vmware-vix" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware VIX API 1.6.2 build-203138 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-vix.pl".

Enjoy,

--the VMware team

Starting VMware services:
Virtual machine monitor [ OK ]
Virtual machine communication interface [ OK ]
VM communication interface socket family: [ OK ]
Virtual ethernet [ OK ]
Bridged networking on /dev/vmnet0 [ OK ]
Host-only networking on /dev/vmnet1 (background) [ OK ]
DHCP server on /dev/vmnet1 [ OK ]
Host-only networking on /dev/vmnet8 (background) [ OK ]
DHCP server on /dev/vmnet8 [ OK ]
NAT service on /dev/vmnet8 [ OK ]
VMware Server Authentication Daemon (background) [ OK ]
Shared Memory Available [ OK ]
Starting VMware management services:
VMware Server Host Agent (background) [ OK ]
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines [ OK ]

The configuration of VMware Server 2.0.2 build-203138 for Linux for this
running kernel completed successfully.

#

tuzzy92 at 22:26����Permalink����Comments(0)����

2010������08·���17������

rsync����������������������������������������\���\��\·\���\��я����ҏ���������������²��������¡돫�������

���½�������¾������ --inplace

# man rsync | grep inplace
--inplace update destination files in-place

�돪؏��������
\���\���\���\���������������ď�������¡돫������ԏ���̏����ҏ�����¹¹���¹������¾���¹�����������¡����䏪���쏢����\���\���\���\������������¾������½��Џ��­¹��Џ����я��������·�����������Ï��³������������»���¼����¡��³������\���\��\·\���\��я��̏��µ������¾���¹�����¡�돫�»���\���\���\���\��������ҏ�돫��������������돪����·���������«�����������ӏ��­��¹��𡯏�������¡�\���\�̏���ޡ돪�������µ��Ï�����������\���\���\���\���������\Ð\���\���\��\���\�ߏ��¹������¾���¹�������������̏�ď�䏢¡�

��http://omake.accense.com/wiki/LinuxBackupScript �������������돫⏪����

tuzzy92 at 03:59����Permalink����Comments(0)����

2010������08·���16������

procmail ½��������\������¼\�����돫�½���

.procmailrc ������������²���

# Duplication Mail
:0 Wh: msgid.lock
| formail -D 8192 msgid.cache

W:\���\��\���\���/\��\���\��\���\���������½��쏪�»�����ҏ����ԏ����������ӏ�����������������\���\��\���\���(\��\������¼\���\���\»���¼\��������ҏ����ӏ��µ������������)
h:¾���·���������\���\���\������·������\������¼\���������action�����������������(\���\���\���\���\���)

formail:msgid.cache������������������\���\���\���\���������¼��؏�ď��·������Message-ID�����ҏ����Ώ����Џ��·��¡񏩡�ޡ돫�Message-ID������»�������\������¼\������̏��������µ���������������­�����ď���������������Џ��¹������
-D 8192:msgid.cache������8192\Ð\���\��������������������Ώ����Џ��¹������

�����������Ώ�����������msgid.cache����½Ð����������������������������������³���������·������

$ file msgid.cache
msgid.cache: data
$

strings ��������������ď�������ҏ��«���������������������������������叢����������

tuzzy92 at 23:55����Permalink����Comments(0)����

2010������07·���26������

LVM������»����·�����������Ώ�����

�����叢���я����������������ď�ԏ�����HDD������\¹\���\������¼\�������������������»��ӏ����ҏ��·�����ď��«�����������ď������������̏�����¡�


���\��Џ��¼\���\��\·\���\���¾��؏�����
Disk /dev/hdd: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 36483 293049666 8e Linux LVM

���PV(�����쏪����\���\���\������¼\���)��돫�����
# pvcreate /dev/hdd1
# pvdisplay
--- Physical volume ---
PV Name /dev/hdd1
VG Name HDD
PV Size 279.47 GB / not usable 1.31 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 71545
Free PE 7545
Allocated PE 64000
PV UUID XOzpWn-3cZr-KqDr-4Cmx-U0sz-6FLR-B3LKfX

���VG(\���\���\������¼\���\��\������¼\��)��돫�����
# vgcreate HDD /dev/hdd1
# vgdisplay
--- Volume group ---
VG Name HDD
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 279.47 GB
PE Size 4.00 MB
Total PE 71545
Alloc PE / Size 64000 / 250.00 GB
Free PE / Size 7545 / 29.47 GB
VG UUID FYDF2B-VzfF-IlS8-QG1f-O0m0-VTOC-GFwmuC

���LV(������������\���\���\������¼\���)��돫�����
# lvcreate -n MEDIA --size 5G HDD
# lvcreate -n BACKUP --size 200G HDD

# lvdisplay
--- Logical volume ---
LV Name /dev/HDD/MEDIA
VG Name HDD
LV UUID Yk1s2d-CTbG-39vq-RItQ-Cqmp-vhK5-dwrU6B
LV Write Access read/write
LV Status available
# open 1
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/HDD/BACKUP
VG Name HDD
LV UUID Qwtp5z-G2cY-SWP4-u7I7-5BYt-TZZX-A2esD3
LV Write Access read/write
LV Status available
# open 1
LV Size 200.00 GB
Current LE 51200
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

���\���\���\���\���\·\¹\���\�����돩�������������\���\���\���\���
# mkfs.ext3 /dev/HDD/MEDIA
# mkfs.ext3 /dev/HDD/BACKUP

# mkdir /MEDIA
# mkdir /BACKUP

# mount -t ext3 /dev/HDD/MEDIA /MEDIA
# mount -t ext3 /dev/HDD/BACKUP /BACKUP

��fstab
/dev/HDD/MEDIA /MEDIA ext3 defaults 1 2
/dev/HDD/BACKUP /BACKUP ext3 defaults 1 2

���³������\(5G���10G) ��\���\���\���\���\���OK
# lvextend -L +5G /dev/HDD/MEDIA
Extending logical volume MEDIA to 10.00 GB
Logical volume MEDIA successfully resized

# resize2fs /dev/HDD/MEDIA 10G
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/HDD/MEDIA is mounted on /MEDIA; on-line resizing required
Performing an on-line resize of /dev/HDD/MEDIA to 2621440 (4k) blocks.
The filesystem on /dev/HDD/MEDIA is now 2621440 blocks long.

# lvdisplay
--- Logical volume ---
LV Name /dev/HDD/MEDIA
VG Name HDD
LV UUID Yk1s2d-CTbG-39vq-RItQ-Cqmp-vhK5-dwrU6B
LV Write Access read/write
LV Status available
# open 1
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/HDD/BACKUP
VG Name HDD
LV UUID Qwtp5z-G2cY-SWP4-u7I7-5BYt-TZZX-A2esD3
LV Write Access read/write
LV Status available
# open 1
LV Size 200.00 GB
Current LE 51200
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

���½���¾���(10G���5G) ��\���\���\���\���\��я�����������������
# umount /MEDIA/
# resize2fs /dev/HDD/MEDIA 5G
resize2fs 1.39 (29-May-2006)
Please run 'e2fsck -f /dev/HDD/MEDIA' first.

# e2fsck -f /dev/HDD/MEDIA
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/HDD/MEDIA: 97/1310720 files (63.9% non-contiguous), 149272/2621440 blocks
# resize2fs /dev/HDD/MEDIA 5G
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/HDD/MEDIA to 1310720 (4k) blocks.
The filesystem on /dev/HDD/MEDIA is now 1310720 blocks long.

#

# lvreduce -L 5G /dev/HDD/MEDIA
WARNING: Reducing active logical volume to 5.00 GB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce MEDIA? [y/n]: y
Reducing logical volume MEDIA to 5.00 GB
Logical volume MEDIA successfully resized
#

# lvdisplay
--- Logical volume ---
LV Name /dev/HDD/MEDIA
VG Name HDD
LV UUID Yk1s2d-CTbG-39vq-RItQ-Cqmp-vhK5-dwrU6B
LV Write Access read/write
LV Status available
# open 0
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/HDD/BACKUP
VG Name HDD
LV UUID Qwtp5z-G2cY-SWP4-u7I7-5BYt-TZZX-A2esD3
LV Write Access read/write
LV Status available
# open 1
LV Size 200.00 GB
Current LE 51200
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

#

# mount -t ext3 /dev/HDD/MEDIA /MEDIA/

tuzzy92 at 21:42����Permalink����Comments(0)����

2010������04·���21������

VMware+FreeBSD

VMware+FreeBDS

���������¼���«NTP����ޡ���䏢��¼�����������������������¡��������������«date\���\���������������������������¡�
���½�����я�����¼«����̏�����loader.conf

����WMware
http://www.vmware.com/jp/

/boot/loader.conf��������­������µ­
kern.hz=100

���µ»��ӏ���ޡ���䏢��¼��������������ď�¡�

# uname -a
FreeBSD v-web02.localhost 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010 [email protected]:/usr/obj/usr/src/sys/GENERIC i386

# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*192.168.11.1 130.69.251.23 2 u 3 64 377 0.295 -0.139 0.719
#

tuzzy92 at 03:26����Permalink����Comments(0)����

2009������06·���10������

subsonic������mp3\¹\���\������¼\���\���\��

���������³���«������������������µ��������������Џ�����������²»³��⏢���ҏ���돢�­�����ď���������
������������������������²��ď����㏢�«Try���·�����ď��ޏ�����(windows\µ���¼\Ð�돪�³�돢����������)������»���²½���ޏ��������������«�����������������������������ď�¡�
��ď��¾������������������⏢�«���������¹������������subsonic������»����·�����������Ώ����ď�¡�
��OS������FreeBSD7.0

���³���������¼��HP
http://www.freebsdfoundation.org/downloads/java.shtml
http://java.sun.com/javase/downloads/index.jsp
http://subsonic.sourceforge.net/

���ports¹¹���·
# portsnap fetch extract update

���java\���\���\¹\������¼\���
diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2 ������DL������
/usr/ports/distfiles/ �������돪䏩���

tzupdater-1_3_15-2009g.zip ������DL������
/usr/ports/distfiles/ �������돪䏩���
�񡯏��Ð�����ď��̏���̏����

# cd /usr/ports/java/jdk16/ ; pwd
# make install clean

���subsonic\���\���\¹\������¼\���
# cd /usr/local/src/ ; pwd
# wget http://jaist.dl.sourceforge.net/sourceforge/subsonic/subsonic-3.7.beta1-standalone.tar.gz
# mkdir /usr/local/src/subsonic
# tar xvzf subsonic-3.7.beta1-standalone.tar.gz -C subsonic
# mv -i ./subsonic /usr/local/.

# cd /usr/local/subsonic ; pwd
# vi subsonic.sh

�񡯏�����¹¹�����ԏ����
SUBSONIC_HOME=/usr/local/subsonic
SUBSONIC_PORT=���������·������������

# ./subsonic.sh

http://your.domain:\����¼\���������¹���

���mp3upload
mp3\���\�돢����utf-16���������¹������»��ӏ�����������»���²½���ޏ�����²��я�����
������������������\���\��\���\���\���\������������䏪���䏢����������»���²½���ޏ���������

tuzzy92 at 01:13����Permalink����Comments(2)����

2009������02·���04������

mail���html²½(mhonarc)

����mhonarc
http://hydra.nac.uci.edu/indiv/ehood/mhonarc.html

���\���\���\¹\������¼\���
# wget http://hydra.nac.uci.edu/indiv/ehood/release/MHonArc/tar/MHonArc-2.6.16.tar.gz
# tar xvfz MHonArc-2.6.16.tar.
# cd MHonArc-2.6.16 ; pwd

# perl install.me

��������Ώ�����
����\������¼\���\���\��\���\���\���\���
/home/hoge/mail

����html½Ð����\���\��\���\���\���\���
/home/hoge/html

���Ï����Ώ�����\���\���\���\���
/home/hoge/.mhonarc

��html½Ð����������\���\��\���\���\���\��������ҏ�돫��������
# mhonarc -rcfile /home/tuzzy/.mhonarc -outdir /home/hoge/html/ /home/hoge/mail/*

��2²��я�����돪�¹���
# mhonarc -add -rcfile /home/tuzzy/.mhonarc -outdir /home/hoge/html/ /home/hoge/mail/*

��������Ώ�����\���\���\���\���
�񡯏��¾����̏�����¾��Ï����я��������������½Ð�������·�����������������������Ï����������Ώ�������������������������

[!-- ����Ï����䏪���Ώ����� --]
[Reverse]
[Sort]
[NoMailTo]
[Modtime]
[NoMain]
[NoThread]

[!-- \���\���\��������ԏ���̏����� MIME decode ���¹���������������䏪���䏢�������Ð�ޏ�Џ��� --]
[DECODEHEADS]

[!-- �����䏪���䏢�������Ð�ޏ�� --]
[DEFCHARSET]
iso-2022-jp
[/DEFCHARSET]
[CHARSETCONVERTERS]
iso-2022-jp; iso_2022_jp::str2html; iso2022jp.pl
plain; iso_2022_jp::str2html; iso2022jp.pl
[/CHARSETCONVERTERS]

[MIMEARGS]
text/plain:default=iso-2022-jp
[/MIMEARGS]

[TIMEZONES]
JST
[/TIMEZONES]

[!-- ³���\���\���\»���¼\���\���\���\���\���������\���\���\������������½¼�����¹������������������ --]
[MsgPgBegin]
[!doctype html public "-//W3C//DTD HTML//EN"]
[html]
[head]
[title]$SUBJECTNA$[/title]
[link rev="made" href="mailto:$FROMADDR$"]
[/head]
[body]
[/MsgPgBegin]

[!-- ���½¼�����¹������\������¼\���\���\���\���������»��������� --]
[FieldOrder]
subject
date
from
to
cc
[/FieldOrder]

[!-- ³���µ­»��ӏ�����\���\¹\���½���¼�돢���� Subject FromAddress������ --]
[LiTemplate]
[li][b]$SUBJECT$[/b]
[i]$FROM$[/i]
[/LiTemplate]

[!-- �����\��⏢�¼\�����¡�¼���\��⏢�¼\���������µ��� --]
[PrevPgLink chop]
[[a href="$PG(PREV)$"]Prev Page[/a]]
[/PrevPgLink]
[NextPgLink chop]
[[a href="$PG(NEXT)$"]Next Page[/a]]
[/NextPgLink]

[!-- mhonarc footer���������я��½¼�� --]
[NODOC]

tuzzy92 at 01:43����Permalink����Comments(0)����

2009������01·���27������

Hyper Estraier �������������������������

���³���������½���������¹������HP������»������������������ď��������¹��������¡�
��������������½��Џ����������ď��¹¹���µ­����������¾��������������̏��������­�����ď����������������̏�����������������»�ߏ����������������ď�¡�
google������\µ\���\���������������������������������ޏ�����»��ӏ��̏��������­�����������я����������������Ï��ޏ�����
���»���������«���������������«������Hyper Estraier������»����·�����������Ώ����ď�¡�
�񡯏�돫ҏ����䏢����mecab���������³���������������ď��������³������

���������¼��HP
����Hyper Estraier
http://hyperestraier.sourceforge.net/
����QDBM
http://qdbm.sourceforge.net/

���QDBM
# wget http://qdbm.sourceforge.net/qdbm-1.8.77.tar.gz
# tar xvfz qdbm-1.8.77.tar.gz
# cd qdbm-1.8.77 ; pwd

# ./configure --enable-zlib
#==================================================
# Configuring QDBM version 1.8.77 (zlib).
#==================================================
#==================================================
# Ready to make.
#==================================================

# make
#==================================================
# Ready to install.
#==================================================

# make install
#==================================================
# Thanks for using QDBM.
#==================================================

���Hyper Estraier
# wget http://hyperestraier.sourceforge.net/hyperestraier-1.4.13.tar.gz
# tar xvfz hyperestraier-1.4.13.tar.gz
# cd hyperestraier-1.4.13 ; pwd

# ./configure --enable-mecab
#==================================================
# Ready to make.
#==================================================

# make
#==================================================
# Ready to install.
#==================================================

# make check
#==================================================
# Checking completed.
#==================================================

# make install
#==================================================
# Thanks for using Hyper Estraier.
#==================================================

���Hyper Estraier �����Ώ���������
����\���\���\���\���\���\¹\���\���\���\���
/home/web/search

���Ï��о���\���\��\���\���\���\���
/home/web/html

����cgi-bin\���\��\���\���\���\���
/home/web/cgi-bin

����\���\���\���\���
yourdomain.jp

���cgi\¹\���\���\��\��������Ώ�����
# cd /home/web/cgi-bin ; pwd
# cp -ip /usr/local/libexec/estseek.cgi ./.
# cp -ip cp /usr/local/share/hyperestraier/locale/ja/estseek.* ./.

���estseek.conf ��돪����������������������Ώ�����
# vi estseek.conf
indexname: /home/web/search
replace: replace: ^file:////home/web/html{{!}}http://yourdomain.jp

���\���\���\���\���\���\¹\���\���\���\�����돫�����
# cd /home/web ; pwd
# estcmd gather -il ja -sd search /home/web/html

-il ja : �����䏪���䏢���������ҏ��\������
-sd : \���\���\���\���������돫������¹¹���·������»��Џ�����µ­������

���³������
http://yourdomain.jp/cgi-bin/estseek.cgi

���¹¹���·
# cd /home/web ; pwd
# estcmd gather -cl -il ja -sd -cm search /home/web/html

-cm : ��������돩Ώ��·���������������«¹¹���·»���¹������̏��·���·������������½��Џ��������Ώ����ҏ��Ð������
-cl : ¾���½��Џ��­���µ�����������ď�����½��Џ��̡���������я����������������ď����������������\���\���\���\���\���\¹�����ҏ�돩�¹½������

������µ������¾���½���������������������\���\���\���\��������ҏ�돫�½���
# cd /home/web ; pwd
# estcmd purge -cl search


���\­���¼\������¼\���������½Ð
# cd /home/web ; pwd
# estcmd extkeys -um search

-um : mecab������»���������

����������������̏����ӏ�����\���\���\���\���\�돢����cron���������·���³���������Ð������򏫳���������·������
(�������я�����������web¹¹���·���·���������������«���������½���������ԏ����㏢���������������������������������Ï���������)

���\���\���\���\���\���\¹������돪������²½
# cd /home/web ; pwd
# estcmd optimize search

�񡯏����ď������������������������������������������·������

���»²¹���
# find /home/web/html -type f -name *.htm* | wc -l
245
# estcmd gather -il ja -sd search /home/web/html
estcmd: INFO: finished successfully: elapsed time: 0h 0m 3s

# estcmd extkeys -um search
estcmd: INFO: finished successfully: elapsed time: 0h 0m 3s

with 245 documents and 23857 words.

#����du -csh ./search/*
2.6M ./search/_attr
190K ./search/_aux
256K ./search/_fwm
818K ./search/_idx
2.0M ./search/_kwd
132K ./search/_list
2.0K ./search/_meta
2.0M ./search/_text
152K ./search/_xfm
8.2M total

245������������html\���\���\���\����������Ð�����ď�����������3������
23857������������\­���¼\������¼\���������½Ð������������3������
\������¼\���\��㏢�¼\¹����������8.2M

tuzzy92 at 02:02����Permalink����Comments(0)����

2009������01·���26������

�����������䏢�������ď�����������mecab�����ҏ����������������������Ώ����ġ��

���Ï�����¼��HP
http://mecab.sourceforge.net/#install

# wget http://jaist.dl.sourceforge.net/sourceforge/mecab/mecab-0.97.tar.gz
# tar xvfz mecab-0.97.tar.gz
# cd mecab-0.97 ; pwd

���\��\������¼����½Ð������
# ./configure

make all-recursive
Making all in src
/usr/local/bin/bash ../libtool --tag=CXX --mode=link g++ -O3 -Wall -Wno-deprecated -o mecab mecab.o libmecab.la -liconv -lpthread -lpthread -lpthread -lstdc++
g++ -O3 -Wall -Wno-deprecated -o .libs/mecab mecab.o ./.libs/libmecab.so -liconv -lpthread -lstdc++ -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -liconv
*** Error code 1

Stop in /usr/local/src/mecab-0.97/src.
*** Error code 1

Stop in /usr/local/src/mecab-0.97.
*** Error code 1

Stop in /usr/local/src/mecab-0.97.
#

��򏪤Ð��돫ӏ��·������(�������­�����Џ�ď�ԏ�����»���������)
# ./configure LIBS=-liconv CPPFLAGS=-I/usr/local/include LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
# make

�������������\��\������¼����½Ð������
#make install

Making install in src
test -z "/usr/local/lib" || .././install-sh -c -d "/usr/local/lib"
.././install-sh: Permission denied
*** Error code 126

Stop in /usr/local/src/mecab-0.97/src.
*** Error code 1

Stop in /usr/local/src/mecab-0.97/src.
*** Error code 1

Stop in /usr/local/src/mecab-0.97.

��򏪤Ð��돫ӏ��·������(install-sh������¼���¹��ԏ�������ҏ����؏����ď������������¼����������������)
# chmod 744 install-sh

�������������������������
# make install

������򏫳������

���¼­½���\���\���\¹\������¼\���
# mecab
tagger.cpp(147) [load_dictionary_resource(param)] param.cpp(71) [ifs] no such file or directory: /usr/local/lib/mecab/dic/ipadic/dicrc
#

# wget http://downloads.sourceforge.net/mecab/mecab-ipadic-2.7.0-20070801.tar.gz?use_mirror=jaist
# tar xvfz mecab-ipadic-2.7.0-20070801.tar.gz
# cd mecab-ipadic-2.7.0-20070801 ; pwd

# ./configure && make
done!
echo To enable dictionary, rewrite /usr/local/etc/mecabrc as \"dicrc = /usr/local/lib/mecab/dic/ipadic\"
To enable dictionary, rewrite /usr/local/etc/mecabrc as "dicrc = /usr/local/lib/mecab/dic/ipadic"

# make install

���³������
#mecab
µ­¼��ԏ���µ\¼��ӏ�����µ���¼��ҏ�����µ��¼��ҏ��·������
µ­¼��� ���¾»���,�돫�������,*,*,*,*,µ­¼���,\­\·\���,\­\·\���
���� ½���»���,³���½���»���,�돫�������,*,*,*,����,\��,\��
µ\¼��� ���¾»���,�돫�������,*,*,*,*,µ\¼���,\­\·\���,\­\·\���
������ ½���»���,³���½���»���,�돫�������,*,*,*,������,\���,\���
µ���¼��� ���¾»���,�돫�������,*,*,*,*,µ���¼���,\­\·\���,\­\·\���
������ ½���»���,³���½���»���,�돫�������,*,*,*,������,\���,\���
µ��¼��� ���¾»���,\µ�����Џ����䏪�³,*,*,*,*,µ��¼���,\­\·\���,\­\·\���
���· �����»���,¼«����,*,*,\µ�����Џ���\¹\���,����񏪿���·���,���¹������,\·,\·
������ ½��؏����»���,*,*,*,������¼�������\���,����Ï�����·���,������,\���,\���

�񡯏��������«������\������¼\���
#mecab -O wakati
µ­¼��ԏ���µ\¼��ӏ�����µ���¼��ҏ�����µ��¼��ҏ��·������
µ­¼��� ���� µ\¼��� ������ µ���¼��� ������ µ��¼��� ���· ������

OK����������������������

tuzzy92 at 04:56����Permalink����Comments(0)����

2009������01·���19������

ruby gems rails

��򏢱���¼��HP
http://www.ruby-lang.org/ja/
http://docs.rubygems.org/

���ruby
# wget http://core.ring.gr.jp/archives/lang/ruby/ruby-1.8.6-p287.tar.gz
# tar xvfz ruby-1.8.6-p287.tar.gz
# cd ruby-1.8.6-p287 ; pwd

# ./configure --prefix=/usr/local/ruby && make && make install
# /usr/local/ruby/bin/ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
#

���gem
# wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
# tar xvfz rubygems-1.3.1.tgz
# cd rubygems-1.3.1 ; pwd
# ruby setup.rb

���rail
# gem list

*** LOCAL GEMS ***


# gem install rails --include-dependencies

# gem list

*** LOCAL GEMS ***

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
rails (2.2.2)
rake (0.8.3)
#

�񡯏����¹���
# gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
- INSTALLATION DIRECTORY: /usr/local/ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/ruby/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/local/ruby/lib/ruby/gems/1.8
- /root/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
#

# gem --help

RubyGems is a sophisticated package manager for Ruby. This is a
basic help message containing pointers to more information.

Usage:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]

Examples:
gem install rake
gem list --local
gem build package.gemspec
gem help install

Further help:
gem help commands list all 'gem' commands
gem help examples show some examples of usage
gem help platforms show information about platforms
gem help show help on COMMAND
(e.g. 'gem help install')
Further information:
http://rubygems.rubyforge.org
#

tuzzy92 at 02:01����Permalink����Comments(0)����

2008������12·���16������

\½���¼\¹\���\���\�ޏ��¼\��������ҡ���������� paco

����µ�ߏ��·�����ӏ�����������XOOPS�����ҏ����Џ����������������Ώ����� ��¡ߏ�����²��я��������¾���µ���µ�����я�������µ��𡯏�����������������������������paco������»����·�����������Ώ����ď�¡�

FreeBSD������������������������­�����ď�����������»�ߏ����������������������ď��ޏ�����BSD���������������Ð�ޏ�Џ��·���������µ���������������·��������������
Note:
Paco does not work on systems in which binaries are linked statically, like
FreeBSD or OpenBSD.

������CentOS4.7������paco������\���\���\¹\������¼\������·»����·�����������Ώ����ď�¡�

���paco
# wget http://downloads.sourceforge.net/paco/paco-2.0.6.tar.gz
# tar xvfz paco-2.0.6.tar.gz
# cd paco-2.0.6 ; pwd

# ./configure

No package 'gtkmm-2.4' found
configure: error: Package requirements (gtkmm-2.4 >= 2.12) were not met:

Ž���(Ž��Ρ��Ž���Ž���)Ž��Ž���Ž��

���������(yum���������«���������«����������������������������)gtkmm������\���\���\¹\������¼\������·�����������Ï��������¹������������
# wget http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.14/gtkmm-2.14.3.tar.gz
# tar xvzf gtkmm-2.14.3.tar.gz
# cd gtkmm-2.14.3 ; pwd
# ./configure

Package glibmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glibmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glibmm-2.4' found

Ž���(Ž��Ρ��Ž���Ž���)Ž��Ž���Ž��

���������(yum���������«���������«����������������������������)glibmm������\���\���\¹\������¼\������·�����������Ï��������¹������������
# wget http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.18/glibmm-2.18.1.tar.gz
# tar xvfz glibmm-2.18.1.tar.gz
# cd glibmm-2.18.1 ; pwd
# ./configure

Package sigc++-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sigc++-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sigc++-2.0' found

Ž���(Ž��Ρ��Ž���Ž���)Ž��Ž���Ž��

���������(yum���������«���������«����������������������������)�����돪�²¼¼«½���
Ž���(Ž��Ρ��Ž���Ž���)Ž��Ž���Ž��


����³���³���«�����������䏪���ԡ��
# cd paco-2.0.6 ; pwd
# ./configure --help | grep gpaco
--disable-gpaco disable compiling gpaco (the GTKMM port of paco)

# ./configure --disable-gpaco
# make
# make install
# make logme ��paco¼«��ď��������paco���������Ð������

���³������
# paco -a
paco-2.0.6

���»����·������rsync3.0.4������\���\���\¹\������¼\������·�����������Ώ�����
# tar xvfz rsync-3.0.4.tar.gz
# cd rsync-3.0.4 ; pwd
# ./configure && make

# paco -D make install ��«���³���³������»��ӏ���

mkdir -p /usr/local/bin
/usr/bin/install -c -m 755 rsync /usr/local/bin
mkdir -p /usr/local/share/man/man1
mkdir -p /usr/local/share/man/man5
if test -f rsync.1; then /usr/bin/install -c -m 644 rsync.1 /usr/local/share/man/man1; fi
if test -f rsyncd.conf.5; then /usr/bin/install -c -m 644 rsyncd.conf.5 /usr/local/share/man/man5; fi

��³������(-1������1¹���1\���\���\�ޏ��¼\������½¼��������\���\��\·\���\���)
# paco -a -1
paco-2.0.6
rsync-3.0.4

(¼«����̏�����)\���\���\¹\������¼\������¼������������²������·�����������Ώ�����������
FreeBSD������»�����𡯏�������������������»�������돢�������ޏ��������«�����������������������𡭢����������

��PS
���¾���µ���µ������¾��Ï����я����Ѣ�������������̏����������Ï�𡭏�𡭏������������������¹����

tuzzy92 at 03:39����Permalink����Comments(2)����

2008������12·���15������

��µ��𡯏�������𡯏����������������ҏ���������

Perl������\��\���\��\������¼\���

������½¾���
/usr/bin/perl (5.8.8)

���\��\���\��\������¼\���
/usr/local/perl-5.10.0/bin/perl (5.10.0)

���·perl\���\���\¹\������¼\���������
µ���perl������\���\������¼\���
\·\���\���\���\���\���\���\���\��������ҏ��\������\��\���\��\������¼\������돪�»

���³���³������������������²��ď������������������������������·
\·\���\���\���\���\���\���\���\��������ҏ�돫�½��䏢�·\���\������¼\������·������µ���perl�����ҏ��������·������
���µ�����¡������­���������������¹
��������������������������������·

���������³���³������(���������¼���«)µ���perl�����ҏ��·µ��\���\���\¹\������¼\������·�����������Ï�����»�ߏ�����������
$ sh ./Configure
$ make

���������·������½�������make: don't know how to make . Stop
������make���̏��������­������������

�����������叢����\���\���\¹\������¼\������·������5.10.0������������������������������������make���������­������
���·���·������version������perl������\���\���\¹\������¼\������¹������������������������perl������make���¹���������������­��������������������������������

��µ��𡯏�������𡯏����������������ҏ���������

tuzzy92 at 02:49����Permalink����Comments(4)����

2008������11·���24������

scponly

FTP������������������������������
SCP������»������������»�����ď�������¡��ޏ�����SSH������\µ���¼\Ð\���\��\���\��я��µ���»�����ď�����������������
¹¹������������������������\���\��\���\���\���\����돪�³�돢ġ����������»�����ď�����������������
���½�����я��������������̏������������������������������ď�����scponly

���Ï�����¼��HP
http://www.sublimation.org/scponly/wiki/index.php/Main_Page

����mergelog��¡ߏ���\���\���\���������¾��ԏ�������¡ߏ���\���\���\������½������������������¡ߏ����������������ӏ��������«���������������¹���������¾�����
CentOS4.7+scponly4.8+WinSCP4.17������������chroot�����������������������������¾���


���\���\���\¹\������¼\���
# wget http://jaist.dl.sourceforge.net/sourceforge/scponly/scponly-4.8.tgz
# tar xfz scponly-4.8.tgz
# cd scponly-4.8 ; pwd
/usr/local/src/scponly-4.8
#

# ./configure --prefix=/usr/local/scponly --enable-chrooted-binary --enable-winscp-compat
# make

# make install
echo "0" > debuglevel
/usr/bin/install -c -d /usr/local/scponly/bin
/usr/bin/install -c -d /usr/local/scponly/man/man8
/usr/bin/install -c -d /usr/local/scponly/etc/scponly
/usr/bin/install -c -o 0 -g 0 scponly /usr/local/scponly/bin/scponly
/usr/bin/install -c -o 0 -g 0 -m 0644 scponly.8 /usr/local/scponly/man/man8/scponly.8
/usr/bin/install -c -o 0 -g 0 -m 0644 debuglevel /usr/local/scponly/etc/scponly/debuglevel
if test "xscponlyc" != "x"; then \
/usr/bin/install -c -d /usr/local/scponly/sbin; \
rm -f /usr/local/scponly/sbin/scponlyc; \
cp scponly scponlyc; \
/usr/bin/install -c -o 0 -g 0 -m 4755 scponlyc /usr/local/scponly/sbin/scponlyc; \
fi
#

���\��\«\���\���\�����돫�����(½���²��я���������)
# make jail
/usr/bin/install -c -d /usr/local/scponly/bin
/usr/bin/install -c -d /usr/local/scponly/man/man8
/usr/bin/install -c -d /usr/local/scponly/etc/scponly
/usr/bin/install -c -o 0 -g 0 scponly /usr/local/scponly/bin/scponly
/usr/bin/install -c -o 0 -g 0 -m 0644 scponly.8 /usr/local/scponly/man/man8/scponly.8
/usr/bin/install -c -o 0 -g 0 -m 0644 debuglevel /usr/local/scponly/etc/scponly/debuglevel
if test "xscponlyc" != "x"; then \
/usr/bin/install -c -d /usr/local/scponly/sbin; \
rm -f /usr/local/scponly/sbin/scponlyc; \
cp scponly scponlyc; \
/usr/bin/install -c -o 0 -g 0 -m 4755 scponlyc /usr/local/scponly/sbin/scponlyc; \
fi
chmod u+x ./setup_chroot.sh
./setup_chroot.sh

Next we need to set the home directory for this scponly user.
please note that the user's home directory MUST NOT be writeable
by the scponly user. this is important so that the scponly user
cannot subvert the .ssh configuration parameters.

for this reason, a writeable subdirectory will be created that
the scponly user can write into.

Username to install [scponly]scpuser : ��«��돫�����\��\«\���\���\���
home directory you wish to set for this user [/home/scpuser] : ��«\��叢�¼\���\���\��\���\���\���\���
name of the writeable subdirectory [incoming] : ��«��돫¢����\���\��\���\���\���\���

creating /home/scpuser/incoming directory for uploading files

Your platform (Linux) does not have a platform specific setup script.
This install script will attempt a best guess.
If you perform customizations, please consider sending me your changes.
Look to the templates in build_extras/arch.
- joe at sublimation dot org

please set the password for scpuser:
Changing password for user scpuser.
New UNIX password:
BAD PASSWORD: it does not contain enough DIFFERENT characters
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
if you experience a warning with winscp regarding groups, please install
the provided hacked out fake groups program into your chroot, like so:
cp groups /home/scpuser/bin/groups
#

�����̏����������돪؏�����¼��؏��ޏ���������돢�������ď�����
# cp -ip ./groups /usr/local/scponly/bin/.

���2²��я�����돪�¹��Ώ�����\��\«\���\���\�����돫�����½��������
# cp -ip ./setup_chroot.sh /usr/local/scponly/bin/.
# cp -ip ./config.h /usr/local/scponly/bin/.

���\��\«\���\���\�����돫�����(2²��я�����돪�¹���)
# /usr/local/scponly/bin/setup_chroot.sh

Next we need to set the home directory for this scponly user.
please note that the user's home directory MUST NOT be writeable
by the scponly user. this is important so that the scponly user
cannot subvert the .ssh configuration parameters.

for this reason, a writeable subdirectory will be created that
the scponly user can write into.

Username to install [scponly]scpuser2
home directory you wish to set for this user [/home/scpuser2]
name of the writeable subdirectory [incoming]

creating /home/scpuser2/incoming directory for uploading files

Your platform (Linux) does not have a platform specific setup script.
This install script will attempt a best guess.
If you perform customizations, please consider sending me your changes.
Look to the templates in build_extras/arch.
- joe at sublimation dot org

please set the password for scpuser2:
Changing password for user scpuser2.
New UNIX password:
BAD PASSWORD: it does not contain enough DIFFERENT characters
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
if you experience a warning with winscp regarding groups, please install
the provided hacked out fake groups program into your chroot, like so:
cp groups /home/scpuser2/bin/groups
#


�����돫�����\��\«\���\���\���³������
# id scpuser ; finger scpuser
uid=9004(scpuser) gid=9005(scpuser) groups=9005(scpuser)
Login: scpuser Name: (null)
Directory: /home/scpuser Shell: /usr/local/scponly/sbin/scponlyc
Never logged in.
No mail.
No Plan.
#

# id scpuser2 ; finger scpuser2
uid=9005(scpuser2) gid=9006(scpuser2) groups=9006(scpuser2)
Login: scpuser2 Name: (null)
Directory: /home/scpuser2 Shell: /usr/local/scponly/sbin/scponlyc
Never logged in.
No mail.
No Plan.
#


���/etc/shells ������²���
# /usr/local/scponly/sbin/scponlyc >> /etc/shells
# /usr/local/scponly/bin/scponly >> /etc/shells

��scponlyc������chroot scponly������chroot���������·���������������­������shell

���WinSCP�����������������䏪�³�������½���·������\��\������¼
==============================
SCP���������������������¾�����������³«»������������­���������»�����я�¡�SCP����\���\���\¹\������¼\������µ������������������������\���\¹���̏��������������������������������³������������³���������·���������������������µ��������¡�SCP����������������������������SFTP������»����·�����������Ώ��������³�����������ҡ�«���������������¹��¡�
\³\���\���\��������������������������� 1 ������¼��돪���ԏ��·���������·������
==============================

/chroot/ ������������/dev/null ���̏��µ�����������������䏪�³���������­���������������������·������

���������/chroot/dev/null ��돫�����

# cd /home/scpuser/ ; pwd
/home/scpuser
# mkdir ./dev
# mknod -m 666 ./dev/null c 1 3
# chmod 666 ./dev/null
#

����������������������OK������
������¼��HP������FAQ���������­�����������я�����½��Џ������������������������ď�����orz

http://www.sublimation.org/scponly/wiki/index.php/Help:Contents

��̏������������돫⏪����
Chroot and CentOS 5.x
On a recent CentOS (5.2 here), "sftp-server" doesn't work from scratch after you've setup your jail during the scponly install (via make jail).

During "make jail", let's say you specified /chroot/dir/ as your chroot main path, here are the next few steps you'll have to do in order to have your secure sftp access work :

edit /chroot/dir/etc/ld.so.conf and replace its content with :
/lib
/usr/lib
now type ldconfig -r /chroot/dir/
copy /lib64/ld-linux-x86-64.so.* in /chroot/dir/lib64/
copy /etc/group in /chroot/dir/etc/
create the folder /chroot/dir/etc/selinux and create a file named "config" there
insert the following content in this file :
SELINUX=disabled
SELINUXTYPE=targeted
SETLOCALDEFS=0
now create the folder /chroot/dir/dev
type mknod /chroot/dir/dev/null c 1 3
type chmod 666 /chroot/dir/dev/null
And there you are.

Retrieved from "http://www.sublimation.org/scponly/wiki/index.php/FAQ"

2f76564c.jpg

tuzzy92 at 02:18����Permalink����Comments(8)����

2008������11·���18������

���������«�����������������ď��«�����������������������\³\���\���\��������ҏ����ď����ď����������������Ώ�����

�돪�³�돢����¾������»����������������������������������

[root@localhost ~]# rm -fr /*
rm: cannot remove directory `/dev/shm': \���\Ð\���\¹���������·������������\���\½���¼\¹����\���\������¼¾��؏����ӏ��������¹
rm: cannot remove `/dev/pts/0': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove directory `/misc': \���\Ð\���\¹���������·������������\���\½���¼\¹����\���\������¼¾��؏����ӏ��������¹
rm: cannot remove directory `/net': \���\Ð\���\¹���������·������������\���\½���¼\¹����\���\������¼¾��؏����ӏ��������¹
rm: cannot remove `/proc/scsi/device_info': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove `/proc/scsi/scsi': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove `/proc/asound/I82801AAICH': µ���²������µ��������������������������������������돫��������¹

(��¢�)

rm: cannot remove directory `/sys/fs': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove directory `/var/lib/nfs/rpc_pipefs/statd': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove directory `/var/lib/nfs/rpc_pipefs/portmap': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove directory `/var/lib/nfs/rpc_pipefs/nfs': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove directory `/var/lib/nfs/rpc_pipefs/mount': µ���²������µ��������������������������������������돫��������¹
rm: cannot remove directory `/var/lib/nfs/rpc_pipefs/lockd': µ���²������µ��������������������������������������돫��������¹
[root@localhost ~]#

tuzzy92 at 02:07����Permalink����Comments(3)����

2008������11·���11������

unzip

��­������\���\���\¹\������¼\������·������FreeBSD7.0
http://blog.livedoor.jp/tuzzy92/archives/51862988.html

>FreeBSD7.0�����ҏ����Џ����������������Ώ�����
>\���\���\�ޏ��¼\���������Kernel Developer�����ҏ����쏪����

µ��������������������ď�����unzip\³\���\���\������̏��������«������������
��������������������������(���������·������)port���«������\���\���\¹\������¼\���

# cd /usr/ports/archivers/unzip
# make && make install

#which unzip
/usr/local/bin/unzip

�����������������ď�����»������������������������ޏ��������µ�����������������ԏ�����������������������

tuzzy92 at 23:55����Permalink����Comments(0)����

2008������10·���21������

\���\���\���\���\���\���\�����돫�����

$ diff -Naru ½������µ�����\���\���\���\��� ½������µ������\���\���\���\��� > \���\���\���\���\���\���\���

���������ޏ����������������ď�����������¡򏪪����������������«�����������ď�������¡�

tuzzy92 at 01:37����Permalink����Comments(2)����

2008������08·���30������

mergelog - a fast tool to merge http log files by date

(������𡯏��Ð)\���\���\���\���\���\��я��µ������������������������web\µ���¼\Ð������\���\�돢����1�����������������������������������ď���������

���½�����я�����»��Џ����������������̏����� mergelog
���¾����돢����\·\���\��\���������������»�������������������\·\���\��\���������������������

mergelog logfile1 logfile2 ...

����MergeLog
http://mergelog.sourceforge.net/

������������������������������½Ð²��Џ����������ď��«�����������ď����������¡��



tuzzy92 at 01:30����Permalink����Comments(0)����

2008������06·���16������

bash: rsync: command not found

rsync������»���������������\���\������¼\���\µ���¼\Ð������\Ð\���\���\��\���\�ߏ��¹������\¹\���\���\��\���������¼���¹��ԏ�����������
��­������\��\������¼���̏�����������

+ nice rsync -Hax --delete --exclude-from=/root/exclude.list -e ssh /usr/home �����䏪�³������\µ���¼\Ð:/backup/.
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(635) [sender=3.0.2]


-rsync-path=/usr/local/bin/rsync'
������������\���\������¼\���\µ���¼\Ð������rsync\���\���\���\¹������»������������¹������»��ӏ�����²��я�����

====================
rsync is a file transfer program capable of efficient remote update
The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect
-e, --rsh=COMMAND specify the remote shell to use
--rsync-path=PROGRAM specify the rsync to run on the remote machine
--blocking-io use blocking I/O for the remote shell
====================

�����������������Ώ����������ҏ����������������������ď����؏���������������������������������²��ď�����µ���������\��\������¼����½Ð�����ď����я����������������Ï��폢�폢��

tuzzy92 at 03:32����Permalink����Comments(0)����

2008������06·���04������

sl

�����������ď����돢����\���\��ď�����2������

\��ď��¼\���\���\���������SL�����ҏ����ӏ��������»�����������á��

# wget http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/sl.tar
# tar xvf sl.tar
(# wget http://www.izumix.org.uk/sl/sl5-1.patch)
# cd sl ; pwd
(# patch -i ../sl5-1.patch)
# make
# mv -i sl /usr/local/bin/.

\���\���\��������ҏ����ӏ��������������������·����������������������������������������������������������½����������������»���������
���µ�������������������������������������·���«���ޏ�����������(����������\���\���)


���Ï��­���������µ»��� % sl(\½���¼\¹�����只���叢�µ)
http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/

����SL ²��Џ�����·��²���(\���\���\��������只���叢�µ)
http://www.izumix.org.uk/sl/

²��Џ�����\���\���\���������������(������¼��HP�������������돫⏪����)
1: ����������⏢��������²���
2: µ���¼��ӏ���������²���
3: ����¼��ӏ����¡ޏ�򏪱���
4: µ���¼��ӏ�����ď�ԏ��������Ï�ď�ԏ�����������������·���������
5: ����¼��ӏ�����\¹\��ԏ��¼\������������Ï�ď�ԏ�����������������·���������
6: ����¼��ӏ����¡ޏ�򏪱��䏢�����­���µ�����ҏ����Ï�ď�ԏ�����������������������·���������
7: ����¼��ӏ��̡ޏ�򏪱��䏢�¹������¾���¹���������, ¼�ߏ�����µ����̡돫�������¾������̏��������«���ޏ��������«��������돩�������¹��Ώ�����������µ����½
8: D51 »��½�������� (�����䏪���ӏ�����²��Ώ����쏪��¼��ӏ��������¹)

tuzzy92 at 01:41����Permalink����Comments(0)����

2008������06·���03������

root��������������돫�½��䏢�������­������������\���\���\���\���(\���\��\���\���\���\���)

��돪������\���\��ď��̏��������������������������Џ�����������������������������������
r@ym@n·�����𡭏�����������

FreeBSD/Linux������root��������������돫�½��䏢�������­������������\���\���\���\���������돫�����������

���FreeBSD7.0
���\���\���\���\�����돫�����/³������
#touch freebsd.txt
#ls -l freebsd.txt
-rw-r--r-- 1 root wheel 0 Jun 4 00:03 freebsd.txt

��������Ώ�����/³������
#chflags schg freebsd.txt
#ls -l freebsd.txt
-rw-r--r-- 1 root wheel 0 Jun 4 00:03 freebsd.txt

�����돫�½��䏢�·�����������Ώ�������쏢�������­������������
#rm -f freebsd.txt
rm: freebsd.txt: Operation not permitted
#

��������Ώ�����²���½���/³������
#chflags noschg freebsd.txt
#ls -l freebsd.txt
-rw-r--r-- 1 root wheel 0 Jun 4 00:03 freebsd.txt

�����돫�½���/³������
#rm -f freebsd.txt
#ls -l freebsd.txt
ls: freebsd.txt: No such file or directory
#

���Linux(CentOS4.6)
���\���\���\���\�����돫�����/³������
# touch linux.txt

# ls -l linux.txt
-rw-r--r-- 1 root root 0 6·��� 3 23:53 linux.txt
# lsattr linux.txt
------------- linux.txt

��������Ώ�����/³������
# chattr +i linux.txt

# ls -l linux.txt
-rw-r--r-- 1 root root 0 6·��� 3 23:53 linux.txt
# lsattr linux.txt
----i-------- linux.txt

�����돫�½��䏢�·�����������Ώ�������쏢�������­������������
# rm -f linux.txt
rm: cannot remove `linux.txt': µ���²������µ��������������������������������������돫��������¹
#

��������Ώ�����²���½���/³������
# chattr -i linux.txt
# lsattr linux.txt
------------- linux.txt
# ls -l linux.txt
-rw-r--r-- 1 root root 0 6·��� 3 23:53 linux.txt

�����돫�½���/³������
# rm -f linux.txt
# ls -l linux.txt
ls: linux.txt: ���½���������������Ï�����\���\���\���\���������\���\��\���\���\���\��������������������������»������
#

������������������������vi������������������������½������������������­������������
���µ�������������������������������������·���«���ޏ�����������(����������\���\���)

tuzzy92 at 23:55����Permalink����Comments(2)����

2008������03·���25������

FreeBSD7.0�����ҏ����Џ����������������Ώ�����

\���\���\�ޏ��¼\���������Kernel Developer�����ҏ����쏪����

������²���������bash�����ҏ����Џ����������������Ï��������·�����ď��������³���������������ޏ����¡돪㏢����Disc-2���̏���̏���ߏ����������������ġ��
���µ������������������������������\���\���\¹\������¼\������¼������������½������µ���·���������������³�����Ï�����¡�


# uname -a
FreeBSD hoge.localhost 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [email protected]:/usr/obj/usr/src/sys/GENERIC i386

tuzzy92 at 23:13����Permalink����Comments(1)����

2008������02·���21������

VirtualPC2007+CentOS5.1

µ�ߏ��·�����ӏ�����������VirtualPC2007������CentOS������\���\���\¹\������¼\���

�����������������������������������������������ď����ԏ���̏�������������돪����

���²��ҏ����䏪���㏢��\���\���
/etc/X11/xorg.conf ������DefaultDepth������24���16������������¹¹(2²���½���)

���\���\���\¹�����ҏ����¼�ޏ��·������������
/boot/grub/grub.conf������kernel�����ԏ���̏�����i8042.noloop�����ҏ�����²���
kernel /boot/vmlinuz-2.6.18-53.1.13.el5 ro root=LABEL=/ rhgb quiet i8042.noloop

vp���³���­�����ҏ�����������

tuzzy92 at 00:52����Permalink����Comments(0)����

2007������09·���17������

���򏩡��䏢����\������¼\���

2/10/16������

������¼���������32��������������ď�ԏ�𡯏�����������������»��ӏ����ҏ��������������ď�����������»���½������̏��·���·������½��폢���¡돫������䏢¡�

tuzzy92 at 23:29����Permalink����Comments(1)����

2007������08·���16������

snmpd\��\���\��\������¼\���������������������\µ���¼\Ð������²���·��⏢����

¾���������load averages 1����돢����������\������¼\������·������������������¼«������\µ���¼\Ð(1¹���µ���)��¡�
������²��㏢��������돩̏�����snmpd��¡񏪱���²���¾��آ�·�����ҏ��������������ď�����������������²��㏢����³����ޏ��������������������«���

�����쏢����»����·������snmpd������5.2.3���5.4.1������\��\���\��\������¼\�����¡�
���¹������������·��������쏢����������²��㏢��·��⏢����

²��ď��̏��½�����я��������������������̏����Ï����я����������������Ï��폢�폢��

f8cf9fac.gif


tuzzy92 at 23:55����Permalink����Comments(2)����

2007������07·���13������

FreeBSD Linux\��\���\���\������¼\���

��Linux\��\���\���\������¼
Linux�����Џ�����\³\���\���\���\������µ������������\Ð\���\���\���������FreeBSD¾���������¼���¹���

���(���µ���������³������������)³������
# kldstat -v | grep -i linux
# grep -i linux /etc/rc.conf

��������Ώ�����������²���
# vi /etc/rc.conf

��­�����ҏ�����²���
linux_enable="YES"

��������ġޏ��
# kldload linux

���³������
# kldstat -v | grep -i linux

2 1 0xc76c1000 15000 linux.ko
78 linuxelf
79 linuxaout

tuzzy92 at 22:27����Permalink����Comments(0)����

2007������06·���08������

phpMyAdmin 2.10.1\���\���\¹\������¼\���

\��\«\���\���\��������ҏ�돫�����·���½��������񏢱�������������돢�«���¹['auth_type'] = 'config';�����ҏ����쏪����

���mysql\��\«\���\���\�����돫�����
# mysql -u root -p

mysql> GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO hoge@localhost IDENTIFIED BY 'hogehoge';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW GRANTS FOR hoge@localhost ;
+-------------------------------------------------------------------------------------------------------------+
| Grants for hoge@localhost |
+-------------------------------------------------------------------------------------------------------------+
| GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'hoge'@'localhost' IDENTIFIED BY PASSWORD '0b9eb44c024ed960' |
+-------------------------------------------------------------------------------------------------------------+
2 rows in set (0.01 sec)

mysql> quit

���\���\���\���\������¼\��� \���\���\¹\������¼\���
# fetch http://jaist.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.10.1-all-languages.tar.gz
# tar xvfz phpMyAdmin-2.10.1-all-languages.tar.gz
# mv -i ./phpMyAdmin-2.10.1-all-languages /usr/local/phpmyadmin

��������Ώ�����
# cd /usr/local/phpmyadmin/ ; pwd
# vi config.inc.php


/* Servers configuration */
$i = 0;

/* Server localhost (config:tuzzy) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'hoge';
$cfg['Servers'][$i]['password'] = 'hogehoge';

/* End of servers configuration */

?>

���\��쏢�¼\������¼������¹¹(httpd������\��쏢�¼\������¼������¹������������»������)
# chown -R www:www /usr/local/phpmyadmin

�������돢�������ď�����\��Џ��¼\���\���\·\���\��я�����¹¹
# cd /usr/local/phpmyadmin ; pwd
# chmod 600 config.inc.php

���apache�����Ώ�����(������¹\�����Ώ�����)

Alias /phpmyadmin "/usr/local/phpmyadmin/"

[Directory "/usr/local/phpmyadmin/"]
Options NONE
Order Allow,Deny
Allow from all
[/Directory]

[Location "/phpmyadmin"]
AuthType Basic
AuthName Admin
AuthUserFile /usr/local/apache/htdocs/admin/.htpasswd
Require valid-user
[/Location]

���\��\���\»\¹³������
http://yourdomain/phpmysdmin


���tips
���web¾��������������Ώ��������������­���������ޏ�����»�������������������������������
http://yourdomain/phpmysdmin/scripts/setup.php

tuzzy92 at 18:19����Permalink����Comments(0)����

2007������04·���23������

virtualpc2007+CentOS4.4

kernel panic������¾����������ޏ�叢�
virtualpc2007������CentOS4.4������\���\���\¹\������¼\������·�����ď�¡�
������init5������µ�������돢�µ���»�����ď����������������я��������������³���������������¼???

SVGA������²��ҏ����䏪���㏢�������Ï��̏����������я��«���������������������������������������������«��������������������������������¡�
�����Ï��¼�����я�¡�¡�¡�

²��ҏ����䏪���㏢������������������������������ġ������ҏ��«��𡯏����������Ώ�������¡�����������������\��\���\Ð\���\¹������
�����������������ď���������32bit���8bit������������¹¹���·��������돩�µ�������돢¡�

���������³����������X���̏����̏��������������³���������¼!!!

system-config-display ������»����¹���̏�������������������

/etc/X11 �돪�²¼�����ҏ��«������������xorg.conf.backup
�����������я�����\���\���\���\������̏��������­��������������¡�
\���\���\���\¹\���\���\�ߏ����ҏ��«���������������������µ������������¹¹���·������»��С���ӏ�¡�\���\���\­���¼��¡�

X����µ�������돢�¹���������³������������³���������·�����ď���������xorg.conf�����ҏ�������������������¡�

xorg.conf(��������)
----------------------
Section "Device"
Identifier "Videocard0"
Driver "s3"
VendorName "Videocard vendor"
BoardName "intel865"
EndSection
----------------------

Driver���������Ώ��������̏��������ޏ��������������«�����������ď������̏�����돩̏��������·��������¡�
����̏����⏢���������Ώ��������·��������돩�µ�������돢¡�¡�¡�OK ^^b

virtualpc2007����������돢����CentOS4.4���«������\���\���\��½��Џ��­¹��Џ����Ώ�¡�
������»��µ�������������³Ð��¡�






tuzzy92 at 21:18����Permalink����Comments(0)����

2007������04·���08������

nfs�����ӏ�����½��Џ��­

���\µ���¼\Ð(CentOS4.4)
[root@test nfs]# ps ax | egrep "nfs|mountd|portmap"
2522 ? Ss 0:00 portmap
3688 ? S 0:00 [nfsd]
3689 ? S 0:00 [nfsd]
3690 ? S 0:00 [nfsd]
3691 ? S 0:00 [nfsd]
3692 ? S 0:00 [nfsd]
3693 ? S 0:00 [nfsd]
3694 ? S 0:00 [nfsd]
3697 ? S 0:00 [nfsd]
3701 ? Ss 0:00 rpc.mountd

# cat /etc/exports
/nfs 192.168.11.0/255.255.255.0(rw,no_root_squash)

[root@test nfs]# service nfs restart
NFS mountd ������½��쏪�»������: [ OK ]
NFS \������¼\���\��я�����½��쏪�»������: [ OK ]
NFS quotas ������½��쏪�»������: [ OK ]
NFS \µ���¼\���\¹������½��쏪�»������: [ OK ]
NFS \µ���¼\���\¹������µ�������돪����: [ OK ]
NFS \���\��폢�¼\��ď�����µ�������돪����: [ OK ]
NFS \������¼\���\��я�����µ�������돪����: [ OK ]
NFS mountd ������µ�������돪����: [ OK ]
[root@test nfs]#

���\���\���\���\��\���\���
��³������
# showmounat -e nfs\µ���¼\Ð

# mkdir /nfs
# mount -t nfs 192.168.11.22:/nfs /nfs
# df
Filesystem 1K-\���\���\���\��� »��������� »���������²��� »���������% \���\���\���\����돪�������
/dev/hda1 11993980 4948176 6436544 44% /
none 127680 0 127680 0% /dev/shm
192.168.11.22:/nfs 19111840 2241472 15899488 13% /nfs

���fstab ½������µ(\���\��ӏ��¼\���»��Џ�����������\���\���\���\������µ������������)
==============================
192.168.11.22:/nfs /nfs nfs rw 0 0
==============================

tuzzy92 at 13:49����Permalink����Comments(0)����

2007������03·���29������

Kernel Panic in VirtualPC2007

VirtualPC2007������\���\���\���\������¼\������½���·�����������Ώ�����

CentOS4.4������\���\���\¹\������¼\������·�����������Ï��������·�����ď���
���µ¾���������������Kernel Panic����

�����Ï��¼�����������������Ï��·�����ď������������«

f8823274.gif

tuzzy92 at 22:20����Permalink����Comments(0)����

2007������03·���24������

cvsweb\���\���\¹\������¼\���

cvs\µ���¼\Ð������¹½�����叢�·�����ď�����������¡�
cvs����������¹¹�����⏪�ҏ�����web������³���������������­������cvsweb������\���\���\¹\������¼\���

\������¼\«\������«���������·���«\��\���\»\¹���������­������������\µ���¼\Ð����������������ACL�����Ώ��������������·������������������������
\��\������¼\Ð\������«������\��\���\»\¹���������­������¾���¹�������̏����⏢����ACL�����ҏ����Ώ��������·�����ď������̏�����������������»�ߏ�����������

�������̏���ߏ�����IPC::Run \���\���\������¼\���������\���\���\¹\������¼\���
# cd /usr/local/src ; pwd

# wget http://www.perl.com/CPAN/modules/by-module/IPC/IPC-Run-0.78.tar.gz
# tar xvfzp IPC-Run-0.78.tar.gz
# cd IPC-Run-0.78 ; pwd
# perl Makefile.PL
# make
# make test
# make install

���\���\��\���\���\���\�����돫�����
# mkdir /usr/local/apache2/cgi-bin/cvsweb
# mkdir /usr/local/apache2/htdocs/cvsweb

���cvsweb�����Ώ����� && \���\���\¹\������¼\���
# cd /usr/local/src ; pwd

# wget http://people.freebsd.org/~scop/cvsweb/cvsweb-3.0.6.tar.gz
# tar xvzf cvsweb-3.0.6.tar.gz
# cd cvsweb-3.0.6 ; pwd
# vi cvsweb.cgi

====================
conf������¾���½���������»���������
/usr/local/apache2/htdocs/cvsweb/cvsweb.conf
====================

# vi cvsweb.conf

====================
��cvsroot ������¾���½���������»���������
'local' => ['Local Repository', '/usr/local/cvsroot'],
��icons ������¾���½���������»���������
my $iconsdir = '/usr/local/apache2/htdocs/cvsweb/icons';
��css������¾���½���������»���������
$cssurl = '/usr/local/apache2/htdocs/cvsweb/css/cvsweb.css';
====================

# chmod 755 csvweb.cgi
# cp -ip cvsweb.cgi /usr/local/apache2/cgi-bin/cvsweb/.
# cp -ipR css cvsweb.conf icons /usr/local/apache2/htdocs/cvsweb/.

���³������
http://your.url/cgi-bin/cvsweb/cvsweb.cgi

tuzzy92 at 22:21����Permalink����Comments(0)����

2007������03·���02������

���­�����ď��¼��������쏢��������������������������²��ӏ��������������

��������������������CATV���«����������������������������������ҏ��³������

\������¼\��ď����쏢����������\���\���\���\��\���\��폢�¼\�������������¹¹�����⏪��

���eth0(³�돪���ԏ����䏪�³)�����Ώ�����
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=no

���eth1(�����������ԏ����䏪�³)�����Ώ���������������¹¹���������������·
# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.11.255
IPADDR=192.168.11.1
NETMASK=255.255.255.0
NETWORK=192.168.11.0
ONBOOT=yes
USERCTL=no
PREERDNS=no
TYPE=Ethernet

��������Ώ����������ġޏ��
# service network status

���³������(eth0������inet���̏�����������»��� eth1����������̏����⏢����ip���̏�Ģ�������������������������������)
# ifconfig -a
eth0 Link encap:Ethernet HWaddr ******
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:233317 errors:0 dropped:0 overruns:0 frame:0
TX packets:114225 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:319826696 (305.0 MiB) TX bytes:10115377 (9.6 MiB)
Interrupt:10 Base address:0xa000

eth1 Link encap:Ethernet HWaddr ******
inet addr:192.168.11.1 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:29ff:fe88:6048/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143297 errors:0 dropped:0 overruns:0 frame:0
TX packets:279154 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13442578 (12.8 MiB) TX bytes:329606455 (314.3 MiB)
Interrupt:12 Base address:0xa400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6653 errors:0 dropped:0 overruns:0 frame:0
TX packets:6653 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:674143 (658.3 KiB) TX bytes:674143 (658.3 KiB)

��������䏪�³�����Ώ�����
# adsl-setup

Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...

The following DSL config was found on your system:

Device: Name:
ppp0 DSLppp0

Please enter the device if you want to configure the present DSL config
(default ppp0) or enter 'n' if you want to create a new one:

LOGIN NAME

Enter your Login Name (default *****@*****): *****@***** ��« \��\���\���\���\������«������»���¼�����µ������������PPPoE�����䏪�³���¾

INTERFACE

Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): ��« PPPoE�����������䏪�³���¹������\������¼\µ\���\���\���\���\���\��ď��¼\���\�����¼\¹

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no): ��« ¼«����돪���⏪����������»��С���� no�����������⏪�������·������������

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here: ��« \������¼\���\µ���¼\Ð������»���������(resolv.conf������»������������¹�������������������½����������������ENTER)

PASSWORD

Please enter your Password: ��« PPPoE�����䏪�³\���\¹\������¼\���
Please re-enter your Password: ��« PPPoE�����䏪�³\���\¹\������¼\���(³������)

USERCTRL

Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): ��« �돫�������\������¼\��������������PPPOP�����䏪�³������on/off������µ���²������¹���������« no

FIREWALLING

Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2): 2 ��«

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter no or yes (default no):yes

** Summary of what you entered **

Ethernet Interface: eth0
User name: *****@*****
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
User Control: no
Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)



Congratulations, it should be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
to bring it down.
Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.

���µ��������\¹\���\���\��\�����돫�����
# vi /etc/rc.d/init.d/adsl


#!/bin/sh
#
# adsl This script starts or stops an ADSL connection
#
# chkconfig: 2345 99 01
# description: Connects to ADSL provider
#
# LIC: GPL
#
# Copyright (C) 2000 Roaring Penguin Software Inc. This software may
# be distributed under the terms of the GNU General Public License, version
# 2 or any later version.

# Source function library if it exists
test -r /etc/rc.d/init.d/functions && . /etc/rc.d/init.d/functions

# From AUTOCONF
prefix=/usr
exec_prefix=${prefix}

# Paths to programs
START=${exec_prefix}/sbin/adsl-start
STOP=${exec_prefix}/sbin/adsl-stop
STATUS=${exec_prefix}/sbin/adsl-status
case "$1" in
start)
echo -n "Bringing up ADSL link"

$START
if [ $? = 0 ] ; then
touch /var/lock/subsys/adsl
echo_success
else
echo_failure
fi
echo ""
;;
stop)
echo -n "Shutting down ADSL link"

$STOP > /dev/null 2>&1
if [ $? = 0 ] ; then
rm -f /var/lock/subsys/adsl
echo_success
else
echo_failure
fi
echo ""
;;
restart)
$0 stop
$0 start
;;
status)
status)
$STATUS
;;
*)
echo "Usage: adsl {start|stop|restart|status}"
exit 1
;;
esac

exit $RETVAL


���¼���¹��ԏ���񏪱��؏�����
# chmod +x /etc/rc.d/init.d/adsl

���µ��������
# /etc/rc.d/init.d/adsl start

���¼«�����µ�������돪���Ώ�����
# chkconfig --level2345 --add adsl

���¼«�����µ��������³������
# chkconfig --list adsl
adsl 0:off 1:off 2:on 3:on 4:on 5:on 6:off


tuzzy92 at 07:33����Permalink����Comments(0)����

2007������02·���02������

DBD::mysql \���\���\¹\������¼\���������³Ð½���

��������������돢������­����\���\�����¡��������������������·������
[root@ DBD-mysql-4.001](-_-)y-~~#perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled

cpan> install DBD::mysql
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 02 Feb 2007 04:28:01 GMT
Running install for module DBD::mysql
Running make for C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DBD-mysql-4.001/

���� ��¢� ����

Removing previously used /root/.cpan/build/DBD-mysql-4.001

CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz

Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I[dir]

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

perl Makefile.PL --help
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install

cpan>


�����­������³������
[root@ DBD-mysql-4.001](-_-)y-~~#/usr/local/mysql/bin/mysql_config --libs
-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm
[root@ DBD-mysql-4.001](-_-)y-~~#/usr/local/mysql/bin/mysql_config --cflags
-I/usr/local/mysql/include/mysql
[root@ DBD-mysql-4.001](-_-)y-~~#


���\���\���\¹\������¼\���¼��돪���ԏ��·������\���\��\���\���\���\����������돪䏩��돢�·�����������叢��������������㏢����\���\¹������·��ҏ��²�����������Ώ�����
[root@ DBD-mysql-4.001](-_-)y-~~#pwd
/root/.cpan/build/DBD-mysql-4.001

[root@ DBD-mysql-4.001](-_-)y-~~#perl Makefile.PL --cflags=-I/usr/local/mysql/include/mysql "--libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm"
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 465.
I will use the following settings for compiling and testing:

cflags (User's choice) = -I/usr/local/mysql/include/mysql
embedded (guessed ) =
libs (User's choice) = -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Using DBI 1.53 (for perl 5.008007 on i386-freebsd) installed in /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBI/
Writing Makefile for DBD::mysql
[root@ DBD-mysql-4.001](-_-)y-~~#

[root@ DBD-mysql-4.001](-_-)y-~~#make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBI -I/usr/local/mysql/include/mysql -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -DVERSION=\"4.001\" -DXS_VERSION=\"4.001\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.7/i386-freebsd/CORE" dbdimp.c
/usr/local/bin/perl5.8.7 -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBI/Driver.xst > mysql.xsi
/usr/local/bin/perl5.8.7 /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 254
Warning: duplicate function definition 'rows' detected in mysql.xs, line 658
cc -c -I/usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBI -I/usr/local/mysql/include/mysql -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -DVERSION=\"4.001\" -DXS_VERSION=\"4.001\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.7/i386-freebsd/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/local/mysql/lib/mysql:/usr/lib" /usr/local/bin/perl5.8.7 myld cc -shared -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm
chmod 755 blib/arch/auto/DBD/mysql/mysql.so
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3
Manifying blib/man3/DBD::mysql::INSTALL.3
Manifying blib/man3/Bundle::DBD::mysql.3

[root@ DBD-mysql-4.001](-_-)y-~~#make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.............ok
t/10dsnlist..........ok
t/20createdrop.......ok
t/30insertfetch......ok
t/35limit............ok
t/35prepare..........ok
t/40bindparam........ok
t/40bindparam2.......ok
t/40blobs............ok
t/40listfields.......ok
t/40nulls............ok
t/40numrows..........ok
t/41bindparam........ok
t/41blobs_prepare....ok
t/42bindparam........ok
t/50chopblanks.......ok
t/50commit...........ok
t/60leaks............skipped
all skipped: $ENV{SLOW_TESTS} is not set
t/70takeimp..........skipped
all skipped: test feature not implemented
t/75supported_sql....ok
t/80procs............skipped
all skipped: MySQL Server version 4.0.25 doesn't support stored procedures
t/insertid...........ok
t/param_values.......ok
t/prepare_noerror....skipped
all skipped: test - will only run with MySQL 4.1 and above.
t/texecute...........ok
t/utf8...............skipped
all skipped: MySQL Server version 4.0.25 doesn't support this particular utf8 test
All tests successful, 5 tests skipped.
Files=26, Tests=451, 13 wallclock secs ( 6.64 cusr + 1.27 csys = 7.91 CPU)
[root@ DBD-mysql-4.001](-_-)y-~~#

[root@ DBD-mysql-4.001](-_-)y-~~#make install
Installing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBD/mysql/mysql.so
Installing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBD/mysql/mysql.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/DBD/mysql.pm
Installing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/DBD/mysql/GetInfo.pm
Installing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/DBD/mysql/INSTALL.pod
Installing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/Bundle/DBD/mysql.pm
Installing /usr/local/man/man3/DBD::mysql.3
Installing /usr/local/man/man3/DBD::mysql::INSTALL.3
Installing /usr/local/man/man3/Bundle::DBD::mysql.3
Writing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/DBD/mysql/.packlist
Appending installation info to /usr/local/lib/perl5/5.8.7/i386-freebsd/perllocal.pod
[root@ DBD-mysql-4.001](-_-)y-~~#

���������������������������³����������

tuzzy92 at 23:55����Permalink����Comments(0)����

2007������01·���12������

cvs\µ���¼\й½������

�������������������������̏�����������µ��������������������ď�����������¡�cvs\µ���¼\Ð������¹½������

���³������
# rpm -qa cvs
cvs-1.11.17-9.RHEL4

���CVS������\������¼\������\��\������¼\�ߏ�����돫�����
# groupadd -r cvsusers
# useradd -G cvsusers cvs
# passwd cvs

���\���\���\���\���\���������돫������½�������䏪���Ώ�����
# mkdir /usr/local/cvsroot/
# chgrp cvsusers /usr/local/cvsroot
# chmod g+srwx /usr/local/cvsroot

# cvs -d /usr/local/cvsroot init
# chown -R cvs /usr/local/cvsroot
# chmod g-w /usr/local/cvsroot/CVSROOT

���\���\���\���\���\���������\��\���\���\��\���\��������ҏ��Ð������
# su - cvs
$ mkdir INSTALL
$ cd INSTALL
$ cvs -d /usr/local/cvsroot import INSTALL CENTOS start
$ exit

������½�������¾\��\«\���\���\���������²���
# /usr/local/apache/bin/htpasswd -c /usr/local/cvsroot/CVSROOT/passwd hoge
# vi /usr/local/cvsroot/CVSROOT/passwd

�����ӏ����̏�������­�����ҏ�����²���
:cvs

���daemontools ����������돢�«���¹�����ď��������������Ώ�����
# mkdir -p /usr/local/cvs/supervise/cvs/log/main
# cd /usr/local/cvs/supervise/cvs/ ;pwd
# chmod +t .
# touch log/status
# chown logadmin:logadmin log/main log/status
# vi run

==============================
#!/bin/sh

PATH=/usr/local/cvs/bin:/usr/local/bin:/usr/bin:/bin
export PATH

sleep 10

exec env - PATH=$PATH \
tcpserver -vHRDl0 0 cvspserver /usr/bin/cvs --allow-root=/usr/local/cvsroot pserver
==============================

# vi log/run

==============================
#!/bin/sh
exec setuidgid logadmin multilog t s1000000 n100 ./main
==============================

# chmod 755 run log/run
# ln -s /usr/local/cvs/supervise/cvs /service/cvs

���\���\��\���\���
# export CVSROOT=:pserver:hoge@***:/usr/local/cvsroot
# cvs login
Logging in to :pserver:hoge@***:2401/usr/local/cvsroot
CVS password:
#

������·µ�̏�돫�����
# touch test.txt
# cvs add test.txt
cvs add: Re-adding file `test.txt' (in place of dead revision 1.2).
cvs add: use 'cvs commit' to add this file permanently
# cvs commit -m "add test.txt"
Checking in test.txt;
/usr/local/cvsroot/INSTALL/test.txt,v <-- test.txt
new revision: 1.3; previous revision: 1.2
done

���������¹¹
# echo hogehoge > test.txt
# cvs diff test.txt
Index: test.txt
===================================================================
RCS file: /usr/local/cvsroot/INSTALL/test.txt,v
retrieving revision 1.3
diff -r1.3 test.txt
0a1
> hogehoge

# cvs commit -m "edit test.txt"
Checking in test.txt;
/usr/local/cvsroot/INSTALL/test.txt,v <-- test.txt
new revision: 1.4; previous revision: 1.3
done


�����돫�½���
# rm -i test.txt
rm: remove ������¾���\���\���\���\��� `test.txt'? y
# cvs diff test.txt
cvs diff: cannot find test.txt
# cvs remove test.txt
cvs remove: scheduling `test.txt' for removal
cvs remove: use 'cvs commit' to remove this file permanently
# cvs commit -m "remove test.txt"
Removing test.txt;
/usr/local/cvsroot/INSTALL/test.txt,v <-- test.txt
new revision: delete; previous revision: 1.4
done
# cvs logout
Logging out of :pserver:hoge@***:2401/usr/local/cvsroot
#

tuzzy92 at 20:39����Permalink����Comments(0)����

2006������12·���25������

nmap \���\���\¹\������¼\���

\���\������¼\���\���\¹\���\¹!!

������������»��ӏ�����\����¼\���\¹\­\���\���\������¼\��� nmap ������\���\���\¹\������¼\���
¹��·������¹���������¾ ������¼����¹���������¾(��«??

# wget http://download.insecure.org/nmap/dist/nmap-4.20.tgz
# tar xvfz nmap-4.20.tgz
# cd nmap-4.20
# ./configure && make

config.status: creating Makefile
( ) /\ _ (
\ | ( \ ( \.( ) _____
\ \ \ ` ` ) \ ( ___ / _ \
(_` \+ . x ( .\ \/ \____-----------/ (o) \_
- .- \+ ; ( O \____
) \_____________ ` \ /
(__ +- .( -'.- <. - _ VVVVVVV VV V\ \/
(_____ ._._: <_ - <- _ (-- _AAAAAAA__A_/ |
. /./.+- . .- / +-- - . \______________//_ \_______
(__ ' /x / x _/ ( \___' \ /
, x / ( ' . / . / | \ /
/ / _/ / + / \/
' (__/ / \
NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND RESPONSIBLY
[ Sick of the Nmap dragon? Submit your art and tag ]
[ lines to [email protected] for next release! ]


# make install

����������������𡯏�����»���������

# nmap ******



���³��������¡�¡�¡�

�񡯏������돪� & �����졭���������
\¹\­\���\���\���\��\������¼\���������¼«\µ\���\���������\»\­\���\���\���\�򏢱���돢돢��������������»��������Џ��·������²¼���µ��������¡�¼«����̏����¡����������³�돢����\µ\���\������������Ð���·���������������������Ð������»��������Џ��·���������������������������������µ��������¡�




tuzzy92 at 01:37����Permalink����Comments(0)����

2006������10·���12������

���������·������½Ð������»���

������������PC������Fedora������\���\���\¹\������¼\������·�����������Ï�����iso������\���\���\���\������¼\�����¡�
������\���\���\¹\������¼\���³«»�����¡�

Linux text ��������������¡�
.
.
.
.
.
You do not have enough RAM to install Fedora Core in this machine.

��𡭏����⏪�«��������𡭏�����¹��Ï����������̏����������Ï�𡭏������������������¹��¡�
½��쏪�»��������

tuzzy92 at 23:55����Permalink����Comments(0)����

2006������10·���06������

Jcode.pm \Ð���¼\���\���\���³������

����Jcode.pm \���\���\¹\������¼\���µ­�����ď�¡� �����ҏ��«�����������������������ď������«������
���ӏ����������������я�����\Ð���¼\���\���\���\��\���\�ߏ��µ���������������������«³���������­���������������������������폢¡ߏ��������������������³�����Ώ����ҏ����돢���������ď�¡�

³����«���������½�������������������쏢����������������»��ӏ�����\Ð���¼\���\���\��я�����³��������¡�

���cgi���̏���돢����\���\��\���\���\���\���������������
# vi Jccheck.cgi ��­������µ­½���

#!/usr/bin/perl
print "Content-Type: text/html\n\n";

use Jcode;
print $Jcode::VERSION;

# chmod 755 Jccheck.cgi

http://yourhost/cgi-bin/Jccheck.cgi ������������³������
2.06���������½¼�����µ�����������ď���¡돢¡�򏫤

���³�����я��������������������������������Ï��������·�����������Ï��«���폢�폢��


tuzzy92 at 21:31����Permalink����Comments(0)����

2006������10·���02������

Jcode.pm \���\���\¹\������¼\���µ­������

������¼��\��⏢�¼\���
http://openlab.jp/Jcode/index-j.html

# perl -v

This is perl, v5.8.7 built for i386-freebsd

# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled

cpan> install Jcode
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Sun, 01 Oct 2006 16:40:12 GMT
Running install for module Jcode
Running make for D/DA/DANKOGAI/Jcode-2.06.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.kddilabs.jp/CPAN/authors/id/D/DA/DANKOGAI/Jcode-2.06.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.kddilabs.jp/CPAN/authors/id/D/DA/DANKOGAI/CHECKSUMS
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/D/DA/DANKOGAI/Jcode-2.06.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Deleting from cache: /root/.cpan/build/Digest-SHA1-2.11 (10.8>10.0 MB)
Deleting from cache: /root/.cpan/build/Net-Ident-1.20 (10.6>10.0 MB)
Deleting from cache: /root/.cpan/build/Net_SSLeay.pm-1.30 (10.4>10.0 MB)
Jcode-2.06/
Jcode-2.06/Changes
Jcode-2.06/Changes.ver0X
Jcode-2.06/Jcode/
Jcode-2.06/Jcode/_Classic.pm
Jcode-2.06/Jcode/Constants.pm
Jcode-2.06/Jcode/H2Z.pm
Jcode-2.06/Jcode/Nihongo.pod
Jcode-2.06/Jcode/Tr.pm
Jcode-2.06/Jcode/Unicode/
Jcode-2.06/Jcode/Unicode/Constants.pm
Jcode-2.06/Jcode/Unicode/NoXS.pm
Jcode-2.06/Jcode.pm
Jcode-2.06/Makefile.PL
Jcode-2.06/MANIFEST
Jcode-2.06/META.yml
Jcode-2.06/README
Jcode-2.06/t/
Jcode-2.06/t/_test_unicode.pl
Jcode-2.06/t/ambiguous.pl
Jcode-2.06/t/append.t
Jcode-2.06/t/benchmark.pl
Jcode-2.06/t/convert.t
Jcode-2.06/t/fun.pl
Jcode-2.06/t/getcode.t
Jcode-2.06/t/h2z.t
Jcode-2.06/t/hankaku.euc
Jcode-2.06/t/hiragana.euc
Jcode-2.06/t/._jfold.t
Jcode-2.06/t/jfold.t
Jcode-2.06/t/length.t
Jcode-2.06/t/mime.t
Jcode-2.06/t/new.t
Jcode-2.06/t/perl581.t
Jcode-2.06/t/._regex.t
Jcode-2.06/t/regex.t
Jcode-2.06/t/stripped.euc
Jcode-2.06/t/table.euc
Jcode-2.06/t/table.jis
Jcode-2.06/t/table.sjis
Jcode-2.06/t/table.ucs2
Jcode-2.06/t/table.utf8
Jcode-2.06/t/._tr.t
Jcode-2.06/t/tr.t
Jcode-2.06/t/unibench.pl
Jcode-2.06/t/x0212.euc
Jcode-2.06/t/x0212.jis
Jcode-2.06/t/x0212.ucs2
Jcode-2.06/t/x0212.utf8
Jcode-2.06/t/zenkaku.euc
Jcode-2.06/Unicode/
Jcode-2.06/Unicode/euc2uni.h
Jcode-2.06/Unicode/Makefile.PL
Jcode-2.06/Unicode/uni.c
Jcode-2.06/Unicode/uni2euc.h
Jcode-2.06/Unicode/Unicode.pm
Jcode-2.06/Unicode/Unicode.xs

CPAN.pm: Going to build D/DA/DANKOGAI/Jcode-2.06.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Jcode
cp Jcode/Nihongo.pod blib/lib/Jcode/Nihongo.pod
cp Jcode.pm blib/lib/Jcode.pm
Manifying blib/man3/Jcode::Nihongo.3
Jcode/Nihongo.pod:1: Unknown command paragraph "=encoding euc-jp"
Manifying blib/man3/Jcode.3
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/append.....ok
t/convert....ok
t/getcode....ok
t/h2z........ok
t/jfold......ok
t/length.....ok
t/mime.......ok
t/new........ok
t/perl581....ok
t/regex......ok
t/tr.........ok
All tests successful.
Files=11, Tests=244, 16 wallclock secs ( 8.62 cusr + 0.55 csys = 9.18 CPU)
/usr/bin/make test -- OK
Running make install
Installing /usr/local/lib/perl5/site_perl/5.8.7/Jcode.pm
Writing /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/auto/Jcode/.packlist
Appending installation info to /usr/local/lib/perl5/5.8.7/i386-freebsd/perllocal.pod
/usr/bin/make install -- OK

cpan> exit
Lockfile removed.
#

tuzzy92 at 21:40����Permalink����Comments(0)����

2006������09·���25������

Kernel��돩�¹½������

��������������������������������������\«���¼\���\���������돩�¹½�����叢����¹��ԏ����Ï��³������������������������������

������½��돩Ώ�����Kernel³������
# uname -a
FreeBSD localhost.localdomain 4.10-RELEASE FreeBSD 4.10-RELEASE #0 :/usr/obj/usr/src/sys/GENERIC i386

���������½���
# cd /usr/src/sys/i386/conf ; pwd
# cp -ip GENERIC ���·\«���¼\���\������¾

# vi ���·\«���¼\���\������¾

ident ���·\«���¼\���\������¾

���¾�����ԏ���ߏ����������ԏ���̏�����\³\���\���\���\��\���\���

��³���\������¼\�����������������������������폢���������ҏ��·�����ď�����������������������­������µ­½���
options QUOTA

���\³\���\���\���\�������\���\���\¹\������¼\���
# config ���·\«���¼\���\������¾
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/���·\«���¼\���\������¾

# cd ../../compile/���·\«���¼\���\������¾ ; pwd
# make make depend
# make
# make install

# ��돩�µ��������

���³������
# uname -a
FreeBSD localhost.localdomain 4.10-RELEASE FreeBSD 4.10-RELEASE #0:/usr/src/sys/compile/���·\«���¼\���\������¾ i386

������򏫳��¡돢¡�

���µ�������돢�·�����������������������������ď���������
\��ӏ��¼\���»��Џ�������­������������µ���\«���¼\���\���������µ��������
boot kernel.old

tuzzy92 at 22:51����Permalink����Comments(0)����

2006������09·���15������

tar: Removing leading `/' from member names

tar �����������������������������Ï�������­������\³\���\���\��������ҏ����������������ď�����
tar: Removing leading `/' from member names ������������\���\���\»���¼\���
�����������я��������������³���������������폢�폢��

# pwd
/backup
# tar cvfzp hoge.tgz /home/hoge

����돪؏����
path ���¾��������̏����� / ���̏���������������¡񏪩���³«»��Џ�������������������µ������³���������«��������¡�/������¼��������������������쏢�������¾����
��\���¼\«\���\���¼«�������������µ¾���������½Ð������������������������

��­���������������Ï��������������������Ð������������\¹\������¼\��������������������ď��«����������
# pwd
/home
# tar cvfzp /backup/hoge.tgz ./hoge

tuzzy92 at 07:13����Permalink����Comments(0)����

2006������09·���04������

php.ini upload_max_filesize ������¹¹

������������돢���������쏢�µ������������ php��돪����·������������\Ð���¼\���\���\���\��\���\��

# fetch http://jp.php.net/distributions/php-4.4.4.tar.gz
# tar xvfz php-4.4.4.tar.gz
# cd cd php-4.4.4 ; pwd

# ./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--enable-versioning \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-mbregex \
--with-zlib-dir=/usr/local/lib \
--with-gd

Thank you for using PHP.

# make
# make install
# cp -ip ./php.ini-recommended /usr/local/lib/php.ini

# which php
/usr/local/bin/php
# /usr/local/bin/php -v
PHP 4.4.4 (cli) (built: Sep 3 2006 03:03:56)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

\Ð���¼\���\���\���\��\���\�ߏ��µ»��ӏ�������� ��¡돢¡�򏫤

���php.ini upload_max_filesize ������¹¹
���php.ini ������¾���½���³������
# /usr/local/bin/php -i | grep -i configuration
Configuration File (php.ini) Path => /usr/local/lib/php.ini
#
������½¾���³��������¡�
# egrep "memory_limit|post_max_size|upload_max_filesize" /usr/local/lib/php.ini
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
post_max_size = 8M
upload_max_filesize = 2M

�񡯏����Ï�����¼��
POST/GET������������������\������¼\��ď�����\���\���\���¾��������������򏪤������µ����������������������memroy limit���̏��­�����⏢����¾���¹���������¾���������������������������
memory_limit >= post_max_size >= upload_max_filesize
�������������������������돪؏�����̏��µ�������������������·��������¡�

���php.ini ������½���
# cp -ip /usr/local/lib/php.ini{,.org}
# vi /usr/local/lib/php.ini
# diff -u0 /usr/local/lib/php.ini /usr/local/lib/php.ini.org
@@ -504 +504 @@
-upload_max_filesize = 5M
+upload_max_filesize = 2M
#

���apache ��돩�µ��������
# /usr/local/apache/bin/apachectl configtest
Syntax OK
# /usr/local/apache/bin/httpd -t -DSSL
Syntax OK
# /usr/local/apache/bin/apachectl restart

���³������(¾���½����������������·������������)
# cat phpinfo.php
[?php
phpinfo();
?]

��­������������³����������������򏫳������
http://localhost/phpinfo.php

840e47d9.jpg

tuzzy92 at 04:43����Permalink����Comments(0)����

2006������08·���17������

jot

#unix����������²�돢�����������돫⏪����
jot ����񏪲��ӏ���\���\���\���\���\������¼\��ď����ҏ�����������

���1����5 ��������������������񏪤³���·�����ď�ď��»��⏪�я����ҏ�����������
# jot 5
1
2
3
4
5
#

���³«»���������¹���������»������������¹�������������������돫⏢ď�ԏ����� 2������»���������
# jot 5 20 #(20����24 ������ď��»��⏢����½Ð����)
20
21
22
23
24
#

���-r \���\���\���\��������� 1����100 ������ď��»��⏪�я����ҏ�����������¹������
���1����100 ������\���\���\���\�����������ď��»��⏢���� 10 ���������½¼�����¹��������¡�
# jot -r 10
43
97
42
48
67
94
44
51
39
92
#

���30����100 ������\���\���\���\�����������ď��»��⏢���� 10 ���������½¼�����¹��������¡�
# jot -r 10 30
45
44
36
87
71
81
86
32
39
31
#

���150����200 ������\���\���\���\�����������ď��»��⏢���� 10 ���������½¼�����¹��������¡�
# jot -r 10 150 200
198
156
151
167
153
193
172
198
161
161
#

�񡯡돪�²¼\³\���\���\���������������

>000 001 ������������½Ð���·�����ď�������¡�(by Sophia1973���µ������)
���³�����я���������������������
# jot -w %03d 10
001
002
003
004
005
006
007
008
009
010
#

>FreeBSD���������Ώ��폢¡�(by Sophia1973���µ������)
FreeBSD���������Ώ��������¹��¡�Linux������seq

tuzzy92 at 09:40����Permalink����Comments(2)����

2006������07·���20������

yum update

RedHat9������\���\���\¹\������¼\������·�����ď�����\³\��ԏ�����

# rpm -Uvh http://download.fedoralegacy.org/redhat/9/updates/i386/gnupg-1.2.1-9.i386.rpm

# rpm -ivh http://download.fedoralegacy.org/redhat/9/legacy-utils/i386/yum-2.0.5-0.9.2.legacy.noarch.rpm

# rpm --import http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY
# rpm --import http://www.redhat.com/security/db42a60e.txt

# yum update

tuzzy92 at 13:36����Permalink����Comments(0)����

2006������07·���19������

Single������¾������²������

����FreeBSD4·���
\��ӏ��¼\���²���������������\��\���\��ď��¼\­���¼�돪�³�돢����²����¹
������
boot -s

����FreeBSD5or6·���
µ��������\���\���\������¼������\·\���\��\���\������¼\������­������

����RedHat9(Grub)
\«���¼\���\��������쏪����²���������������e
������
1
������
enter
������
b

����RedHat9(Lilo)
µ��������²���������������Ctr+X
������
LILO boot: linux single

tuzzy92 at 23:55����Permalink����Comments(0)����
<% for ( var i = 0; i < 7; i++ ) { %> <% } %>
<%= wdays[i] %>
<% for ( var i = 0; i < cal.length; i++ ) { %> <% for ( var j = 0; j < cal[i].length; j++) { %> <% } %> <% } %>
0) { %> id="calendar-61877-day-<%= cal[i][j]%>"<% } %>><%= cal[i][j] %>
Help me"1"
Recent Comments
<%==comments[n].author%>
<% } %>
Help me"2"
Latest article
Help me"3"

'); label.html('\ \���\���\���\���\��\���\���\�돢����������¹­¹��Ï�����\��Џ��¼\½\���\���\���\��돢����������²�������̏��������������ď�����\���\���\­���¼(cookie)������»��������Џ��·���������������������¹��¡�
\ ���³������\Ð\������¼�����ҏ��������������������«�ޏ�䏪���������·��Џ��³���¹���������³������������\���\���\­���¼������»��������Џ�����¾µ����������������ď����������������ď������������������µ���»�����������������ď��������­���������¹��¡�
\ �����������ď�¡�����µ��ҏ�����������������¼���\��Џ��¼\���\������¼���������������������쏢�ޏ�����½���������������¼������³���­��������������������¡�\���\���\­���¼������»��������Џ����ҡ�����������¹���������³���������������������­���������¹��¡�
\ ¾��䏢돪㏢����\���\���\���\���\�񏪿��̏�����µ�̏����я����ҏ��³���������������������µ��������¡�\ '); banner.append(label); var closeButton = $('