2012年1月31日 星期二

[Linux][Ubuntu][Expect]

紀錄我在使用 Exepct 時的種種。

Expect 的位置,/usr/bin/expect

輸入 control+c --> send \003

2012年1月30日 星期一

[Linux][Ubuntu][Japanese content PDF with evince]

雖然知道 evince 沒有對全部的編碼進行預設安裝,不過沒想到連日文也沒有。

看了下錯誤訊息是 "Error: Missing language pack for 'Adobe-Japan1' mapping"

好吧,看來還是跟 Adobe 有些關係。

沒關係,就裝吧。

sudo aptget install poppler-data

關於 poppler-data 的描述是,"Encoding data for the poppler PDF rendering library"。

裝了之後就可以正常瀏覽日文內容的 PDF 文件了。

2012年1月21日 星期六

[Linux][Ubuntu][改 eth 編號]

會吃到 ethX (這邊的 X 泛指 eth 的數字) 設定的,有兩個地方。

/etc/network/interfaces -- 這個檔案本來就是在做 IP 設定時會修改到的檔案。

/etc/udev/rules.d/70-presistent-net.rules -- 這個檔案是紀錄網卡的種種資訊。

像是識別的名稱 (eth0, eth1)、MAC Address 等。

因為之前有多拿幾張網卡進行測試,所以 70-presistent-net.rules 記了許多張網卡的資料。

所以在 ifconfig 理會出現 eth0 與 eth3 的狀況。

因此我把 70-presistent-net.rules 這個檔案刪除了之後重開機,讓系統重新建立識別我插在上邊的兩張網卡。

結果 ifconfig 就得到了 eth0 語 eth1 的結果。

事實上也可以直接進行檔案內容的修改,把 eth3 改成 eth1 之類的。

2012年1月14日 星期六

[Linux][Ubuntu][COM1 via Minicom]

$sudo apt-get install minicom

$minicom -s

Choose "Serial port setup"

Change the value of "Serial Device" to "/dev/ttyS0" in order to use COM1.

Set "Bps/Par/Bits" to what you need.

"Hardware Flow Control"...whatever, up to the user.

Then choose "Save setup as dfl", or you have to configure minicom every time you use.

To use minicom, just type as below.

$minicom

After pressing enter key for twice, it will display the login of the hardware such as switch or others.

2012年1月5日 星期四

[Linux][Streaming Related]

NSVTools, NSV Coder GUI

SHOUTcast DNAS

Darwin Streaming Server

QuickTime Streaming Server