2010年4月29日 星期四

MD300 in ubuntu 9.1

Install the MD300 Sony 3G card in the ubuntu 9.1

vi /etc/udev/rules.d/50-md300config.rules
then copy follow lines
ACTION!="add", GOTO="3G_End"

#SUBSYSTEMS=="usb", ATTRS{idProduct}=="d0cf", ATTRS{idVendor}=="0fce", NAME="%k", RUN+="/bin/sh -c 'echo 3 > /sys/%p/bConfigurationValue'"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="d0cf", ATTRS{idVendor}=="0fce", RUN+="/bin/sh -c 'echo 2 > /sys/%p/bConfigurationValue'"
#SUBSYSTEMS=="usb", ATTRS{idProduct}=="d0cf", ATTRS{idVendor}=="0fce", RUN+="/usr/sbin/usb_modeswitch --default-vendor 0x0fce --default-product 0xd0cf"
LABEL="3G_End"

2010年4月27日 星期二

Install Openoffice 3.2 in Ubuntu 9.1

This tutorial will explain how to install latest version of openoffice in ubuntu

You can check what is new in openoffice 3.2 from here

First go to the OpenOffice website and download the Linux .deb file (On your desktop)

1 - Once you have done that, extract the .deb file,

OOo_3.2.0_LinuxIntel_install_en-US_deb.tar.gz

Run the following command from terminal or just right click select extract

tar xzvf OOo_3.2.0_LinuxIntel_install_en-US_deb.tar.gz

Then you’ll see a file called OOO320_m12_native_packed-1_en-US.9483

2 - You can remove the existing version of OpenOffice if you wish with this command:

sudo apt-get remove openoffice*.*

3 - Copy and paste OOO320_m12_native_packed-1_en-US.9483 onto the desktop then open Terminal and paste this command:

sudo dpkg -i ~/Desktop/OOO320_m12_native_packed-1_en-US.9483/DEBS/*.deb

4 - Then paste this command:

sudo dpkg -i ~/Desktop/OOO320_m12_native_packed-1_en-US.9483/DEBS/desktop-integration/openoffice.org3.2-debian-menus_3.2-9472_all.deb

Once you’ve done that you’ll find OpenOffice 3.2 in Office.

2010年4月24日 星期六

2010年4月20日 星期二

Iphone with ubuntu

#deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
#deb-src http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 951DC1E2
#sudo apt-get update
Install the blueman

Wireless peer to peer (即 Ad-hoc) USB, 和Bluetooth 都是有機會用來讓 iPhone
上網的途徑。

PC 端 Ubuntu 的設定
1 先確定 Ubuntu 能透過 LAN 網路線上網,這應該都沒問題。
2 再確定 Ubuntu 能透過 Wireless 上網,這是為了確定你的 Wireless 在 PC 上是好的。
3 我的 Ubuntu 是 9.04 版。 系統>偏好設定>網路連線 ,這裡可以看到好幾個 tab 分別為 [有線][無線網路][行動寬頻][VPN][DSL] 點選
[無線網路]
4 [無線網路] tab 下列出了你用過的 Wireless 連線 (所以也可能是空的)。> 加入
5 連線名稱 。。。 取個名字,就叫 "iPhone ad-hoc" 吧!
6 [無線網路] tab 下, [SSID] 也叫 "iPhone ad-hoc"。[模式] 一定要選 ad-hoc, 其他 [BSSID][MAC 位址] 都留白 ==> 這就是我不懂的地方了,抄我
iPhone 的 Wireless MAC 地址過來填上之後會連不上,我搞不定,只好放棄。MTU 保持為 automatic。
7 [Wireless Security] tab 下,[安全] 只能設為 "無",其他設定原本以為很簡單,結果我都搞不定。會致使 iPhone
連不上來,連上來了也上不了網。這裡也要請教高明指點。
8 [IPv4 設定] tab 下,[Method] 一定要選 "Shared to other computers"。

這樣就可以了,對 iPhone 而言,它會看到一台名為 "iPhone ad-hoc" 的
Wi-fi AP (access point 上網點), 無須密碼,一選就上。故我不再贅述 iPhone 的設定。因為與一般 Wifi
上網一樣。

USB 上網
$ sudo add-apt-repository ppa:pmcenery/ppa
$ sudo apt-get update
$ sudo apt-get install gvfs ipheth-utils

AIX Installation

AIX Installation Tips
Change the boot from the command line
List the boot order
# bootlist -m normal -o
Change the boot order
# bootlist -m normal cd0 hdisk1
See the disk information
# lscfg -vl hdisk1
See the vg information
# lsvg -l rootvg
See the Error on AIX
# errpt
Clear all error event
# errclear 0

iPhone 與多台電腦 (多個 iTunes) 同步的方法

~~~~~iPhone 與多台電腦 (多個 iTunes) 同步的方法~~~~~

1. 使用過程1:請用原本就已經和 iPhone 同步過的第一台電
腦。

2. 務必將 iTunes 程式結束。

3. 找出 iTunes Music Library.xml 這個檔案。
通常在 C:\Documents and Settings目錄下的
(使用者名稱)\My Do cuments\My MusicMy Music
目錄下的 iTunes 裡面。

4. 開啟這個 iTunes Music Library.xml,找到一個叫做
Library Persistent ID 的標籤。下面會帶一個字串,把字串複製
出來(簡稱 SourceLPID),並且丟到第二台機器上。

5. 使用過程2:第二台準備和 iPhone 同步的電腦。

6. 先將 SourceLPID 先找個文字編輯器存放起來。

7. 請找出電腦存放 iTunes Library 的目錄。

8. 這邊需要動到兩個檔案喔,一個是 iTunes Music Library.xml,
另 一個是 iTunes Library。

9. 將 iTunes Music Library.xml 開啟,一樣找到 LPID,拷貝下來
(簡稱 TargetLPID),放在剛剛存放 SourceLPID 的文字編輯器
中。

10. 將 SourceLPID 貼上 TargetLPID 的地方,存檔。

11. 如果您用的是 Windows ,下載可以編輯 Hex 格式的文字編
輯器即可。

12. 利用 文字編輯器 開啟 iTunes Library,開啟"找尋/取代"
功能。

13. 找尋的欄位,請放入拷貝下來的TargetLPID。

14. 取代的欄位,請放入上面提的SourceLPID。

15. 完成取代後,存檔。

16. 接下來開啟第二台電腦上的 iTunes,接上 iPhone,系統將不
會再提醒您,這台 iPhone 已和其他的 iTunes 同步了喔!!

請把原檔先存起來喔!!以免自己發生錯誤~~~~