2010年10月8日 星期五

mysql dump 備份及復原

資料庫的備份
mysqldump DBname -uUserName -p --opt > FileName.sql
加入 --opt 的話,在回存資料庫時,若資料表己存在的話,會先將資料表刪除後再建立。

資料庫的回存
mysql DBname -uUserName -p < FileName.sql

2010年10月5日 星期二

ESXi 的序號啟用

VMware ESXi 的系統是免費的,可以在線上取得序號(license key)。
當系統安裝完成後,要在系統輸入序號,動作如下:
1.點選到 Home / Inventory
2.在 主機(IP) 這裡的 Configuration 標籤頁,可以找到 Licensed Features,點選它
3.在 右上方 可以看到 Edit,按下去就會顯示 Assign License
4.在 下方 的 Assign a new license key to this host 就可以輸入取得的序號了
這樣就完成整個 ESXi 的安裝啟用動作囉!

2010年9月3日 星期五

ubuntu 下安裝 x-lite sip softphone

原文出處: http://www.hackourlives.com/ubuntu-10-04-lucid-lynx-libstdc-so-5/

Install libstdc++.so.5 on Ubuntu 10.04 or 9.10

If you try installing Intel Fortran Compiler on Ubuntu 10.04 Lucid Lynx or Karmic Koala, it is going to throw the error:
error while loading shared libraries: libstdc++.so.5

The original libstdc++5 package is no longer available with the Ubuntu 9.10 repos. So for 32 bit system you would have to get it from Jaunty Repository.

Install it and you are good to go if you are using the 32 bit OS.

For 64 bit it is a bit complicated, first install libstdc++5 64bit and then do the following:


wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb


dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs


sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/


cd /usr/lib32


sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5



This should get you going.

============ 以下為另一篇參考內容。

原文出處: http://ubuntuforums.org/showpost.php?s=ca5aa9c275640955c3bcf7034b9960b1&p=8852353&postcount=8


sudo wget http://counterpath.s3.amazonaws.com/...Install.tar.gz

tar -zxvf X-Lite_Install.tar.gz

cd xten-xlite/

chmod +x xtensoftphone

./xtensoftphone


In the X-Lite 2.0 -->System Settings-->Sip Proxy

Enabled : Yes
Display Name: Any Name
Username : [Your Voip Username]
Authorisation User: [Your Voip Username]
Password: [Your Voip Password]
Domain/Realm: sip.[VOIPCOMPANY].com
(Please Refer to your Voip Provider)
SIP Proxy: sip.[VOIPCOMPANY].com
Please Refer to your Voip Provider)
Outbound Proxy: nothing
Use Outbound Proxy: Default
Register: Default
Voicemail SIP URL: nothing
Forword SIP URL: nothing


Enjoy using X-Lite...

Simple

============ 以下為另一篇參考內容。

原文出處: http://jdunn.posterous.com/how-to-run-x-lite-on-64-bit-ubuntu

How to Run X-Lite on 64-bit Ubuntu Linux

The available Linux softphones all leave something to be desired. I gave Linphone a chance, but I hate being forced to operate its dialpad via my mouse (and what's up with not playing a DTMF tone when I do manage to click one of those tiny buttons, seriously?). My buddy Aleks reminded me that X-Lite is available for Linux. Sure enough, it is—and CounterPath provides it as a dynamically-linked, 32-bit binary. Yay! Turns out that with a little work, it will run on 64-bit Linux. Here's what to do:

1. Download and extract X-Lite.
2. sudo apt-get install ia32-libs alsa-oss
3. sudo gpasswd -a audio
4. Attempt to run X-Lite. If you get an error telling you that libstdc++.so.5 cannot be found, follow the instructions here.
5. Run X-Lite like this: padsp path/to/xten-xlite/xtensoftphone. Now X-Lite will play nice with PulseAudio.

This assumes that you're running Ubuntu. Should work for Debian as well, though the procedure for step 4 will vary slightly. Google can help you there.

Update (2010-04-14): I run the headset that I use for telephony through a USB-based second sound card, and I've found that the "padsp" utility has no concept of multiple sound cards. I'm thus unable to use X-Lite with my headset, and am using Linphone again (ugh!). Leaving this post up in hopes that it's useful to someone.

2010年8月9日 星期一

在 ubuntu 64位元版本裡執行 packet tracer

在 ubuntu 64位元版本裡執行 packet tracer

$ tar xfzv PacketTracer5x_generic.tar.gz
$ cd PacketTracer5
$ sudo ./install

執行時,使用
$ packettracer
就可以囉!

2010年7月12日 星期一

MS Office 2010 .... 唉.....

MS Office 2010 .... 唉.....

以前寫書, 用 office 2000 編個四百多頁, 都沒什麼事.... 後來用 2003, 寫到四五十頁, 就當.... office 2007我沒用, 直接跳過它, 這陣子用了 office 2010, 本來還覺得 2010 似乎好多了.... 沒想到, 才十幾頁就又當了....
當了呢, 還可以復原, 問題就在於, 它偏偏又復原的不完全.... 還要去找, 那裡不見, 那裡還在.... 不見的資料, 不是剛剛新增的內容, 是整份文件的文字方塊裡的內容都不見了... 真是令人昏倒~~

我要換掉 ms office .....
我真的要換掉 ms office .....

2010年6月19日 星期六

下載 Microsoft Visual Studio 2010 Express

下載 Microsoft Visual Studio 2010 Express
點選 http://www.microsoft.com/express/Downloads/#2010-All 可以直接看到下載 iso 的連結, 再選擇繁體中文即可.

或者從 http://www.microsoft.com/express/Downloads/ 下載其它版本.

官方網站 http://www.microsoft.com/express/

微軟輸入法2010

微軟輸入法2010, 包含注音 倉頡 速成 2010版.
http://www.microsoft.com/downloads/details.aspx?FamilyID=60984ecd-9575-411a-bd38-2294f17c4131&displaylang=zh-tw