跳到主要內容

發表文章

目前顯示的是 12月, 2010的文章

讓CentOS 5 支援中文與Flash Player 的方法

支援中文:     使用yum yum install -y fonts-chinese* yum install -y fonts-ISO8859*     使用rpm 下載 fonts-chinese: http://rpm.pbone.net/index.php3/stat/4/idpl/13941280/dir/centos_5/com/fonts-chinese-3.02-12.el5.noarch.rpm.html 下載 fonts-ISO8859:  http://ftp.dc.volia.com/pub/CentOS/CentOS/fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm 支援Flash Player: yum install -y curl compat-libstdc++-33 glibc nspluginwrapper 到Adobe 網站下載 Flash Player http://get.adobe.com/flashplayer/ 網站會讓你選擇要下載什麼, 我選擇 RPM 安裝下載好的Flash Player檔案 rpm -ivh flash-plugin-10.1.102.65-release.i386.rpm 重新啟動瀏覽器, 之後就可以看到Flash 網頁了

解決在Ubuntu/Debian底下因更換網路卡或將硬碟安裝在另一台伺服器之後找不到eth0/網路的問題

Ubuntu Desktop / Ubuntu Server / Kubuntu與Debian會紀錄網路卡的MAC Address來判斷目前所用的網卡是否與紀錄一致, 倘若不同, 就會自動新增一筆紀錄. 所以就算更換新的網卡(同樣道理, 在A 電腦的VirtualOS 的網卡與B電腦的VirtualOS 的網卡Mac Address 不同), 舊網卡的資料還是一樣會被判定成eth0, 而其他新增的網卡會依照eth1,eth2...一直自動新增下去. 解決的辦法: sudo vi /etc/udev/rules.d/70-persistent-net.rules 你會看到類似以下的參數設定... # PCI device 0x10de:0x00df (forcedeth) #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:22:33:44:55", ATTR{type}=="1", KERNEL=="eth*", NAME=" eth0 " # PCI device 0x10de:0x00df (forcedeth) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="55:44:33:22:11:00", ATTR{type}=="1", KERNEL=="eth*", NAME=" eth1 " 只保留最底下的參數 (# PCI device 0x10de:0x00df (forcedeth) 開始), 其餘的通通刪除, 並且將 NAME="eth1" 更改成 NAME="eth0" 範例: # PCI device 0x10de:0x00df (forcedeth) #SUBSYSTEM==...