Ubuntu 筆記
Last edited August 16, 2008
More by BobChao »
[SOLVED] Miro crashes on startup - Page 3 - Ubuntu Forums
ubuntuforums.org/showthread.php?t=588617&page=3
Then I discovered that by starting the program like below, I don't get the segfault anymore:

Code:
miro --xine-driver=opengl
Maybe this info will help someone.
 又或者有人建議改安裝 icedtea-java7 來代替 sunjava
Labels: miro, video, multimedia, 多媒體, 影片, java
ie4linux 2.99 安裝失敗

阿駕零零壹 © 學習筆記 | IEs4Linux 2.99.0 安裝問題
twntwn.info/blog/ajer001/archives/2394

    另外,因為作者在 2.99.0 裡面,正體中文的語系部份有寫錯,導致到 Microsoft 下載檔案的時候會失敗!

    這些在 Ubuntu正體中文站 上有人提供了 解法

    # apt-get install wine cabextract

    # wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz

    # tar zxvf ies4linux-latest.tar.gz

    先到這邊停止,作些修正:

    1. 編輯「ies4linux-latest/lib/messages.txt」檔案,將 1x 行的「tw . zhtw TW」改成「zh tw zhtw TW」。

    2. 編輯「ies4linux-latest/lib/functions.sh」,將 9x 行的「pid=(wget ...)」改成「pid=(LANG=C wget ...) 」。

    然後就可以繼續安裝了:

    # cd ies4linux-latest

    # ./ies4linux

    然後就可以用新版的 GUI 來輕鬆安裝了。

Labels: ie4linux, ubuntu
Useful Command

Linux常用指令 - Unix Like - 酷米資訊筆記
www.kume.idv.tw/read-27.html
grep
搜尋檔案中的字串
grep "字串" * 搜尋此層目錄中,包含「字串」的所有檔案,若「字串」中的英文字元大小寫不同,將被視為不同字串
grep -i "字串" * 搜尋此層目錄中,包含「字串」的所有檔案,若「字串」中的英文字元大小寫不同,將被視為相同字串
grep -r "字串" ./ 遞迴搜尋此層目錄包含其下所有子目錄中,包含「字串」的所有檔案,若「字串」中的英文字元大小寫不同,將被視為不同字串
Labels: linux, command, ubuntu
為 commandline 加上顏色

Tsung's Blog | grep、man 顏色設定
plog.longwin.com.tw/my_note-app-setting/2006/07/02...

grep、man 顏色設定

既然 ls 顏色設好了, grep、man 當然也要對一些 keyword 來做做顏色區分囉~

grep 對要找的字做顏色標註, 只要用預設參數即可(--color), 所以在 .bashrc 寫個 alias 就好囉, 如下:

alias grep='grep --color'

man 的話需要在 .bashrc 最後面加以下幾行, 就可以輕鬆的看 man page 囉~

# For colourful man pages (CLUG-Wiki style)
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'

Labels: ubuntu, commandline, color, grep, man
PS 顏色設定

讓提示訊息加上色彩。

編輯 ~/.bashrc,找到

# set a fancy prompt (non-color, unless we know we "want" color)
...
...
esac

將整段 # 起來。

再找到下面這段:

# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

將 #  刪除。

Labels: ubuntu, commandline, color, ls
flashplugin_nonfree 安裝失敗

[SOLVED] Bug #173890 flashplugin-nonfree md5 mispatch support thread - Ubuntu Forums
ubuntuforums.org/showthread.php?t=636397

This is the support thread for Launchpad Bug# 173890. Posts non-developer related should be put in this thread, rather than in the bug comments to prevent Ubuntu developers from being flooded by unnecessary information.

Bug Symptoms

The flashplugin-nonfree package fails to install with the following error (viewable only in detailed or verbose mode):
Code:
md5sum mismatch install_flash_player_9_linux.tar.gz
The Flash plugin is NOT installed.
簡單說就是這個套件原本包的是舊版,但是 Adobe 出了新版本後(改用 gtk 畫選單、支持全螢幕),md5 就不對了,所以安裝一直失敗。
下載該討論串網友包的新版 9.0.115 即可。
Labels: ubuntu flash
於 VirtualBox 使用 USB 裝置

在Ubuntu 7.10中安裝VirtualBox | 西瓜田裡的牛
www.wmfield.idv.tw/496

設定使用usb裝置的權限

1. 在「系統」→「管理」→「使用者及群組」→「管理群組(M):」中新增群組「usbusers」,並將允許使用VitualBox的使用者都勾選起來。
2. 開終端機,下指令:

sudo gedit /etc/udev/rules.d/40-permissions.rules

找:

# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device",                    MODE="0664"

替換成:

# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"

3. 存檔,重新開機。

啟動Ubuntu 7.10的usbfs

Ubuntu 7.10中預設關閉usbfs的支援

找到下列方法:

開終端機,下指令:

sudo gedit /etc/init.d/mountdevsubfs.sh

開啟後,找:

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb

將最後四行的#去掉,如下所示:

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

重新開機,就不會再出現錯誤訊息了,也能夠正常使用usb裝置了。

Labels: ubuntu, virtualbox, usb
轉換 CloneCD 的檔案到 iso

UbuntuHelp:ManageDiscImages/zh - Ubuntu中文
wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:Mana...
ccd2iso myimage.img myimage.iso
 先安裝 ccd2iso
Ubuntu 7.10 啟動畫面消失

Ubuntu 正體中文站 - ubuntu 7.10 開機變慢 [論壇 - Ubuntu安裝問題]
www.ubuntu.org.tw/modules/newbb/viewtopic.php?topi...
開機的 usplash 變黑的 Bug 和螢幕解析度有關,只在用 Desktop CD 安裝的時候會遇到。原因是因為安裝程式會偵測螢幕解析度,但是 usplash 沒辦法用那麼高的解析度顯示,於是就黑掉了

解法,例如我的 Monitor 是 1280x1024,但是 usplash 可能只能用 1024x768 跑,
到 /etc/usplash.conf 中將

xres=1280
yres=1024

改成

xres=1024
yres=768

然後再打

sudo update-initramfs -u -k `uname -r`

更新一下就應該可以看到了。
Labels: ubuntu, startup, usplash
安裝 gcin 輸入法

gcin

  • 開啟終端機
 sudo apt-get update
sudo apt-get install gcin
  • gcin
im-switch -z zh_TW -s gcin
  • 重新登入
  • 按下 'Ctrl + Space' 啟動 SCIM

 現在有 Lazybuntu 可以處理這個了,很輕鬆
RMVB 檔沒有聲音

傑克魚的迴游通道: 在 Ubuntu 7.04 Feisty 中看RMVB
blog.jackfish.info/2007/05/ubuntu-704-feisty-rmvb....
然後你會發現你的 rmvb 有影無聲,所以要改一下 xine 設定檔

gedit ~/.xine/catalog.cache

找 [/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so] , 把decoder_priority 的值改為 10 。
最後祝看片愉快。
修正 Ubuntu 和 Windows 時間不同步

安裝 Ubuntu 桌面 7.04 - OSWikiHK
wiki.linux.org.hk/w/%E5%AE%89%E8%A3%9D_Ubuntu_%E6%...

修正時區及時間

無論你選擇任何時區,Ubuntu 預設都會假定你硬體時鐘的時區為 UTC (即格林威治GMT)。如果硬碟有其他作業系統,而該系統又將硬體時鐘的時區假定為你所屬時區 (微軟視窗一般會如此)。當你在兩個作業系統交替啟動時,將做成時區混亂。所以建議你把硬體時鐘修正為你所在時區。

/etc/default/rcS 中的 "UTC=yes" 改成為 "UTC=no" :

# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
UTC=no

重新啟動系統。這時你的時鐘必會快了或慢了幾個小時,可以依以下方法修正:

$ sudo ntpdate stdtime.gov.hk    # 根據你所指定的時間伺服器修正你的系統時鐘(軟體時鐘)
28 Oct 12:57.47 ntpdate[7297]: adjust time server 210.0.235.14 offset -0 .021044 sec
$ sudo hwclock -w                    # 根據修正好的系統時鐘(軟體時鐘)時間修正硬體時鐘的時間
 建議改成 sudo ntpdate time.nist.gov
Labels: ubuntu, time, utc
Flash Plugin 快捷選單亂碼

Ubuntu 正體中文站 - firefox 的 flash9 右鍵選單亂碼 [論壇 - Ubuntu基本設定]
www.ubuntu.org.tw/modules/newbb/viewtopic.php?topi...
CreMaker 寫到:
① 目前的 flash 9 是使用如下的格式抓中文字型的,可以用 strings libflashplayer.so | grep big 得知

-*-*-*-*-*-*-*-*-*-*-*-*-big5-*

所以我們必需使用這種格式來可讓 flash 抓到中文字型

② 在 UBUNTU 7.04 中已安裝了 uming.ttf 及 ukai.ttf 字型,這兩個字型中都有 big5 的字型,可直接使用,就不必安裝一樣有 big5 字體的 firefly 字型了。

產生 fonts.dir 及 fonts.scale 檔案

cd /usr/share/fonts/truetype/arphic/
sudo mkfontdir
sudo mkfontscale

③ 修改 /etc/X11/xorg.conf 將 /usr/share/fonts/truetype/arphic/ 加到 Section "Files" 之中,如下:

Section "Files"
...
...
FontPath "/usr/share/fonts/truetype/arphic"
EndSection

④ 重新啟動(reboot),及檢查字體

由於 sudo xset fp rehash 似乎無法重新抓取字型,所以不妨 reboot 一下電腦,重新啟動後使用

xlsfonts | grep big5

看看是否有以下字型

-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-big5-0
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-big5.eten-0
-misc-ar pl zenkai uni-medium-r-normal--0-0-0-0-p-0-big5-0
-misc-ar pl zenkai uni-medium-r-normal--0-0-0-0-p-0-big5.eten-0

如有的話,flash 應該可以抓到及顯示中文字了
Flash 9.0.115 已改用 gtk 畫字,故已無此問題
Labels: ubuntu, flash
PDF 中文破字

Ubuntu中文 论坛 :: 閱讀主題 - [问题]如何解决 pdf 中文乱码
forum.ubuntu.org.cn/post-401130.html&sid=2f5c082dd...
sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional
 此方法試用後無效,workaround: 裝 Adobe Reader
Ubuntu 7.10 on X32: Compiz 問題

問題描述:簡單說,即便以前可以用「桌面特效」功能無誤,在使用 Ubuntu 7.10 時還是可能會遇上跟你說「無法啟用桌面特效」的情形。此情形 IBM ThinkPad X3x 系列很多會遇到。
Bug #124519 in compiz (Ubuntu): 「need to add max texture size check」
bugs.launchpad.net/ubuntu/+source/compiz/+bug/1245...
try to comment out lines 229 to 232 in /usr/bin/compiz and see if it enables composition
 It works. 直接跳過這個檢查後重起 X 一切正常。
X32 僅關機重開時會有音效

問題描述:X32在暖開機(重新啟動)或休眠再啟動後音效皆無用,僅有關機重開(冷開機)才會恢復正常。此問題目前無解,Ubuntu 處已經有回報 Bug。
 Update: 看起來 7.10 解決了這個問題
Beryl Emerald 雙擊標題列最大化

在Beryl下让双击标题变成最大化和还原 - I'm TualatriX! - ...IMTX.CN...
imtx.cn/old/read.php/414.htm
用过Beryl的人都知道,Beryl默认的窗口装饰器──Emerald,在你双击窗口标题栏时,是把你的窗口卷起来,而不是一般的最大化/还原。
 刚开始我以为这个是Emerald的特性,不能改的,今天弄窗口时,发现可以改的。所以就把这个改成我习惯的──即双击标题栏就是最大化/还原──相信也是所有从Windows过来的朋友的习惯。
 首先在Beryl的红宝石图标上点击右键,选择“Emerald主题管理器”,然后切换到“Emerald设置”,把下面“标题栏双击行为”,从默认的“Shade”改成“Maximize/Restore”,就可以了,
使用 Beryl 後,標題列最大化會變白

Yuren's Info Area: [解決] 使用 Beryl 後最大化視窗後標題列空白
yurinfore.blogspot.com/2007/04/beryl.html

後來找了很多資料,終於知道該怎麼解決這個問題,其實只要在 /etc/X11/xorg.conf 設定裡面加上下面的設定即可!

Section "Device"
Identifier "ATI Technologies Inc Radeon Mobility M6 LY"
Driver "ati"
BusID "PCI:1:0:0"
Option "XAANoOffscreenPixmaps" "true"
Option "AGPSize" "32"
EndSection
列印為 PDF

使用ubuntu制作PDF电子书 - 飞扬的web2.0口袋
www.koodai.com.cn/article.asp?id=218
1. 安装cups 和cups-pdf,其中cups-pdf是虚拟打印的主要模块:
  sudo apt-get install cups-pdf
 7.10 之後新增 PDF 印表機即可
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.