<?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>NICA &#187; CentOS</title>
	<atom:link href="http://nicaliu.info/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicaliu.info</link>
	<description>【20100519】因有了NexusOne而擁有了全世界的卡恩萬丟洗襪</description>
	<lastBuildDate>Mon, 30 Aug 2010 08:20:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS 5.4 釋出!</title>
		<link>http://nicaliu.info/2009/10/23/2420/</link>
		<comments>http://nicaliu.info/2009/10/23/2420/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 13:49:42 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】新聞]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://nicaliu.info/?p=2420</guid>
		<description><![CDATA[譯者：Nica &#60; nicaliu at gmail dot com &#62;
CentOS Linux 5 系列的第四版釋出了!

這次釋出的重點包括了 kernel-based 的 virtual machine 虛擬化，與伴隨 Xen 虛擬化而來的一些技術。虛擬化解決方案的擴充性已增加到支援 192 顆 CPU 與 1GB hugepages、GCC 4.4 與新 malloc()、叢集、高可用性(high-availability) 檔案系統等。可自 mirror 取得 CD image 或透過 BitTorrent 取得 32bit  、 64 bit  的 DVD。
如果已安裝執行 CentOS 5.3 或舊版 CentOS-5 分支，只需要簡單的透過 Interne 升級 就好。
原文出處：
CentOS 5.4 Released
]]></description>
		<wfw:commentRss>http://nicaliu.info/2009/10/23/2420/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yumError @ CentOS 5.3</title>
		<link>http://nicaliu.info/2009/10/17/2387/</link>
		<comments>http://nicaliu.info/2009/10/17/2387/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 07:03:16 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】筆記]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://nicaliu.info/?p=2387</guid>
		<description><![CDATA[在 centos 5.3 下執行 yum update
最後會出現一長串的錯誤訊息：
Traceback (most recent call last):
File &#8220;/usr/bin/yum&#8221;, line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)

File &#8220;/usr/share/yum-cli/yummain.py&#8221;, line 229, in user_main
errcode = main(args)
…
File &#8220;/usr/lib/python2.4/site-packages/yum/sqlitesack.py&#8221;, line 94, in _read_db_obj
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object
參考：http://www.centos.org/modules/newbb/print.php?form=1&#38;topic_id=20237&#38;forum=37&#38;order=ASC&#38;start=0
解決方式如下：
[root@JNT ~]# yum clean all 
Loaded plugins: security
Cleaning up Everything
[root@JNT ~]# rm -f /var/lib/rpm/__db*
[root@JNT ~]# rpm &#8211;rebuilddb
[root@JNT ~]# yum update
…
成功!!!
]]></description>
		<wfw:commentRss>http://nicaliu.info/2009/10/17/2387/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>刪除重複的 RPM</title>
		<link>http://nicaliu.info/2009/02/26/1974/</link>
		<comments>http://nicaliu.info/2009/02/26/1974/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 04:52:27 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】筆記]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://nicaliu.info/?p=1974</guid>
		<description><![CDATA[CentOS 5.2 安裝在 x86_64 的機器上一陣子後，開始安裝/移除套件時發現：有些 RPM 會出現因重複無法移除的問題。像這樣：
[root@JNT2 ~]# rpm -e kudzu-devel
error: &#8220;kudzu-devel&#8221; specifies multiple packages
解決的方式是透過 yum，它可以指定套件的架構版本。就上述而言，問題是出在於系統安裝了兩套 kudzu-devel，分別是 kudzu-devel.i386 與 kudzu-devel.x86_64，我的系統是 x86_64 的架構，所以移除掉重複的 i386 版本，應不致對系統造成影響。
因為我不會用 sed/awk，也不會寫程式，所以我的笨作法是：先列出系統安裝的所有 RPM，再排序以便找出重複的套件名稱。排序指令 sort 有一個 -u 的參數，可以在發現重複的項目時，只列出其中一個，利用此功能，我作成兩個檔案：一個有重複的套件名、一個沒有，再用 diff 進行比對，抓出重複的套件刪除之。
一、列出所有 rpm、排序後存成 sort 檔：
rpm -qa&#124; sort &#62; sort
二、列出所有 rpm、排序後過濾掉重複的套件名，存成 sortu 檔
rpm -qa&#124; sort -u  &#62; sortu
三、比對這 sort 與 sortu 檔，挑出 diff 產生的開頭 &#60; 字元 [...]]]></description>
		<wfw:commentRss>http://nicaliu.info/2009/02/26/1974/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache HTTP Server 的安全性</title>
		<link>http://nicaliu.info/2009/02/16/1934/</link>
		<comments>http://nicaliu.info/2009/02/16/1934/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 07:52:43 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】HowTo]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://nicaliu.info/?p=1934</guid>
		<description><![CDATA[譯者：Nica &#60; nicaliu at gmail dot com &#62;
Apache HTTP Server 是 Red Hat Enterprise Linux 下最穩也最安全的服務之一。擁有超多的選項與技術，可用來加強 Apache HTTP Server 的安全 &#8211; 因為太多，無法在此一一敘述。
在組態 Apache HTTP Serveer 時，最重要的就是要先詳讀該應用程式的文件，包括此處的 22 章 Apache HTTP server  與 Stronghold 手冊 &#8211; http://www.redhat.com/docs/manuals/stronghold/。
系統管理者在使用下列組態選項時，應該特別留意：
．FollowSymLinks
該指令預設為啟用，所以在為 Web Server 的 document root 建立 symblic link 時請特別的小心。舉例來說，不建議在這裡為 / 設定 symblic link。
．Indexes 指令
預設為啟用，但不需要。為避免訪客瀏覽你伺服器裡的檔案，請移除該指令。
【Nica 註：將 &#60;Directory &#8220;/var/www/html&#8221; 下的   [...]]]></description>
		<wfw:commentRss>http://nicaliu.info/2009/02/16/1934/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.2 系統修復的基本觀念</title>
		<link>http://nicaliu.info/2009/02/16/1926/</link>
		<comments>http://nicaliu.info/2009/02/16/1926/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 04:55:59 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】HowTo]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://nicaliu.info/?p=1926</guid>
		<description><![CDATA[譯者：Nica &#60; nicaliu at gmail dot com &#62;
系統出問題的時侯可以試試本文介紹的幾個方法。
不過在使用這些方法時你必須對系統有一定的瞭解，這裡會談到怎麼開機進入 rescue mode、single-user mode 還有緊急模式。進入後請用你的知識去修復系統。
需要進入這些模式可能有幾個理由：
．無法正常開機進入系統 (runlevel 3 或 5 )
．軟、硬體有問題，你必須進入系統取幾個重要的檔案
．忘記 root 密碼
一、無法開機進入系統
通常發生在安裝完 Linux，又裝了其它作業系統的情況下。有些作業系統會假設這台電腦裡沒有其它作業系統。它們會覆寫 MBR (Master Boot Record) &#8211; 也就是存放 GRUB boot loader 的地方。若 boot loader 被覆寫，就無法開機進入 Linux，除非進入 rescue mode 重新組態 boot loader。
另一種常見的情況就是在安裝完成後，使用重新分割系統的工具，調整分割區大小或從沒有使用到的空間建立新的分割區，這些動作會改變分割區的順序。若 / 分割區的編號改變，boot loader 就會找不到它，無法執行掛載分割區的動作。要修復此問題，需開機進入 rescue mode  並修改 /boot/grub/grub.conf 這個檔。
二、軟、硬體問題
這個範疇涵蓋極廣。有可能是硬碟壞了，也可能是在 boot loader 組態檔裡指定了無效的 root 裝置或 kernel。無論是哪一個，你都無法重開 Linux。不過若可以開機至其中一種修復模式，可能就能解決這個問題，或至少取得重要檔案的備份。
三、root [...]]]></description>
		<wfw:commentRss>http://nicaliu.info/2009/02/16/1926/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MondoRescue -備份 Linux 系統 -2(完)</title>
		<link>http://nicaliu.info/2009/02/11/1515/</link>
		<comments>http://nicaliu.info/2009/02/11/1515/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 04:39:28 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】HowTo]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MondoRescue]]></category>
		<category><![CDATA[備份]]></category>

		<guid isPermaLink="false">http://nicaliu.info/?p=1515</guid>
		<description><![CDATA[備份的實作演練…

在 CentOS 5.2 下安裝 mondo-2.2.6-1、mindi-2.0.3-1，將系統備份在 CD-R (700MB) 裡，在 2.6 kernel  的作業系統下，需指定 CD-R(W) 裝置：
[root@jnt2 ~]# mondoarchive -Oc 48 -s 700m -d /dev/cdrom
Initializing&#8230;
See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Done.
&#8230;
&#8230;
======= Mondo 的部份完成後，將自動進行 mindi 任務==============
&#8212;evalcall&#8212;E&#8212;
&#8212;evalcall&#8212;1&#8212;      Dividing filelist into sets
&#8212;evalcall&#8212;2&#8212; TASK:  [********************]  99% done;  0:00 to go
&#8212;evalcall&#8212;E&#8212;
Your backup will occupy approximately four media.
Done.
Copying Mondo&#8217;s core [...]]]></description>
		<wfw:commentRss>http://nicaliu.info/2009/02/11/1515/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash prompt basics</title>
		<link>http://nicaliu.info/2008/12/09/35/</link>
		<comments>http://nicaliu.info/2008/12/09/35/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 09:35:00 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】HowTo]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://nicaliu.info/2008/12/09/35/</guid>
		<description><![CDATA[譯者：Nica &#60; nicaliu at gmail dot com &#62;
當你以命令列管理 Linux/unix 作業系統、使用者，並與系統互動時，乃是透過 shell。本文將探討的是 bash shell 提示符號的一些要點。
(以下實作內容與部份譯文，將視譯者在 CentOS 裡的系統實作，而有所調整)

在許多 Linux 裡，預設的 bash 命令列提示符號是沒有區分顏色的，它通常會顯示使用者名稱、主機，與現行工作目錄這三項資訊。本文接下來的段落，將會看到：透過匯出 bash 提符號：PS{n} 變數的方式，便能輕鬆改變這個預設的設定。Bash 提示符號可以依使用者的需求修改，它可以顯示時間、系統負載、現正使用系統的使用者人數、系統啟動時間等等資訊。
Bash 提示符號變數
一如 Linux 系統裡的其它東西：bash 提示符號也是可以客製化的。用改變 bash PS1、PS2、PS3、PS4 變數值的方式，即可客製化 bash 提示符號。為了簡化，本文將僅著墨在 PS1 與 PS2 變數的部份。
透過 echo 命令，查看現行 PS1 與 PS2 變數值為何。
echo &#8220;Bash PS1 variable:&#8221;  $PS1
echo &#8220;Bash PS2 variable:&#8221;  $PS2
【譯者 CentOS 系統中，實作如下】
[root@jnt2 ~]# echo [...]]]></description>
		<wfw:commentRss>http://nicaliu.info/2008/12/09/35/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.2 與 Attansic 網卡</title>
		<link>http://nicaliu.info/2008/08/31/158/</link>
		<comments>http://nicaliu.info/2008/08/31/158/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 15:04:00 +0000</pubDate>
		<dc:creator>Nica</dc:creator>
				<category><![CDATA[【技術手札】筆記]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://nicaliu.info/2008/08/31/158/</guid>
		<description><![CDATA[在 CentOS 5.2 下安裝 Asus P5GC-MX/1333 onboard 的 Attansic 網卡

1．解開 Asus 主機版隨附光碟裡 LinuxDriver 下的 Attansic 網卡驅動程式壓縮檔 l2-linux-v1.0.40.4.tar.gz
2．切換至 ./l2-linux-v1.0.40.4/src 目錄
2-1．移除  kcompat.h 檔裡的 &#60;= 讓尼卡卡住的關鍵，呿!
typedef irqreturn_t (*irq_handler_t)(int, void*, struct pt_regs *); 
這行。(應該在 1084 行的位置)
2-2． 執行 make install
3．執行
insmod /lib/modules/2.6.18-92.el5/kernel/drivers/net/atl2/atl2.ko
或
modprobe atl2
4．確認模組已安裝
lsmod &#124; grep atl2
5．設定網卡
vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Attansic Technology Corp. L2 100 Mbit Ethernet Adapter
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
7. 網路服務重啟
service network restart
8. 網路終於通了!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]]></description>
		<wfw:commentRss>http://nicaliu.info/2008/08/31/158/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
