這是提供 solutioin 的網址
http://www.ubuntugeek.com/install-pidgin-2-6-0-in-ubuntu.html
Method:
1.Download all package here.
http://www.getdeb.net/app/pidgin
2.After download all package type follow command in terminal
sudo dpkg -i packagename
3.edit /etc/apt/source.list
sudo gedit /etc/apt/source.list or sudo vi /etc/apt/source.list
4. add follow lines in file
for junty version (Ubuntu 9.04)
deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main
for intrepid version (Ubuntu 8.10)
deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu intrepid main
5.add GPG key using the following command
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8
6.update the source list
udo apt-get update
7.Install pidgin using following command
sudo apt-get install pidgin
2010年5月26日 星期三
2010年5月4日 星期二
在 Linux 下安裝OpenOffice

Step 1.到官方下載 .deb 檔案:
http://download.openoffice.org/other.html
選擇:Download Full Istallation Sets
再從中選擇適合的版本...我選的是「正體中文3.2.0 Linux 32-bit DEB」...
Step 2.移除OpenOffice 2.4版本:
sudo apt-get remove --purge openoffice.org-common
Step 3.進入解壓縮後裡面的 DEBS 資料夾:
sudo dpkg -i *.deb
dpkg → 操作deb套件包的指令
-i → dpkg的參數,代表安裝
ps.裡面有 "DEBS" "licenses" "readmes" "update"四個資料夾
DEBS很多.deb檔...請進入該資料夾執行上面的指令
Step 4.安裝選單:
cd desktop-integration
sudo dpkg -i *.deb
Step 5. 完成!
2010年4月27日 星期二
NS2中新增Agent

撰寫ns2模擬器的時候,常會需要自行撰寫 agent 來驗證自己的系統是否能達成預期的功效
但是要在ns2中使用本身沒有提供的 agent 是需要在ns2中作些修改才能使用的
因此第一步就是在ns2中新增一個 agent.
Step 1.
把自訂的 agent 的資料夾放入「ns2 資料夾」中,名稱自訂(ZoneAgent)
「ns2資料夾」就等於下面這一串
ex. /home/program/ns-allinone-2.34/ns-2.34
↑
就放在這個資料夾中
Step 2.
修改「ns2 資料夾」中的 Makefile.in
於 OBJ_CC= 該處加上 ZoneAgent/ZoneAgent.o
Step 3.
修改「ns2 資料夾」中 /common/packet.h 加上新的封包型態
ns2.32 之前:
在 enum packet_t 加上 PT_HybridZone
ps.PT_NTYPE 需放置最後面
class p_info 的 public:p_info(){}內加上
name_[PT_HybridZone]="PT_HybridZone";
ps.PT_NTYPE 需放置最後面
ns2.32 之後:
static packet_t PT_NTYPE 前加上
static const packet_t PT_HybridZone=??
??是一個尚未用過得數字
但是請注意,這組數字一定要比 PT_NTYPE 的數字還小!
在class p_info 的 public:static void initName(){}內
name_[PT_NTYPE]= “undefined”; 前加上
name_[PT_HybridZone]=”ZoneAgent”;
Step 4.
開始編譯
case 1. (有改 Makefile.in 或 xx.h 時)
自「ns2 資料夾」中執行 ↓
./configure; make clean; make depend; make
case 2 (只有改 source code 亦即 xx.cc 時)
在「ns2 資料夾」中執行 make
以上資料參考至: sokoyo's 隨手記
但是要在ns2中使用本身沒有提供的 agent 是需要在ns2中作些修改才能使用的
因此第一步就是在ns2中新增一個 agent.
Step 1.
把自訂的 agent 的資料夾放入「ns2 資料夾」中,名稱自訂(ZoneAgent)
「ns2資料夾」就等於下面這一串
ex. /home/program/ns-allinone-2.34/ns-2.34
↑
就放在這個資料夾中
Step 2.
修改「ns2 資料夾」中的 Makefile.in
於 OBJ_CC= 該處加上 ZoneAgent/ZoneAgent.o
Step 3.
修改「ns2 資料夾」中 /common/packet.h 加上新的封包型態
ns2.32 之前:
在 enum packet_t 加上 PT_HybridZone
ps.PT_NTYPE 需放置最後面
class p_info 的 public:p_info(){}內加上
name_[PT_HybridZone]="PT_HybridZone";
ps.PT_NTYPE 需放置最後面
ns2.32 之後:
static packet_t PT_NTYPE 前加上
static const packet_t PT_HybridZone=??
??是一個尚未用過得數字
但是請注意,這組數字一定要比 PT_NTYPE 的數字還小!
在class p_info 的 public:static void initName(){}內
name_[PT_NTYPE]= “undefined”; 前加上
name_[PT_HybridZone]=”ZoneAgent”;
Step 4.
開始編譯
case 1. (有改 Makefile.in 或 xx.h 時)
自「ns2 資料夾」中執行 ↓
./configure; make clean; make depend; make
case 2 (只有改 source code 亦即 xx.cc 時)
在「ns2 資料夾」中執行 make
以上資料參考至: sokoyo's 隨手記
2009年7月3日 星期五
FireFox3.0x升級至FireFox3.5

在Terminal下運行:
$ sudo apt-get install firefox-3.5
$ sudo apt-get install firefox-3.5-gnome-support
最後運行:
$ /usr/bin/firefox-3.5
但是這樣是下載到英文版的所以要再去下載中文
中文化:
至http://www.mozilla.com/en-US/firefox/all-beta.html 下載正體中文版,解壓後,把firefox/chrome/中的
zh-TW.jar與zh-TW.manifest
拷貝到/usr/lib/firefox-3.5/chrome中,重新啟動FireFox3.5
恭喜完成
ps.要搬移複數個檔案可以用root身份開啟nautilus
只要運行:
sudo nautilus
即可~~~
-----------------另外一種解法-------------------------------------
1 sudo gedit /etc/apt/sources.list
2 sudo apt-get update
3 deb http://ppa.launchpad.net/fta/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/fta/ppa/ubuntu jaunty main
4 gpg --keyserver keyserver.ubuntu.com --recv 632D16BB0C713DA6
5 gpg --export --armor 632D16BB0C713DA6 | sudo apt-key add -
6 sudo apt-get update
7 sudo apt-get install firefox-3.5
8 sudo apt-get autoremove
完成,但Firefox3.0.13仍然保留 >"<
以上!祝大家Ununtu愉快~!
$ sudo apt-get install firefox-3.5
$ sudo apt-get install firefox-3.5-gnome-support
最後運行:
$ /usr/bin/firefox-3.5
但是這樣是下載到英文版的所以要再去下載中文
中文化:
至http://www.mozilla.com/en-US/firefox/all-beta.html 下載正體中文版,解壓後,把firefox/chrome/中的
zh-TW.jar與zh-TW.manifest
拷貝到/usr/lib/firefox-3.5/chrome中,重新啟動FireFox3.5
恭喜完成
ps.要搬移複數個檔案可以用root身份開啟nautilus
只要運行:
sudo nautilus
即可~~~
-----------------另外一種解法-------------------------------------
1 sudo gedit /etc/apt/sources.list
2 sudo apt-get update
3 deb http://ppa.launchpad.net/fta/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/fta/ppa/ubuntu jaunty main
4 gpg --keyserver keyserver.ubuntu.com --recv 632D16BB0C713DA6
5 gpg --export --armor 632D16BB0C713DA6 | sudo apt-key add -
6 sudo apt-get update
7 sudo apt-get install firefox-3.5
8 sudo apt-get autoremove
完成,但Firefox3.0.13仍然保留 >"<
以上!祝大家Ununtu愉快~!
2009年4月1日 星期三
NS2之出師不利
就在剛剛....發生了件蠢事 orz
在Ubuntu上灌好NS2正想拿來好好調戲一番沒想到是我被它戲弄了 == +
網路上很多教學都說:在終端機下鍵入ns看看提示符號有沒有變成百分比就知道有沒有成功了
所以我就很傻很天真的認為執行任何NS2相關檔案就是在這個模式下執行....
於是乎...我弄了個測試檔案exe1.tcl放到NS2的資料夾之中,接著馬上鍵入"ns"進入ns2的模式...
輸入ns exe1.tcl
馬上出現錯誤訊息: error when calling class OldSim: exe1.tcl
囧rz 這什麼鬼!說好得結果呢?
我不死心...想說 : 是不是搬錯地方了...於是把檔案就搬進ns2中的ns-2.33之中
為何選那裡?因為那裡有ns執行檔....我當時想:會不會那就是原因...
很可惜...我又錯了
就這樣一試再試,屢試不爽的情況下 我終於想到應該要拜一下Google大神保平安了...
很信運...一個來自對岸的網友也有過同樣的狀況
解決的方法很簡單:直接在終端機模式下鍵入:ns exe1.tcl
很好....總算給我我想要得結果了 orz
前前後後花了一個小時....有時候真的覺得我蠢成這樣怎麼活到現在的 orz
大夥可別步入我的後塵丫...
訂閱:
文章 (Atom)