2008年12月17日 星期三

使用 dmidecode - DMI table decoder 來查看硬體資訊

GNU/Linux 系統上面有個很方便的套件可以拿來查詢目前主機上的一些硬體的資訊
像是 CPU 就可以使用 sudo dmidecode --type processor
就會得到以下的結果
Handle 0x0004, DMI type 4, 35 bytes
Processor Information
    Socket Designation: Socket 775
    Type: Central Processor
    Family: Pentium D
    Manufacturer: Intel
    ID: 65 0F 00 00 FF FB EB BF
    Signature: Type 0, Family 15, Model 6, Stepping 5
    Flags:
        FPU (Floating-point unit on-chip)
        VME (Virtual mode extension)
        DE (Debugging extension)
        PSE (Page size extension)
        TSC (Time stamp counter)
        MSR (Model specific registers)
        PAE (Physical address extension)
        MCE (Machine check exception)
        CX8 (CMPXCHG8 instruction supported)
        APIC (On-chip APIC hardware supported)
        SEP (Fast system call)
        MTRR (Memory type range registers)
        PGE (Page global enable)
        MCA (Machine check architecture)
        CMOV (Conditional move instruction supported)
        PAT (Page attribute table)
        PSE-36 (36-bit page size extension)
        CLFSH (CLFLUSH instruction supported)
        DS (Debug store)
        ACPI (ACPI supported)
        MMX (MMX technology supported)
        FXSR (Fast floating-point save and restore)
        SSE (Streaming SIMD extensions)
        SSE2 (Streaming SIMD extensions 2)
        SS (Self-snoop)
        HTT (Hyper-threading technology)
        TM (Thermal monitor supported)
        PBE (Pending break enabled)
    Version: Intel(R) Pentium(R) D
    Voltage: 1.2 V
    External Clock: 200 MHz
    Max Speed: 3800 MHz
    Current Speed: 3000 MHz
    Status: Populated, Enabled
    Upgrade: ZIF Socket
    L1 Cache Handle: 0x0008
    L2 Cache Handle: 0x0009
    L3 Cache Handle: Not Provided
    Serial Number: 
    Asset Tag: 
    Part Number: 
使用的關鍵字有 bios, system, baseboard, chassis, processor, memory, cache, connector, slot
當然還有細微的使用方式像是想要查詢現在電腦主機上面插著的記憶體資訊就可以使用 sudo dmidecode --type 17
Handle 0x001A, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0019
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 512 MB
    Form Factor: DIMM
    Set: None
    Locator: A0
    Bank Locator: Bank0/1
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: None
    Serial Number: None
    Asset Tag: None
    Part Number: None

Handle 0x001B, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0019
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 512 MB
    Form Factor: DIMM
    Set: None
    Locator: A1
    Bank Locator: Bank2/3
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: None
    Serial Number: None
    Asset Tag: None
    Part Number: None
詳細的使用說明就請使用 man dmidecode 來看囉~

2008年11月23日 星期日

BetaRadio v0.1.2 Ubuntu Linux i386 package for Intrepid Ibex

剛剛包出來的想要使用的朋友可以到 http://code.google.com/p/betaradio/downloads/list 下載使用
或是直接執行
wget http://betaradio.googlecode.com/files/betaradio_0.1.2-1intrepid1_i386.deb
sudo dpkg -i betaradio_0.1.2-1intrepid1_i386.deb

BetaRadio v0.1.2 Ubuntu Linux i386 package for Hardy Heron

剛剛包出來的想要使用的朋友可以到 http://code.google.com/p/betaradio/downloads/list 下載使用
或是直接執行
wget http://betaradio.googlecode.com/files/betaradio_0.1.2-1hardy1_i386.deb
sudo dpkg -i betaradio_0.1.2-1hardy1_i386.deb

2008年11月20日 星期四

使用 USB stick 來安裝 Debian GNU/Linux 5.0 (Lenny) rc1

參考安裝文件
首先去 FTP 下載 boot.img.gz
在隨便一個 Linux 系統上執行 (請小心確認 USB stick 的位置是否在 /dev/sda)

$ sudo su -c "zcat boot.img.gz > /dev/sda"
然後再把 debian-testing-i386-netinst.iso 複製到 USB stick 上就行了
接下來的動作就是使用 USB stick 開機
(當然使用 USB stick 開機要有主機板的硬體支援才行)
接下去就跟一般使用 debian-testing-i386-netinst.iso 所燒成的光碟來安裝的過程一樣

另外就是在 kernel cmdline (Grub畫面中按下 Tab) 裡面加上 desktop=lxde
這樣就可以直接把整個系統裝成 lxde 的桌面環境了~ ^o^

2008年10月31日 星期五

Ubuntu 8.10 DVD ISO 下載

Ubuntu 8.10 釋出囉~ :D
可是我想要下載的是 DVD 的 ISO 耶~ @_@a
用 Google 找了一下就找到了~ :D
http://torrent.ubuntu.com/releases/intrepid/release/dvd/
想要下載 Ubuntu 8.10 DVD 的人應該都來用這個 BT 種子才對~ ;)

2008年10月20日 星期一

Vim :set cursorline :set cursorcolumn



剛剛增加了兩個快速鍵到 ~/.vimrc 當中
nmap <S-F11> :set cursorline!<BAR>set nocursorline?<CR>
nmap <S-F12> :set cursorcolumn!<BAR>set nocursorcolumn?<CR>
效果就有如上圖囉~ 有水平跟垂直的標線~ ^o^

Flash 的方塊字問題

在網路上面常常看到有人提供解決 Ubuntu 8.04.1 上面 Flash 中文方塊字的問題
方法都是把 /etc/fonts/conf.d/49-sansserif.conf 這個檔案給刪除掉
反正 /etc/fonts/conf.d/49-sansserif.conf 本身只是一個 soft link
刪除掉也不會怎麼樣大不了再從 /etc/fonts/conf.avail/49-sansserif.conf 弄回來就好了
可是這樣的解決方法雖然可以看到 Flash 上面的中文字了
但是在 Pidgin 上面的中文字反而就變形了
於是我提供另一個解決方法是
把 /etc/fonts/conf.d/49-sansserif.conf 當中的
<edit name="family" mode="append_last">
    <string>sans-serif</string>
</edit>
改成
<edit name="family" mode="append_last">
    <string>AR PL UMing TW</string>
</edit>
讓系統將 sans-serif/serif/monospace 以外的字型全部預設成 AR PL UMing TW
而不是原本的 sans-serif 這樣就暫時解決掉這個問題了
目前還沒有看到什麼 side effect