<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>仙人の心得 &#187; centOS</title>
	<atom:link href="http://blog.mktime.com/archive/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mktime.com</link>
	<description>修行の日々を淡々と</description>
	<lastBuildDate>Thu, 05 May 2011 07:39:25 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>CentOS：日本語platexをインストール</title>
		<link>http://blog.mktime.com/archive/118.html</link>
		<comments>http://blog.mktime.com/archive/118.html#comments</comments>
		<pubDate>Sat, 25 Apr 2009 04:52:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[platex]]></category>
		<category><![CDATA[platex3]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[日本語]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=118</guid>
		<description><![CDATA[CentOSに日本語latexをインストールするのにかなり苦しんだのでメモ こちらを参考にさせていただいた。 http://a1667203.blog.shinobi.jp/Entry/89/ /usr/local/srcにplatex3のソースを置き、ソースを展開する。 展開するのはptetex3-20080616.tar.gzだけでよい。他のものはmakeで自動的に解凍される。 mkdir /usr/local/src/platex3 cd /usr/loca/src/platex3 wget http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/ptetex3-20080616.tar.gz wget http://www.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz wget http://www.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0po.tar.gz tar zxf ptetex3-20080616.tar.gz cd ptetex3-20080616 my_optionをサンプルからコピー。 cp my_option.sample ../my_option このあとは make su make install で完了のはずだが、私の環境ではいろいろ足りなかったのでyumでインストール yum install gcc yum install gcc-c++ yum install bison でもまだ完全にはmakeできない。こんなメッセージが出る We are NOT going to compile xdvi. We have two choices. 1. (with xdvi) Check [...]]]></description>
			<content:encoded><![CDATA[<p>CentOSに日本語latexをインストールするのにかなり苦しんだのでメモ<br />
こちらを参考にさせていただいた。<br />
<a href="http://a1667203.blog.shinobi.jp/Entry/89/">http://a1667203.blog.shinobi.jp/Entry/89/</a></p>
<p>/usr/local/srcにplatex3のソースを置き、ソースを展開する。<br />
展開するのはptetex3-20080616.tar.gzだけでよい。他のものはmakeで自動的に解凍される。</p>
<pre class="console">
mkdir /usr/local/src/platex3
cd /usr/loca/src/platex3
wget http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/ptetex3-20080616.tar.gz
wget http://www.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz
wget http://www.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0po.tar.gz
tar zxf ptetex3-20080616.tar.gz
cd ptetex3-20080616
</pre>
<p>my_optionをサンプルからコピー。</p>
<pre class="console">
cp my_option.sample ../my_option
</pre>
<p>このあとは</p>
<pre class="console">
make
su
make install
</pre>
<p>で完了のはずだが、私の環境ではいろいろ足りなかったのでyumでインストール</p>
<pre class="console">
yum install gcc
yum install gcc-c++
yum install bison
</pre>
<p>でもまだ完全にはmakeできない。こんなメッセージが出る</p>
<pre>
We are NOT going to compile xdvi.  We have two choices.
1. (with xdvi)    Check if we have X11 headers.
2. (without xdvi) Set XDVI=echo in "my_option" to omit xdvi test.
</pre>
<p>もちろんxdviも使いたい。X11 headersとは何だろう。</p>
<pre class="console">
yum install xorg-X11-devel
</pre>
<p>としてみても解決しない。<br />
仕方ないのでGNOMEから<br />
アプリケーション＞ソフトウェアの追加・削除<br />
で、「開発」の「Xソフトウェア開発」にチェックを入れてインストール。</p>
<p>yum.logをみるとこれだけインストールされていた。<br />
どれがどれか解らない・・・。</p>
<pre>
Apr 25 10:44:03 Installed: fontconfig-devel-2.4.1-7.el5.i386
Apr 25 10:44:05 Installed: libjpeg-devel-6b-37.i386
Apr 25 10:44:05 Installed: 2:libpng-devel-1.2.10-7.1.el5_3.2.i386
Apr 25 10:44:06 Installed: libXau-devel-1.0.1-3.1.i386
Apr 25 10:44:06 Installed: libfontenc-devel-1.0.2-2.2.el5.i386
Apr 25 10:44:12 Installed: alsa-lib-devel-1.0.17-1.el5.i386
Apr 25 10:44:13 Installed: xorg-x11-util-macros-1.0.2-4.fc6.i386
Apr 25 10:44:13 Installed: libmng-devel-1.0.9-5.1.i386
Apr 25 10:44:14 Installed: xorg-x11-xtrans-devel-1.0.1-1.1.fc6.i386
Apr 25 10:44:15 Installed: netpbm-devel-10.35-6.1.el5_3.1.i386
Apr 25 10:44:18 Installed: libtiff-devel-3.8.2-7.el5_2.2.i386
Apr 25 10:44:19 Installed: libdrm-devel-2.0.2-1.1.i386
Apr 25 10:44:34 Installed: libXcomposite-0.3-5.1.i386
Apr 25 10:44:37 Installed: libXvMC-1.0.2-2.1.i386
Apr 25 10:44:38 Installed: xrestop-0.2-6.2.2.i386
Apr 25 10:44:42 Installed: xorg-x11-proto-devel-7.1-9.el5.centos.i386
Apr 25 10:44:51 Installed: libX11-devel-1.0.3-9.el5.i386
Apr 25 10:44:52 Installed: libXext-devel-1.0.1-2.1.i386
Apr 25 10:44:56 Installed: mesa-libGL-devel-6.5.1-7.7.el5.i386
Apr 25 10:44:57 Installed: libXrender-devel-0.9.1-3.1.i386
Apr 25 10:44:57 Installed: libXfixes-devel-4.0.1-2.1.i386
Apr 25 10:44:59 Installed: mesa-libGLU-devel-6.5.1-7.7.el5.i386
Apr 25 10:44:59 Installed: libXv-devel-1.0.1-4.1.i386
Apr 25 10:45:00 Installed: libXrandr-devel-1.1.1-3.1.i386
Apr 25 10:45:01 Installed: libICE-devel-1.0.1-2.1.i386
Apr 25 10:45:01 Installed: libSM-devel-1.0.1-3.1.i386
Apr 25 10:45:02 Installed: libXdmcp-devel-1.0.1-2.1.i386
Apr 25 10:45:02 Installed: libXvMC-devel-1.0.2-2.1.i386
Apr 25 10:45:02 Installed: libXcomposite-devel-0.3-5.1.i386
Apr 25 10:45:03 Installed: libXdamage-devel-1.0.3-2.1.i386
Apr 25 10:45:04 Installed: libXft-devel-2.1.10-1.1.i386
Apr 25 10:45:04 Installed: libXevie-devel-1.0.1-3.1.i386
Apr 25 10:45:04 Installed: libXScrnSaver-devel-1.1.0-3.1.i386
Apr 25 10:45:05 Installed: libXxf86misc-devel-1.0.1-3.1.i386
Apr 25 10:45:05 Installed: libXtst-devel-1.0.1-3.1.i386
Apr 25 10:45:05 Installed: libXTrap-devel-1.0.0-3.1.i386
Apr 25 10:45:06 Installed: libXres-devel-1.0.1-3.1.i386
Apr 25 10:45:07 Installed: libXxf86vm-devel-1.0.1-3.1.i386
Apr 25 10:45:07 Installed: libXfontcache-devel-1.0.2-3.1.i386
Apr 25 10:45:07 Installed: libXxf86dga-devel-1.0.1-3.1.i386
Apr 25 10:45:07 Installed: libXcursor-devel-1.1.7-1.1.i386
Apr 25 10:45:08 Installed: libXfont-devel-1.2.2-1.0.3.el5_1.i386
Apr 25 10:45:11 Installed: libXt-devel-1.0.2-3.1.fc6.i386
Apr 25 10:45:11 Installed: libXpm-devel-3.5.5-3.i386
Apr 25 10:45:12 Installed: libXmu-devel-1.0.2-5.i386
Apr 25 10:45:13 Installed: Xaw3d-devel-1.5E-10.1.i386
Apr 25 10:45:14 Installed: gd-devel-2.0.33-9.4.el5_1.1.i386
Apr 25 10:45:17 Installed: SDL-devel-1.2.10-8.el5.i386
Apr 25 10:45:18 Installed: libXaw-devel-1.0.2-8.1.i386
</pre>
<p>けど、とりあえずmakeできたのでmake install<br />
・・・<br />
finished!<br />
テストします。</p>
<pre class="console">
PATH=/usr/local/teTex/bin:$PATH; export PATH
vi test.tex 　　　# viでtexドキュメントを書く
platex -kanji=utf8 test.tex
This is pTeX, Version 3.141592-p3.1.10 (utf8.euc) (Web2C 7.5.4)
(./test.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2003/12/01> patch level 0)
(/usr/local/teTeX/share/texmf/ptex/platex/base/jarticle.cls
Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
(/usr/local/teTeX/share/texmf/ptex/platex/base/jsize10.clo)) (./test.aux)
[1] (./test.aux) )
Output written on test.dvi (1 page, 300 bytes).
</pre>
<p>test.log、test.dvi、test.auxというファイルができた。<br />
とりあえずＯＫかな。<br />
dviをビューワで見る</p>
<pre class="console">
pxdvi test.dvi
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
</pre>
<p>ウォーニングが出るけど、日本語表示はできている。<br />
最後にPDFにするテスト</p>
<pre class="console">
/usr/local/teTeX/bin/dvipdfmx test.dvi
</pre>
<p>完璧です。</p>
<p>最後にパスとオプションの設定を.bashrcに残しておく。</p>
<div class="caption">$HOME/.bashrc</div>
<pre class="file">
PATH=$PATH:/usr/local/teTeX/bin
alias platex="platex -kanji=utf8"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/118.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS：ゲストOSにvmware-toolsをインストール</title>
		<link>http://blog.mktime.com/archive/111.html</link>
		<comments>http://blog.mktime.com/archive/111.html#comments</comments>
		<pubDate>Tue, 21 Apr 2009 12:16:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[vmware-tools]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=111</guid>
		<description><![CDATA[CentOS5.3のイメージにvmware-toolsを入れようとして詰まったこと。 インストールはあっさりできたのに。 クリップボードの共有ができない＆ユニティ機能が有効にならない 問題なくインストが終わったように見えるのに実際はウィンドウのリサイズとHGFSが使えるようになっただけ。 肝心のクリップボードの共有＆ユニティ機能使えない。 CentOS5.3に特有な問題なのだろうか、とあきらめかけたが天啓があって解決した。 天啓：kernel-develが無いんじゃないの？ # vmware-toolsをアンインストール /usr/bin/vmware-uninstall-tools.pl # kernel-develをインストール yum install kernel-devel # おまじないてきに再起動 reboot 再起動後、もう一度vmware-toolsをインストールする。 ./vmware-install.pl きたよ！いままで↓こういうperfectlyなメッセージは出なかったけど、これで完璧なはず。 The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmmemctl module loads perfectly into the running kernel. 直ちに、クリップボード共有を有効にするにはコマンドで /usr/bin/vmware-user またはログアウト＆ログイン。Xセッションの再起動。 vmxnetを有効にするには /etc/init.d/network stop rmmod pcnet32 rmmod vmxnet modprobe vmxnet /etc/init.d/network start 以下が今回のインストールの内容。 [root@localhost vmware-tools-distrib]# ./vmware-install.pl Creating a new VMware Tools [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS5.3のイメージにvmware-toolsを入れようとして詰まったこと。<br />
インストールはあっさりできたのに。</p>
<h4>クリップボードの共有ができない＆ユニティ機能が有効にならない</h4>
<p>問題なくインストが終わったように見えるのに実際はウィンドウのリサイズとHGFSが使えるようになっただけ。</p>
<p>肝心のクリップボードの共有＆ユニティ機能使えない。</p>
<p>CentOS5.3に特有な問題なのだろうか、とあきらめかけたが天啓があって解決した。</p>
<p>天啓：kernel-develが無いんじゃないの？</p>
<div class="console">
# vmware-toolsをアンインストール<br />
/usr/bin/vmware-uninstall-tools.pl<br />
# kernel-develをインストール<br />
yum install kernel-devel<br />
# おまじないてきに再起動<br />
reboot
</div>
<p>再起動後、もう一度vmware-toolsをインストールする。</p>
<div class="console">
./vmware-install.pl
</div>
<p>きたよ！いままで↓こういうperfectlyなメッセージは出なかったけど、これで完璧なはず。<br />
The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmmemctl module loads perfectly into the running kernel.</p>
<p>直ちに、クリップボード共有を有効にするにはコマンドで</p>
<div class="console">
 /usr/bin/vmware-user
</div>
<p>またはログアウト＆ログイン。Xセッションの再起動。</p>
<p>vmxnetを有効にするには</p>
<div class="console">
/etc/init.d/network stop<br />
rmmod pcnet32<br />
rmmod vmxnet<br />
modprobe vmxnet<br />
/etc/init.d/network start
</div>
<p>以下が今回のインストールの内容。</p>
<div class="console">
[root@localhost vmware-tools-distrib]# ./vmware-install.pl<br />
Creating a new VMware Tools installer database using the tar4 format.</p>
<p>Installing VMware Tools.</p>
<p>In which directory do you want to install the binary files?<br />
[/usr/bin] </p>
<p>What is the directory that contains the init directories (rc0.d/ to rc6.d/)?<br />
[/etc/rc.d] </p>
<p>What is the directory that contains the init scripts?<br />
[/etc/rc.d/init.d] </p>
<p>In which directory do you want to install the daemon files?<br />
[/usr/sbin] </p>
<p>In which directory do you want to install the library files?<br />
[/usr/lib/vmware-tools] </p>
<p>In which directory do you want to install the documentation files?<br />
[/usr/share/doc/vmware-tools] </p>
<p>The path &#8220;/usr/share/doc/vmware-tools&#8221; does not exist currently. This program<br />
is going to create it, including needed parent directories. Is this what you<br />
want? [yes] </p>
<p>The installation of VMware Tools 7.8.5 build-156735 for Linux completed<br />
successfully. You can decide to remove this software from your system at any<br />
time by invoking the following command: &#8220;/usr/bin/vmware-uninstall-tools.pl&#8221;.</p>
<p>Before running VMware Tools for the first time, you need to configure it by<br />
invoking the following command: &#8220;/usr/bin/vmware-config-tools.pl&#8221;. Do you want<br />
this program to invoke the command for you now? [yes] ]</p>
<p>The answer &#8220;]&#8221; is invalid. It must be one of &#8220;y&#8221; or &#8220;n&#8221;.</p>
<p>Before running VMware Tools for the first time, you need to configure it by<br />
invoking the following command: &#8220;/usr/bin/vmware-config-tools.pl&#8221;. Do you want<br />
this program to invoke the command for you now? [yes] </p>
<p>Stopping VMware Tools services in the virtual machine:<br />
   Guest operating system daemon:                          [  OK  ]<br />
   Virtual Printing daemon:                                [  OK  ]<br />
The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmmemctl module loads perfectly into the<br />
running kernel.</p>
<p>The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmhgfs module loads perfectly into the<br />
running kernel.</p>
<p>The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmxnet module loads perfectly into the<br />
running kernel.</p>
<p>The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmblock module loads perfectly into the<br />
running kernel.</p>
<p>[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that<br />
creates backups of virtual machines. Please refer to the VMware Knowledge Base<br />
for more details on this capability. Do you wish to enable this feature?<br />
[no] </p>
<p>The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vmci module loads perfectly into the<br />
running kernel.</p>
<p>The bld-2.6.18-8.el5-i686smp-RHEL5 &#8211; vsock module loads perfectly into the<br />
running kernel.</p>
<p>Detected X.org version 7.1.</p>
<p>Please choose one of the following display sizes that X will start with (1 &#8211;<br />
29):</p>
<p>[1]  &#8220;320&#215;200&#8243;<br />
[2]  &#8220;320&#215;240&#8243;<br />
[3]  &#8220;400&#215;300&#8243;<br />
[4]  &#8220;512&#215;384&#8243;<br />
[5]  &#8220;640&#215;400&#8243;<br />
[6]  &#8220;640&#215;480&#8243;<br />
[7]  &#8220;720&#215;480&#8243;<br />
[8]  &#8220;800&#215;480&#8243;<br />
[9]  &#8220;854&#215;480&#8243;<br />
[10]  &#8220;720&#215;576&#8243;<br />
[11]< "800x600"<br />
[12]  "1024x768"<br />
[13]  "1280x720"<br />
[14]  "1280x768"<br />
[15]  "1152x864"<br />
[16]  "1280x800"<br />
[17]  "1366x768"<br />
[18]  "1280x960"<br />
[19]  "1440x900"<br />
[20]  "1280x1024"<br />
[21]  "1400x1050"<br />
[22]  "1680x1050"<br />
[23]  "1600x1200"<br />
[24]  "1920x1080"<br />
[25]  "1920x1200"<br />
[26]  "1920x1440"<br />
[27]  "2048x1536"<br />
[28]  "2560x1600"<br />
[29]  "2560x1920"<br />
Please enter a number between 1 and 29:</p>
<p>[11] </p>
<p>X Window System Version 7.1.1<br />
Release Date: 12 May 2006<br />
X Protocol Version 11, Revision 0, Release 7.1.1<br />
Build Operating System: Linux 2.6.18-53.1.14.el5PAE i686 Red Hat, Inc.<br />
Current Operating System: Linux localhost.localdomain 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:19:18 EDT 2009 i686<br />
Build Date: 21 January 2009<br />
Build ID: xorg-x11-server 1.1.1-48.52.el5<br />
        Before reporting problems, check http://wiki.x.org<br />
        to make sure that you have the latest version.<br />
Module Loader present<br />
Markers: (--) probed, (**) from config file, (==) default setting,<br />
        (++) from command line, (!!) notice, (II) informational,<br />
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.<br />
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.3042", Time: Tue Apr 21 20:50:57 2009<br />
(++) Using config file: "/tmp/vmware-config0/XF86Config.3042"</p>
<p>X is running fine with the new config file.</p>
<p>FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.<br />
Starting VMware Tools services in the virtual machine:<br />
   Switching to guest configuration:                       [  OK  ]<br />
   Guest filesystem driver:                                [  OK  ]<br />
   Mounting HGFS shares:                                   [  OK  ]<br />
   Guest memory manager:                                   [  OK  ]<br />
   Guest vmxnet fast network device:                       [  OK  ]<br />
   VM communication interface:                             [  OK  ]<br />
   VM communication interface socket family:               [  OK  ]<br />
   Blocking file system:                                   [  OK  ]<br />
   Guest operating system daemon:                          [  OK  ]<br />
   Virtual Printing daemon:                                [  OK  ]</p>
<p>The configuration of VMware Tools 7.8.5 build-156735 for Linux for this running<br />
kernel completed successfully.</p>
<p>You must restart your X session before any mouse or graphics changes take<br />
effect.</p>
<p>You can now run VMware Tools by invoking the following command:<br />
"/usr/bin/vmware-toolbox" during an X server session.</p>
<p>To enable advanced X features (e.g., guest resolution fit, drag and drop, and<br />
file and text copy/paste), you will need to do one (or more) of the following:<br />
1. Manually start /usr/bin/vmware-user<br />
2. Log out and log back into your desktop session; and,<br />
3. Restart your X session.</p>
<p>To use the vmxnet driver, restart networking using the following commands:<br />
/etc/init.d/network stop<br />
rmmod pcnet32<br />
rmmod vmxnet<br />
modprobe vmxnet<br />
/etc/init.d/network start</p>
<p>If the virtual printer feature is enabled, you will need to restart the CUPS<br />
service to make use of this feature.</p>
<p>Enjoy,</p>
<p>--the VMware team
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/111.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS：日本語入力できるようにする</title>
		<link>http://blog.mktime.com/archive/108.html</link>
		<comments>http://blog.mktime.com/archive/108.html#comments</comments>
		<pubDate>Sat, 18 Apr 2009 08:53:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[SCIM]]></category>
		<category><![CDATA[日本語]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=108</guid>
		<description><![CDATA[yumのリポジトリを作成し、キーを登録する。 cd /etc/yum.repos.d wget http://centos.karan.org/kbsingh-CentOS-Extras.repo wget http://centos.karan.org/kbsingh-CentOS-Misc.repo rpm &#8211;import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt yumでSCIM と Anthyをインストール yum install anthy scim scim-anthy システム設定入力メソッドを Anthy + SCIM へ切替える。 /usr/sbin/alternatives &#8211;config xinput-ja_JP ここでサーバを再起動。 reboot ※今使っているVMwareイメージではブート状況の表示で日本語が四角くつぶれる。 ブートが進むと日本語表示されるようになるので気にしないことにする。 再起動してログインするとCtrl-Space（または半角/全角キー）でローマ字入力できるようになる。 ※できない場合は入力メソッドでシステム設定に従う[SCIM]が選択されているか確認する。 システム＞設定＞他の個人設定＞入力メソッド]]></description>
			<content:encoded><![CDATA[<p>yumのリポジトリを作成し、キーを登録する。</p>
<div class="console">
cd /etc/yum.repos.d<br />
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo<br />
wget http://centos.karan.org/kbsingh-CentOS-Misc.repo<br />
rpm &#8211;import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
</div>
<p>yumでSCIM と Anthyをインストール</p>
<div class="console">
yum install anthy scim scim-anthy
</div>
<p>システム設定入力メソッドを Anthy + SCIM へ切替える。</p>
<div class="console">
/usr/sbin/alternatives &#8211;config xinput-ja_JP
</div>
<p>ここでサーバを再起動。</p>
<div class="console">
reboot
</div>
<p>※今使っているVMwareイメージではブート状況の表示で日本語が四角くつぶれる。<br />
ブートが進むと日本語表示されるようになるので気にしないことにする。</p>
<p>再起動してログインするとCtrl-Space（または半角/全角キー）でローマ字入力できるようになる。</p>
<p>※できない場合は入力メソッドでシステム設定に従う[SCIM]が選択されているか確認する。
<pre>
システム＞設定＞他の個人設定＞入力メソッド
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/108.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS：memcachedをインストール</title>
		<link>http://blog.mktime.com/archive/55.html</link>
		<comments>http://blog.mktime.com/archive/55.html#comments</comments>
		<pubDate>Thu, 21 Aug 2008 11:49:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=55</guid>
		<description><![CDATA[CentOs5.2のリポジトリにmemcachedは無いのでリポジトリを追加する。 cd /usr/local/src wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm mencachedを入れるのに必要なモジュールをインストールする。 たぶんこのあたりを入れておけばおっけーなはず。 yum install gcc yum install memcached yum install zlib-devel yum install php-pecl-memcache memcachedの設定は/etc/sysconfig/memcachedを編集する。 動かすだけならデフォルトのままでOK。 memcacheの起動 /etc/init.d/memcached start サービスを自動起動にしておく。 chkconfig memcached on テストスクリプト [sourcecode language='php'] [/sourcecode]]]></description>
			<content:encoded><![CDATA[<p>CentOs5.2のリポジトリにmemcachedは無いのでリポジトリを追加する。</p>
<pre class="console">
cd /usr/local/src
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm
</pre>
<p>mencachedを入れるのに必要なモジュールをインストールする。<br />
たぶんこのあたりを入れておけばおっけーなはず。</p>
<pre class="console">
yum install gcc
yum install memcached
yum install zlib-devel
yum install php-pecl-memcache
</pre>
<p>memcachedの設定は/etc/sysconfig/memcachedを編集する。<br />
動かすだけならデフォルトのままでOK。<br />
memcacheの起動</p>
<pre class="console">
/etc/init.d/memcached start
</pre>
<p>サービスを自動起動にしておく。</p>
<pre class="console">
chkconfig memcached on
</pre>
<p>テストスクリプト<br />
[sourcecode language='php']<br />
<?php<br />
    $cache = new Memcache;<br />
    $key = 'cache_test';<br />
    $cache->connect(&#8216;localhost&#8217;, 11211);<br />
    if(!$cache->get($key)){<br />
        // キャッシュの有効時間は15秒<br />
        $cache->set($key, date(&#8216;Y-m-d h:i:s&#8217;), MEMCACHE_COMPRESSED, 15);<br />
    }<br />
    echo $cache->get($key);<br />
?><br />
[/sourcecode] </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/55.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centOS：yum-cronの設定</title>
		<link>http://blog.mktime.com/archive/12.html</link>
		<comments>http://blog.mktime.com/archive/12.html#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:46:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum-cron]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=10</guid>
		<description><![CDATA[パッケージ更新のダウンロードまでは自動でやっておいて欲しいのでyum-cronをインストールした。 そのメモ。 # yum install yum-cron インストールされた内容は # rpm -ql yum-cron /etc/cron.daily/yum.cron /etc/cron.weekly/yum.cron /etc/rc.d/init.d/yum-cron /etc/sysconfig/yum-cron /etc/yum/yum-daily.yum /usr/share/doc/yum-cron-0.6 /usr/share/doc/yum-cron-0.6/COPYING /usr/share/doc/yum-cron-0.6/README 設定ファイルは/etc/sysconfig/yum-cron。 初期状態だとパッケージ更新まで自動で行うようになっているので、設定ファイルを変更する。httpdのように更新を反映するのにrestartが必要なパッケージが放置されないように、当分は更新チェック、ダウンロードまで自動。アップデートは手動で行うつもり。 /etc/sysconfig/yum-cron # Don’t install, just check (valid: yes&#124;no) CHECK_ONLY=yes # Don’t install, just check and download (valid: yes&#124;no) # Implies CHECK_ONLY=yes (gotta check first to see what to download) DOWNLOAD_ONLY=yes 設定したらyum-cronの再起動する。 # /etc/init.d/yum-cron restart [...]]]></description>
			<content:encoded><![CDATA[<p>パッケージ更新のダウンロードまでは自動でやっておいて欲しいのでyum-cronをインストールした。<br />
そのメモ。</p>
<pre class="console">
# yum install yum-cron
</pre>
<p>インストールされた内容は</p>
<pre class="console">
# rpm -ql yum-cron
/etc/cron.daily/yum.cron
/etc/cron.weekly/yum.cron
/etc/rc.d/init.d/yum-cron
/etc/sysconfig/yum-cron
/etc/yum/yum-daily.yum
/usr/share/doc/yum-cron-0.6
/usr/share/doc/yum-cron-0.6/COPYING
/usr/share/doc/yum-cron-0.6/README
</pre>
<p>設定ファイルは/etc/sysconfig/yum-cron。<br />
初期状態だとパッケージ更新まで自動で行うようになっているので、設定ファイルを変更する。httpdのように更新を反映するのにrestartが必要なパッケージが放置されないように、当分は更新チェック、ダウンロードまで自動。アップデートは手動で行うつもり。</p>
<div class="caption">/etc/sysconfig/yum-cron</div>
<pre class="file">
# Don’t install, just check (valid: yes|no)
CHECK_ONLY=yes
# Don’t install, just check and download (valid: yes|no)
# Implies CHECK_ONLY=yes (gotta check first to see what to download)
DOWNLOAD_ONLY=yes
</pre>
<p>設定したらyum-cronの再起動する。</p>
<pre class="console">
# /etc/init.d/yum-cron restart
# yum check-update
</pre>
<p>これでrootにメールが来るようになる。</p>
<p>最後にyum-updatesdを止める。</p>
<pre class="console">
# /etc/init.d/yum-updatesd stop
# /sbin/chkconfig yum-updatesd off
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/12.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centOS：CentOS：yumのCtrl+Cとyum-fastestmirror</title>
		<link>http://blog.mktime.com/archive/10.html</link>
		<comments>http://blog.mktime.com/archive/10.html#comments</comments>
		<pubDate>Tue, 08 Jul 2008 14:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum-fastestmirror]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=8</guid>
		<description><![CDATA[知らなかったこと。 yumでパッケージをアップデートしようしていてパッケージが少しずつしか落ちてこないから、Ctrl+Cで中断しようとしたら勝手にミラーが替わって続きからダウンロードされた。 更新は異常ないみたいだけど、こんな機能あったんだ。 今回の更新でyum-fastestmirrorが入ったからもうこの機能を活用することはなさそうだけど。 今日はもう一台更新する必要があったので、そっちはちゃんと先にyum-fastestmirrorを入れた。少しだけ時間を得したはず。 # yum install yum-fastestmirror # yum check-update Loading "fastestmirror" plugin ・・・ # yum update]]></description>
			<content:encoded><![CDATA[<p>知らなかったこと。<br />
yumでパッケージをアップデートしようしていてパッケージが少しずつしか落ちてこないから、Ctrl+Cで中断しようとしたら勝手にミラーが替わって続きからダウンロードされた。<br />
更新は異常ないみたいだけど、こんな機能あったんだ。</p>
<p>今回の更新でyum-fastestmirrorが入ったからもうこの機能を活用することはなさそうだけど。</p>
<p>今日はもう一台更新する必要があったので、そっちはちゃんと先にyum-fastestmirrorを入れた。少しだけ時間を得したはず。</p>
<pre class="console">
# yum install yum-fastestmirror
# yum check-update
Loading "fastestmirror" plugin
・・・
# yum update
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/10.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

