Home Contact Sitemap

Team Programming Dragon.編程龍

Programming Art、C++、Python、Django、LinuxDev、HCI、Graphics、Web2.0。讓我們成為編程界的朝田龍太郎吧。

Beauty is Our Business

A Birthday Salute to Computer Scientist Edsger W. Dijkstra.

Ubuntu 下 rmvb 沒聲音

有時候播 rmvb 會沒聲音,不需要灌 plugin,只要調一下參數就可以。編輯 ~/.xine/catalog.cache,找到 [/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so] 這段,將 decoder_priority 調高為 10 即可:

[/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so]
size=11300
mtime=1171041406
type=131
api=15
id=realadec
version=10104
supported_types=52494336 52559872 52756480
decoder_priority=10

參考資料:
argh no sound in rmvb @ Ubuntu Forums

Tags: , , ,

. 11 Oct 08 | Ubuntu | Comments (0)

Ubuntu 無線網路設定

把 Ubuntu 灌好,正常來講網卡都可以抓得到,訊號應該也沒問題。只要在 ESSID 的部分指定好你要的 AP 就可以。

若不經 WEP 加密的 AP 可以說是灌好馬上就可以用;經過加密的卻稍微麻煩一點,之前用內建套件輸入 encrypted key 不知為何並不能使用,應該是隻 bug。經過爬文之後大約歸納出三個 solution:

  1. sudo gvim /etc/network/interfaces

    編輯形如下式:

    iface eth1 inet dhcp
    wireless-essid tokyomod
    wireless-key s:meoap# 加 "s:" 表 ASCII,不加則為 HEX
     

    經過測試,此法可以使用,不過要 reboot 或 hibernate 重開

  2. $iwconfig ath0 key XXXXX

    尚未測試。

  3. sudo gvim /etc/pcmcia/wireless.opt

    大致上同 1,不過還沒測過。

Tags: , ,

. 21 Sep 08 | Linux, Ubuntu | Comments (0)

Matlab Work with Beryl

Matlab 跟 Beryl 底下工作時會有兩個問題:
1) 只能從 command line 底下叫出來,而不能用 Alt + F2
2) 這比較嚴重…叫出來會一片灰,只有左下角 start 部分很完美…

如果你的 Ubuntu 版本不是 7.04 的話,似乎可以在 start up shell 最前面(#!/bin/bash 的下一行)加兩行環境變數的更動就可以,因為這原則上是 Java 的 bug:

export AWT_TOOLKIT=MToolkit
export MATLAB_JAVA=“/usr/lib/jvm/java-1.5.0-sun/jre/”

也有一說是加第二行就好,不加第一行。

如果是 7.04 的話(等我寫完論文就要來 upgrade 了…真麻煩 = =),就要用別的賤招:把 Beryl 關掉,開 Matlab,在 Matlab 開開的狀況下再把 Beryl 開起來就搞定了… = =

參考連結:
Feisty, MATLAB and Beryl… @ Ubuntu Forums

Tags: , , ,

. 29 Aug 08 | Matlab, Ubuntu | Comments (0)

Matlab R2008a on Ubuntu 7.04

Matlab R2008a 裝在 Ubuntu 7.04(也許其他的 version 也有問題,但我的是這個組合)會有一個小問題。首先你照著官方小手冊這樣下他不會鳥你:

sudo /media/cdrom/install

我的方法是這樣,先切成 root,再用 sh 去接:

sudo su
sh /media/cdrom/install

這樣小 window 就會跑出來了,可是會碰到這樣的 error message:

An error status was returned by the program ‘xsetup’,
the X Window System version of ‘install’. The following
messages were written to standard error:

/media/cdrom/update/install/main.sh: 168: /media/cdrom/update/bin/glnx86/xsetup: Permission denied
Attempt to fix the problem and try again. If X is not available
or ‘xsetup’ cannot be made to work then try the terminal
version of ‘install’ using the command:

install* -t    or    INSTALL* -t

——————————————————————-

Sorry! Setup aborted . . .

我的推測是很可能跟 mount cdrom 之後權限只有唯讀有關係,所以就把 cd 整個 copy 到硬碟,chmod 為 777 再跑一次就可以搞定了。

cp -r /media/cdrom/ /home/jutirain/temp/
chmod -R 777 /home/jutirain/temp/cdrom
sh /home/jutirain/temp/cdrom/install

參考連結:
Help installing MATLAB @ Ubuntu Forums

Tags: ,

. 29 Aug 08 | Ubuntu | Comments (0)