2009/11/09

桃李河畔

v 這是戶外座位,大多位於涼爽的樹蔭下

DSC_1982


聚奎居

位於烏日的聚奎居
這邊有完整介紹,至於我... 請恕我偷懶 (其實是寫的沒有人家好) :P
http://blog.yam.com/feelfull/article/11128037

V 我們是從便行巷亂繞,一路繞進來的,所以~別問我要怎麼到這裡 ... = ="
DSC_1965

昇級到 9.10

這次有記得備份 /etc/fstab, /home/user

所以問題還算少

ubuntu tweak 全部要手動重新設定 ... 0rz
更換桌布:sudo aptitude install wallpaper-tray,安裝後重新登入, 在工作列那邊,選取加入面版
螢保:將圖片資料匣用 ubuntu tweak 連結至 wallpapers 資料匣即可;設定完記得點選 [重新設定] ,才會把設定存檔

lazyscript 在 9.10 可以用,只有 ms 的字型會有問題,爬文後,看到是 mirror 的路徑造成下載時會找不到東西
基本上這個patch只針對已經嘗試安裝ttf-mscorefonts-installer,
但出現網路連線錯誤訊息的情況!

使用方式:
1. 下載patch:
http://0rz.tw/d2HsC

2. step-by-step:
http://sites.google.com/site/listjiason/ttf-mscorefonts-installer

錯誤發生的原因:
應該是因為在台灣,
sf.net有時候會自動把mirror轉到ncu去,
但是ncu對ms corefonts的mirror好像有問題,
目前把mirror換成nchc就可以解決這個問題了.



三天使用心得:
  • plurk 比 9.04 正常,不需調整任何選項
  • gui 的網路設定仍然是廢物,幸好修改 /etc/networks/interface 的老招還是可以用
  • 既然 gui 的網路設定是廢物,pppoeconf 的老招當然得繼續用了
  • 9.10 的偵測 hdd s.m.a.r.t. 告訴我一個驚人的事實:我放大量寶物的硬碟有大量壞軌... 0rz
  • 介面有比較漂亮 ... 一點點,圖示的變化比較多
  • juploadr 按了 upload 以後沒反應,重開機後仍然一樣
    按了 upload 沒反應,原來要再按 enter ... 0rz ...
    我裝了 sun-jdk
    移了 open-jdk

    [底下是 jUploadr FAQ 建議]
    gcj10
    gcj9-0

    最後一怒之下按了 [enter] 才發現這個驚人的事實!

  • ibus 找不到行列,所以換回 gcin
  • smplayer 看到一半,仍然會切到螢幕保護程式
  • 字有種銳利過頭的感覺
    source: http://yblog.org/archive/print.php?id=10696

    覺得Ubuntu 9.10的字體看起來怪?

    系統字型我是用文泉驛正黑體,如果你的Ubuntu 9.10看起來會怪,是因為9.10在10~13px大小設置的是點陣字體,要去調整它。

    你使用終端機,執行這兩行指令即可

    cd /etc/fonts/conf.d

    sudo ln -sf ../conf.avail/66-wqy-zenhei-sharp-no13px.conf 66-wqy-zenhei-sharp.conf

  • wine 的字也是太細、太銳利了

    "FontSmoothing"="2"
    "FontSmoothingGamma"=dword:00000578
    "FontSmoothingOrientation"=dword:00000001
    "FontSmoothingType"=dword:00000002
  • /etc/cron.hourly 裡面的 script 不會執行
    原因似乎是 . 的關係
    "Although the directories contain periods in their names, run-parts will not accept a file name containing one and will fail silently when encountering them (bug #38022)"

    -- from the Cron Howto at https://help.ubuntu.com/community/CronHowto.

    Just call it "backup", not "backup.sh".
    我把 /etc/cron.hourly/mvs.sh -> /etc/cron.hourly/mvs 就可以正常執行了

    不過我一直是這樣做的啊 .... ubuntu 9.10 是第一個不接受 . 的系統

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