preload
二月 20

網站的blog程式(wordpress) 已經好幾年沒更新了.
趁著心血來潮, 一口氣從wordpress 2.0.4更新到2.7.1
也順便換了佈景主題. 看起來清爽多了.. :)

一月 19

最近不知為何, 在好幾台server 中執行yum , 都會失敗.
出現如下的訊息:
Loading "installonlyn" plugin
rpmdb: Lock table is out of available locker entries
rpmdb: Unknown locker ID: xxx
......
雖然server重新開機後可解決此狀況. 但是並不是所有的server都允許常常重開機.
後來找到解法:
參考下列網頁
http://linux.derkeiler.com/Mailing-Lists/Fedora/2008-04/msg00460.html

1) Become superuser
2) Make sure no instances or 'rpm' or 'yum' are running
3) rm /var/lib/rpm/__db.*
4) rpm --rebuilddb

看來好像rpm 的設計有點爛 :(

一月 05

Solaris的NFS

Linux, Network, solaris 迴響已關閉

以下文章來至於http://edwardhuang.pixnet.net/blog/post/15645490


========================================================================
在 solaris 中,並不像其它的 UNIX 系統一樣,要利用 NFS 來 export硬碟是去修
改 /etc/exports. 而是要去修改 /etc/dfs/dfstab 這個檔. 設定的方法如下:

利用 share 來 export 硬碟,share 的參數如下:

Attrib         Description
===============================================
-ro          Export read-only, or of used in the form -ro=list, restrict
             access only for the listed hosts.
-rw          Export read-write, or if used in the form -rw=list, allow
             writing only by the listed hosts.
-root=list   Lists hosts permitted to access this filesystem as root. Other-
             wise, root access from a client is equivalent to access by the
             user nobody (usually UID -2).
-anon=n      Specifies UID used for requests coming from an unknown user.
             If not specified, defaults to nobody.

以下舉一個例子,說明 /etc/dfs/dfstab 的寫法.

#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command '/etc/init.d/nfs.server start' to run the NFS
#       daemon processes and the share commands, after adding the very
#       first entry to this file.
#
#       share [-F fstype] [ -o options] [-d ""] [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2

share  -F nfs  -o rw=sparc,root=sparc  -d "File System" /
share  -F nfs  -o rw=sparc,root=sparc:sparc1:sparc2  -d "User Directory" /usr

1.第一行 share 是把 / (root) share 給一台叫 sparc 的機器,且權限為可以 rw.
2.第二行同樣是把 /usr 這個目錄 share 給 sparc,sparc1,sparc2 這三台機器,
  權限亦為 rw.

 exp.    share  -F nfs  -o rw=sun2,root=sun2  -d "sun1_home" /export/home
  or      share -F nfs -o rw,anon=0 /export/home 

修改完之後,以 root 的身份執行 shareall 即可.

檢查 /etc/dfs/sharetab 是否編輯成功

還有另外一篇http://edwardhuang.pixnet.net/blog/post/15645154


solaris NFS file server
1.How to Start and Stop NFS server
  #/etc/init.d/nfs.server start
  #/etc/init.d/nfs.server stop
2.開機自動分享nfs的檔案系統
修改
/etc/dfs/dfstab檔案
#vi /etc/dfs/dfstab
會看到以下畫面,#是註解

#    Place share(1M) commands here for automatic execution
#    on entering init state 3.
#
#    Issue the command 'svcadm enable network/nfs/server' to
#    run the NFS daemon processes and the share commands, after adding
#    the very first entry to this file.
#
#    share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
#    .e.g,
#    share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
#   上面有簡單的說明,以下兩行是自己設定的
share -F nfs -o rw,anon=0 -d "nfs_share" /export/home/nfs
share -F nfs -o ro,anon=0 -d "mp3_share" /export/home/samba

3.開機後手動分享檔案的方法
#share -F nfs -o rw,anon=0 -d "nfs_share" /export/home/nfs
#shareall
這樣就可以將檔案分享出去了

4.mount 已經分享的NFS檔案系統
#mount -F nfs ipaddress:/patch mount point
example:
#mount -F nfs 10.0.0.1:/export/home /mnt

4.取消分享的方法
#unshare -F nfs /mnt
取消所有的分享
#unshareall

5.查看分享了哪些檔案
查看server本身有哪些分享

#share
查看別台server 有哪些分享
#dfshares -F nfs ip address or hostname
example
#dfshares -F nfs 192.168.11.200
十二月 26

Demonoid.com

Network 迴響已關閉

無意中發現了這個好站~~

http://www.demonoid.com

嘿嘿~~
只可惜目前尚未有invitation code….
不過還是可以稍微地挖寶….

ps: How to get a invitation code ??

十二月 24

MAC vs PC

MAC, computer, windows, 生活 迴響已關閉

哇靠!!!
實在是太酷的影片了.
不把它blog起來, 真是對不起自己.

十二月 23

目標: 用原版的MAC OSX 10.5.4光碟來安裝. 並且越少Driver越好.
安裝方式:
參考下列網頁:
http://j3ss31963.wordpress.com/2008/11/05/osx86-%E5%9C%A8-pc-%E4%B8%8A%E5%88%A9%E7%94%A8%E5%8E%9F%E7%89%88%E9%9B%B6%E5%94%AE%E5%85%89%E7%A2%9F%E5%AE%89%E8%A3%9D-mac-os-x-leopard/

http://j3ss31963.wordpress.com/2008/11/06/osx86-%E5%9C%A8-pc-%E4%B8%8A%E5%88%A9%E7%94%A8%E5%8E%9F%E7%89%88%E9%9B%B6%E5%94%AE%E5%85%89%E7%A2%9F%E5%AE%89%E8%A3%9D-mac-os-x-leopard-%E9%80%B2%E9%9A%8E%E7%AF%87/

http://j3ss31963.wordpress.com/2008/12/14/osx86-%E5%8D%87%E7%B4%9A%E8%87%B3-leopard-1056-%E7%9A%84%E4%BA%8B%E5%89%8D%E6%BA%96%E5%82%99%E5%B7%A5%E4%BD%9C/

http://www.macbookone.com/2008/12/macbook-one-boot-132-leopard.html
還有就是Google神啦..

硬體問題:
(1) 目前只裝了一個OpenHaltRestart.kext, 其餘都用內建的Driver.
(2)顯卡問題解決如下:

edit the file /Library/Preferences/SystemConfiguration/com.apple.Boot.plist and insert the lines:
<key>Graphics Mode</key>
<string>1280×1024×32</string>

(3)音效卡則改用外接USB 音效卡來取代內建音效卡. (因為外接式USB音效卡不需Driver)

軟體問題:
(1)TimeMachine, 竟然跟網卡有關. 還好參考下列資料而解決了:
http://forum.netkas.org/index.php?topic=92.0
http://forum.netkas.org/index.php?PHPSESSID=dkp1nvqbsus5h3ijej7vjb7ts0&/topic,64.msg851.html#msg851
http://forum.netkas.org/index.php/topic,64.0.html
(2)X11, 跟顯卡有關, 解決方式如下:

且在Terminal中執行xinit, 出現以下訊息時:
Fatal server error:
Unsupported color depth -1
可以嘗試在Terminal中執行下列命令:
defaults write org.x.X11 depth 24
然後重開機即可

目前: 已經升級到10.5.6, 工作正常

十二月 11

Continue reading »

十月 23

參考:
http://nelson.pixnet.net/blog/post/22090024

就是利用google 幫忙搜尋Avira的促銷活動的網頁.
再去申請免費的免費的key, 通常可以1 ~ 3個月.
到期後, 再找一次促銷活動的網頁來申請囉!!

方法:
用google 搜尋
site:license.avira.com Promotion -URL -disabled
其中
license.avira.com 是小紅傘專門用來提供授權金鑰的網址
-URL -disabled 是用來濾掉過期的促銷活動

十月 14

今早上我突然心血來潮, 去申請了一個中文域名.
然後把我的blog對應到此domain name.
但是…. 在http.conf 中的virtual host設定中無法設定中文………

哇咧~~ 搞屁啊!!

還好, Google大神又救了我 (已經救了我幾千百次了) ~~||
http://中文.tw/technology/technology_02.htm

原來在http.conf 中要用punycode 編碼
把我的中文域名轉成punycode 後在設定到http.conf 就可以啦….

十月 07

實在受不了Vista 瘋狂讀硬碟的問題, 讓人有點想把電腦砸爛的感覺.
只好上網找解決方式:
http://briian.com/?p=4999

就是將Vista 中的Superfetch 功能關閉即可.(真不知微軟設計此功能的工程師有無考慮使用者的感覺??!!!)
作法如下:
用regedit 找到下列項目:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters

EnablePrefetcherEnableSuperfetch 的數值由 3 改為 0 即可.

還有更簡單的改法:
在 [服務]–>[Superfetch] 將該服務停止並改為手動即可,不需重開機

關於superfetch 是好是壞? 眾說紛紜…. 反正自己覺得好用就是好, 難用就是爛啦.