2009/10/29

測試 freeNAS

測試版本:0.69
  • 沒有 quota 功能
  • 效能普通,沒比 samba 好多少
    和 samba 一樣,7xxxKB/s
  • 可結合 AD
  • 設定比 samba 方便多了
  • 沒有可以設定 acl 的地方,只能從檔案總管設定
  • 沒有可以檢視所有共用的功能:這樣我不知道到底分享了多少資料匣,及是否有設定特殊權限
  • 沒有 snapshot 功能;看網路是說有辦法可以啟動;但要動用到 shell script,而且需以 ZFS 檔案系統格式化硬碟;但 ZFS 是測試版才有的功能
結論:
個人用是不錯的選擇,但不適合企業用 (如果要用到 snapshot 及 quota 的話)

2009/10/28

firefox addon: stylish 設定變更

昨天昇級 windows ,把 firefox 的 profile 用 mozbackup 匯入後,再手動把 stylish.rdf 放回去 %userprofile%

再啟動 firefox 後,發現我的 stylish 設定沒有回來 ... 0rz

爬了好一會的文,才在這個網站看到
http://knyijong.blogspot.com/2009/07/stylish.html

ファイルが二つあるのはバージョンによる違いだそうです。

stylish.rdf
Stylish 0.5.9以前
stylish.sqlite
Stylish 1.0以降
雖然我破破的日文看不太懂它寫什麼,但版本號還是看的懂的

意思是說 stylish 0.59 以前用的是 stylish.rdf
但 stylish 1.0 以後就用 stylish.sqlite 了

偏偏 mozbakup 向來都不會備份全部的東西 (怒)

只好手動把 stylish 移除後,配合 nightly tester tools 安裝 stylish 0.59 版,再重新啟動 firefox 後,stylish 設定檔就回來了... (呼)

stylish 舊版網址 https://addons.mozilla.org/en-US/firefox/addons/versions/2108

爬文過程中,看到老外是用 FEBE 來做備份的,改天測看看,結果就補再本篇下方
FEBE中文介紹 看完再去看 febe faq,發現連密碼都可以備份 (Y)

好吧,那我要把 mozbackup 丟掉了 (如果 febe 支援 thunderbird 的話)

febe 只支援 firefox ... 好吧,那就用兩個工具分開備份了

2009/10/26

iTune wih NFS 筆記

因為 ibook 使用 iTune 透過無線網路存取 debian 的 nfs share mp3 ,老是會有彩球轉不停的問題,所以我從前天開始就一直微調 debian nfs option 以及 10.4 的 nfs option

詳細的以後再補
  • 在 debian 調整的:
    /etc/exports : mp3
    async -> sync
    insecure
  • 在 10.4 調整參數
    • Mount the Linux-served NFS filesystems using the -L option, which disables file locking support for that mount.

    • To disable all NFS file locking support for the affected client, change its /etc/hostconfig default value "NFSLOCKS=-AUTOMATIC-" to be "NFSLOCKS=-NO-", and restart.
    • 參考連結 http://support.apple.com/kb/TA21430?viewlocale=en_US

  • 在 10.4 用 netinfo mgr,利用 automount 自動掛 nfs
    參考這一篇 http://mactechnotes.blogspot.com/2005/08/mac-os-x-as-nfs-client_31.html
  • 微調 netinfo mgr 的參數,希望效能可以好一點
    -P,sync,tcp,-L,-i,r=32678,w=32678

    參考
    http://www.macosxhints.com/article.php?story=20030504042711312
  • 嘗試在 debian 安裝 kernel-patch-nfs-ngroups
調整 10.4 的參數
  • 參考 http://forums.macosxhints.com/showthread.php?t=65886
    example:
    nas:/media /mnt nfs -s,-3,-x=10,ttl=10000,-t=10,net,-b,-P,sync,-U,nosuid,-L,-l,-d,mnttimeo=15,-i,-w=65536 0 0
後記:最後我還是放棄了...
狀況是,某特定幾首歌,只要我去存取它,彩球就會轉不停,iTune 也整個 hang 住;觀看系統監視器,只有網路的 in 明顯提高,不知在下載什麼東西

感覺上和 NFS 沒什麼關係,因為我不管怎麼調參數,彩球都還是一樣照轉(存取特定的歌時)

決定還是用外接式硬碟來解決這個問題

後記:
結果用外接式硬碟依舊,修復權限後也沒有作用(怒)
爬文爬了很多,這次用關鍵字 "iTunes 9" slow 查
http://discussions.apple.com/thread.jspa?threadID=2156174&tstart=75
http://discussions.apple.com/thread.jspa?threadID=2213851&tstart=225
發現災情滿慘重的,看起來明確有效的解決之道是:降級為 iTunes 8 ... 0rz

2009/08/20

Debian Etch to Lenny

參考http://www.dnaspirit.com/weblog/?p=76

看著網路上如何升級的的文章,大抵上非常的簡單,就是編寫/etc/apt/sources.list,把出現etch的地方改成lenny。

deb http://ftp.tw.debian.org/debian/ lenny main
deb-src http://ftp.tw.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib

接下來就是執行:
apt-get update
apt-get dist-upgrade

------------------- 參考的部份到這邊結束 ---------------------

接下來就是看我的主機會遇到什麼問題了 . . . ^_< perl: warning: Falling back to the standard locale ("C"). Running postrm hook script /sbin/update-grub. You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead! Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.18-6-686 Found kernel: /boot/vmlinuz-2.6.18-5-686 Updating /boot/grub/menu.lst ... done Preparing to replace mysql-client-5.0 5.0.32-7etch10 (using .../mysql-client-5.0_5.0.51a-24+lenny1_i386.deb) ... Unpacking replacement mysql-client-5.0 ... Errors were encountered while processing: /var/cache/apt/archives/linux-image-2.6.26-2-686_2.6.26-17lenny2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

又做了幾次 upgrade,最後莫明奇妙的好了 ... 0rz (可能哪天就會莫名奇妙的死了)

另一台參考另一篇文件
http://wiki.debian.org.hk/w/Upgrade_Debian

倒是滿順利的就做完了,沒什麼問題,就等重新開機了 (抖很大)

待續...

2009/08/13

備份 d9 片

在 ubuntu 裡面沒有像 daemon tools / alcohl 一樣好用的工具,實在是件很麻煩的事

有時候拿到手的,會是 ubuntu 中沒有辦法處理的 .mds, .mdf / nrg 等映象檔
在以前,我可能只會眼淚含著,跑去找一台有 daemon tools 的 winxp(或者是打開 virtual box),再把映像檔燒出來

現在不用那麼麻煩了(嗯哼)

輕鬆掛載映象檔(參考這邊):

Debian/Ubuntu users can grab the installer from here:
For 32-bit(x86) / For 64-bit (amd64)

You can grab the sources and recompile it as well.

安裝完 Furious ISO Mount 後,可以在影音裡面找到它 (以9.04為例)

執行的畫面如左:








簡單三步驟
1 browse : 載入映象檔
2 mount : 指定掛載點(自動設定)<- 很棒對不對?
3 unmount : 卸除映象檔

就這樣 ~

以後不用再去找 windows 了 (淚目

後記,這個軟體比 lazybuntu / lazyscripts 中收錄的 gmount ISO 真是好用太多了
gmount ISO 要自建資料匣、指定掛載點,還只吃 ISO 檔 ... =''=
furious ISO mount 可以自動掛載、nrg/mdf/iso 都吃(嘛~ 也許不是全部,但比 gmount ISO 還是好多了)

趕緊筆記起來,以後的 ubuntu 可別忘了這個好東西 ^ ^

---------------- 搞定掛載程式後 ----------------------------------
接下來要對付 d9 的映象檔
有時候拿到手的 d9 image ,並沒有記載分層點的資訊
imgburn 碰到這種映象檔,會出現 "沒有分層點" (正確的訊息我忘了,類似 not found) 的錯誤訊息;就算硬燒出來,播放機也是沒有辦法吃的

解決的方法
  1. 先把映象檔掛起來,再用 imgburn 把映象檔的所有檔案,再重新 build 一個標準 iso 檔
  2. 選定檔案按 build 後,imgburn 會計算出分層點,你只要選一個(通常也只有一個)分層點,按 ok 就可以了
  3. imgburn 會產生 .mds 及 .iso 檔,下次要燒時,就直接拿這一個 .mds 來燒;因為有包含正確的分層點資訊,imgburn 不會再出現警告訊息,並可以正常的將映象檔燒成功

2009/07/29

google chrome tips

參考 Chrome設定最小字體大小 設定

部份內容:
Vista/Win7在
"C:\Users\使用者帳號\AppData\Local\Google\Chrome\User Data\Default\Preferences"
也就是
"%LOCALAPPDATA%\Google\Chrome\User Data\Default\Preferences"

XP在
"C:\Documents and Settings\使用者帳號\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences"
也就是
"%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences"

記得先關掉Chrome,再以文字編輯器打開Preferences,尋找webkit的關鍵字,重點是以下紅字這兩行
"webkit": {
"webprefs": {
"default_fixed_font_size": 16,
"default_font_size": 16,
"fixed_font_family": "\u7D30\u660E\u9AD4",
"minimum_font_size": 14,
"minimum_logical_font_siz": 14,
"sansserif_font_family": "\u65B0\u7D30\u660E\u9AD4",
"serif_font_family": "\u65B0\u7D30\u660E\u9AD4"
}
google chrome 字型太醜,沒有啟動平滑化:
參考 todau farm: Chromium/Chrome 字型問題解決
部份內容:
所以咧,就在啟動 Chrome/Chromium 時加上參數 --no-sandbox 就行

2009/07/02

opensuse: 二三事

1 棄用慢的要死的 yast,改用 zypper 作為套件管理程式
http://opensuse-community.org/Repositories/10.2
第一步就是移掉 ZMD ,只知道是企業版才用的到的工具,社群版用不到

2. 查了一下 zypper 的常見用法
http://en.opensuse.org/Zypper/Usage/10.2#Deleting_Services

2009/06/16

網路設備監控 - part II

以 mrtg 擷取 snmp 資訊,用來監控網路設備

由於我的系統是 centOS 5.3,所以 mrtg / apache / gd 等所需套件都裝齊了
所以我就直接作 config 的部份

這個部份我了把它寫成 script

script 正常執行的條件:
mrtg config location : /etc/mrtg
mrtg html location : /var/www/mrtg
由於需要修改 /etc, /var, 所以必需是 root

需要給兩個參數,
一個是檔案名稱: 用來作為設備名稱及所產生的 html 檔案名稱
一個是 ip 位址: 設備所使用的 ip 位址
#!/bin/bash

if [ `whoami` == "root" ]; then
if [ -z $1 ];then
echo "syntax:
$0 "
exit
fi
FILENM=$1
IPADDR=$2

cfgmaker public@$IPADDR --global "WorkDir: /var/www/mrtg" --output /etc/mrtg/$FILENM.cfg
indexmaker --output /var/www/mrtg/$FILENM.html /etc/mrtg/$FILENM.cfg

else
echo "You must log / su as root! "
fi

產生設定檔及 html 檔後,還要到 crontab 中把偵測的參數寫進去,語法如下
*/5 * * * * /usr/bin/mrtg /etc/mrtg/xxx.cfg