新版 MSN 一推出,同事的 MSN 都被打掛不能使用。當天真的很慘, MIS 的電話幾乎被打爆。
昨天重新在 review fail log ,忽然找到原因了。
不能連線的原因是出在若使用者某一台電腦是第一次登入 MSN , MSN 會去取連絡人清單等資料,但由於 MSN 有 BUG,當他在用 SSL 連線取得連絡人清單時,並不會把 LDAP 的 帳號帶過去,所以連線被視為非法連線被 Proxy 拒絕掉。
現在只要讓這些網站的 SSL Connection 可以過, MSN 連線就會正常。
squid.conf example
### for new msn messenger
acl msn_ssl dstdomain .contacts.msn.com .storage.msn.com
http_access allow msn_ssl CONNECT
Wednesday, October 14, 2009
Nvidia Forcedeth 網卡重開會自動關閉 (power off)的作法參考
目前家裡有幾台 Acer Altos Server, OS: CentOS 4.7 Kernel 2.6.28.9 ,
每當重新開機網卡就會開不起來,除非是 cool reboot
找很一段時間,終於用對關鍵字找到文章 forcedeth eth shutdown
網址 http://www.nvnews.net/vbulletin/showthread.php?t=130438
他是說 forcedeth 會在關機的時候 也把自己設定成關閉(應該是自己的 firmware)
新版的 driver 有提供一些參數在 /etc/modprode.conf 可以改變他的行為
不過我換成 2.6.28.10 就沒有這個問題。
每當重新開機網卡就會開不起來,除非是 cool reboot
找很一段時間,終於用對關鍵字找到文章 forcedeth eth shutdown
網址 http://www.nvnews.net/vbulletin/showthread.php?t=130438
他是說 forcedeth 會在關機的時候 也把自己設定成關閉(應該是自己的 firmware)
新版的 driver 有提供一些參數在 /etc/modprode.conf 可以改變他的行為
不過我換成 2.6.28.10 就沒有這個問題。
Monday, September 14, 2009
remove linux ati driver
Uninstalling the ATI Linux Proprietary Driver
Uninstalling the ATI Linux Proprietary Driver is dependent on the mode of the
initial installation.
Automatic or Custom Driver Installations
If the ATI Proprietary Linux Driver was installed using either the Automatic or
Custom options, then do the following:
1 Launch the Terminal Application/Window and navigate to the /usr/share/ati
folder
2 With superuser permissions, enter the command "sh ./fglrx-uninstall.sh"
You have now successfully uninstalled the ATI Linux Proprietary Driver.
Uninstalling the ATI Linux Proprietary Driver is dependent on the mode of the
initial installation.
Automatic or Custom Driver Installations
If the ATI Proprietary Linux Driver was installed using either the Automatic or
Custom options, then do the following:
1 Launch the Terminal Application/Window and navigate to the /usr/share/ati
folder
2 With superuser permissions, enter the command "sh ./fglrx-uninstall.sh"
You have now successfully uninstalled the ATI Linux Proprietary Driver.
Saturday, September 05, 2009
Linux 當機 -> 優雅的重開法
現在 Kernel 有支援 SysRq 一直搞不懂他在做甚麼
原來是一個試圖在當機還能幫系統做些事情的機制
就是按住 ALT + SysRq (PrintScn) 然後依序按 reisub
他會試圖去做 Recover 的動作然後在 reboot
請看一下下面兩篇文章就知
http://linuxtoy.org/archives/what-to-do-if-linux-crash.html
http://alejandrocuervo.com/reisub/
原來是一個試圖在當機還能幫系統做些事情的機制
就是按住 ALT + SysRq (PrintScn) 然後依序按 reisub
他會試圖去做 Recover 的動作然後在 reboot
請看一下下面兩篇文章就知
http://linuxtoy.org/archives/what-to-do-if-linux-crash.html
http://alejandrocuervo.com/reisub/
losf 用法
lsof 有時候去抓一些 process 在開甚麼檔案或是使用甚麼 library 非常有用
下面一篇不錯的文章 去看看吧
http://ph7spot.com/articles/leveraging_lsof
下面一篇不錯的文章 去看看吧
http://ph7spot.com/articles/leveraging_lsof
Sunday, June 28, 2009
快速 dd 的步驟 - 同時要 dd 很多顆
這是血淚的經驗累積.... 按這這樣做比較不會開不起來
有機會再詳述 什樣的情形會 dd 失敗
不過我現在都是改用 CloneZilla 了..
先假設你的 source 放在 sda, 其他要 dd 的放在 sdb,sdc,sdd.....
建議用 Ubuntu 這是最安全的方法 要不然就是 CentOS Rescuse 但你不可以使用 chroot mode
a. 直接 dd 整顆
dd if=/dev/sda of=/dev/sdb bs=10M &
dd if=/dev/sda
這種方法 不用 grub-install
b. 只 dd /dev/sda1
先把 sdb, sdc, sdd 等先 fdisk 成 sda 一樣的 partitions table
I. dd if=/dev/sda1 of=/dev/sdb1 bs=10M &
dd if=/dev/sda1 of=/dev/sdc1 bs=10M &
dd if=/dev/sda1 of=/dev/sdd1 bs=10M &
II. 建 SWAP (CentOS 的 SWAP lable 應該是 SWAP-sda2)
mkswap -L SWAP-sda2 /dev/sdb2
mkswap -L SWAP-sda2 /dev/sdc2
mkswap -L SWAP-sda2 /dev/sdd2
III. 建 Home
mk.ext3 -L /home /dev/sdb3
mk.ext3 -L /home /dev/sdc3
mk.ext3 -L /home /dev/sdd3
IV. grub-install
我通常是把 dd 好的接到第1顆(如果是 CentOS 開機片開機的 一樣要接)
grub-install /dev/sda
有機會再詳述 什樣的情形會 dd 失敗
不過我現在都是改用 CloneZilla 了..
先假設你的 source 放在 sda, 其他要 dd 的放在 sdb,sdc,sdd.....
建議用 Ubuntu 這是最安全的方法 要不然就是 CentOS Rescuse 但你不可以使用 chroot mode
a. 直接 dd 整顆
dd if=/dev/sda of=/dev/sdb bs=10M &
dd if=/dev/sda
這種方法 不用 grub-install
b. 只 dd /dev/sda1
先把 sdb, sdc, sdd 等先 fdisk 成 sda 一樣的 partitions table
I. dd if=/dev/sda1 of=/dev/sdb1 bs=10M &
dd if=/dev/sda1 of=/dev/sdc1 bs=10M &
dd if=/dev/sda1 of=/dev/sdd1 bs=10M &
II. 建 SWAP (CentOS 的 SWAP lable 應該是 SWAP-sda2)
mkswap -L SWAP-sda2 /dev/sdb2
mkswap -L SWAP-sda2 /dev/sdc2
mkswap -L SWAP-sda2 /dev/sdd2
III. 建 Home
mk.ext3 -L /home /dev/sdb3
mk.ext3 -L /home /dev/sdc3
mk.ext3 -L /home /dev/sdd3
IV. grub-install
我通常是把 dd 好的接到第1顆(如果是 CentOS 開機片開機的 一樣要接)
grub-install /dev/sda
[CentOS4]Flash9 Install
我想還是有些人還是需要在 CentOS 使用 Flash
目前 Flash 最新為 v10, 但 v10 需要 glibc 2.4 以上
由於 CentOS4 glibc 為 2.3.4 所以不支援
所以我們就裝 Flash 9 吧
1. 請去找 flash9 最後一個版本為 flash-plugin-9.0.48.0-release.i386.rpm
這個 link 有點難找 Adobe 都說 不支援了 不過我幫大家找好了
http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-9.0.48.0-release.i386.rpm
安裝 Flash9 需要 nspluginwrapper 支援 請抓 plugins 和 viewer
請至 http://gwenole.beauchesne.info/en/projects/nspluginwrapper#downloads 下載
所以安裝方法如下
rpm -ivh flash-plugin-9.0.48.0-release.i386.rpm
nspluginwrapper-1.2.2-1.x86_64.rpm nspluginwrapper-i386-1.2.2-1.x86_64.rpm
目前 Flash 最新為 v10, 但 v10 需要 glibc 2.4 以上
由於 CentOS4 glibc 為 2.3.4 所以不支援
所以我們就裝 Flash 9 吧
1. 請去找 flash9 最後一個版本為 flash-plugin-9.0.48.0-release.i386.rpm
這個 link 有點難找 Adobe 都說 不支援了 不過我幫大家找好了
http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-9.0.48.0-release.i386.rpm
安裝 Flash9 需要 nspluginwrapper 支援 請抓 plugins 和 viewer
請至 http://gwenole.beauchesne.info/en/projects/nspluginwrapper#downloads 下載
所以安裝方法如下
rpm -ivh flash-plugin-9.0.48.0-release.i386.rpm
nspluginwrapper-1.2.2-1.x86_64.rpm nspluginwrapper-i386-1.2.2-1.x86_64.rpm
Monday, April 13, 2009
linux high performance kernel for Intel
優化 Kernel 個人覺得很重要
雖然有現成的 CentOS 的 kernel rpm 可以用
但還是不太符合目前的環境 所以要自己動手了
我的目標是編出一個高效的 kernel
目前已知 LinuxDNA 在做這件事
但只有 Intel, For AMD 本人在找
LinxDNA http://www.linuxdna.com/
http://www.linuxjournal.com/content/linuxdna-supercharges-linux-intel-cc-compiler
雖然有現成的 CentOS 的 kernel rpm 可以用
但還是不太符合目前的環境 所以要自己動手了
我的目標是編出一個高效的 kernel
目前已知 LinuxDNA 在做這件事
但只有 Intel, For AMD 本人在找
LinxDNA http://www.linuxdna.com/
http://www.linuxjournal.com/content/linuxdna-supercharges-linux-intel-cc-compiler
Wednesday, April 08, 2009
亂找 優化超大記憶體的 Server
目前要優化 Server 效能
CPU 4*2 , Memory 64Gb
一個 job 可能大到數十 Gb
目前用了這一些關鍵字在找
linux large scale
linux 64G memory sysctl.conf
nr_hugepages 64bit
nr_hugepages 64G
enterprise linux performance tuning -- 這個關鍵字不錯喔 2009/04/13
make linux high performance kernel -- 2009/04/13
CPU 4*2 , Memory 64Gb
一個 job 可能大到數十 Gb
目前用了這一些關鍵字在找
linux large scale
linux 64G memory sysctl.conf
nr_hugepages 64bit
nr_hugepages 64G
enterprise linux performance tuning -- 這個關鍵字不錯喔 2009/04/13
make linux high performance kernel -- 2009/04/13
Monday, April 06, 2009
gmail 新增的 task list 功能很不錯喔 - 可以提醒自己忘了甚麼事
常忘記甚麼事嗎?偏偏又常常忘記在行事曆新增工作呢?
Gmail 有個很棒的功能就是把 Email 變成 Task
只要你有甚麼事情怕忘記 就把他勾起來變成 Task
這樣他就會一直顯示在 gmail 右下角提醒你
如果你是常忘記繳信用卡的小迷糊(好像是我啦) 這個東東就可以提醒你嚕
來設定吧!
目前因為還在測試 所以只支援英文版
所以先到 Gmail 的設定將改為 English(US)
然後再點右上角 Settings 左邊的綠色小瓶子, 點選就可以進入 Labs
找到 Tasks 選右邊 Enable (目前是第一個) Save Changes 即可。
Gmail 有個很棒的功能就是把 Email 變成 Task
只要你有甚麼事情怕忘記 就把他勾起來變成 Task
這樣他就會一直顯示在 gmail 右下角提醒你
如果你是常忘記繳信用卡的小迷糊(好像是我啦) 這個東東就可以提醒你嚕
來設定吧!
目前因為還在測試 所以只支援英文版
所以先到 Gmail 的設定將改為 English(US)
然後再點右上角 Settings 左邊的綠色小瓶子, 點選就可以進入 Labs
找到 Tasks 選右邊 Enable (目前是第一個) Save Changes 即可。
Subscribe to:
Comments (Atom)
