星期二, 2月 28, 2006

Set firefox the default browser for Evolution

Since there is no preference setting for browser choosing in Evolution, you have to set the default browser in Kcontrol Center, or gnome-control-center. As for KDE, if you assign the default browser to firefox, ever since you try to open an URL from konqueror browser, Konqueror stills launch firefox and open the desired link. This will be annoying if the web site you want to view happens to be a browser specific site (IE), and you need to try another browser to get better support.

To assign the default browser for Evolution, and keep other browser function normally as usual, open a console and type as below:

gconftool-2 --set /desktop/gnome/url-handlers/http/command -t string 'firefox %s'

and

gconftool-2 --set /desktop/gnome/url-handlers/https/command -t string 'firefox %s'

Don't forget to leave the browser settings blank in the KDE control center.
But I wonder, doesn't this command affects all the gnome-related apps?

星期四, 2月 23, 2006

可愛的企鵝logo

有個日本網站上面發佈了很多可愛的企鵝圖案,有興趣可以看看,拿來當作msn的友好圖示也蠻不錯的。因為上面註明可自由散佈複製,我就不客氣貼個一張上來囉。網址如下:http://www.linux.or.jp/general/gallery.html

網站上還有很多可愛的企鵝圖片,包括2000年跟99年的也還有,似乎是用GIMP所繪製出來的。原來GIMP可以畫出這麼多可愛的圖片,對我而言,GIMP的用途只能拿來修改自己照片上的痘痘和多餘的油光而已.....等級差太多了,只可惜了這套軟體阿。

星期一, 2月 20, 2006

Activate the Winmodem on ECS A901 Desknote

Currently running MDK2005LE on my A901, as I remember, LE recognise the device, but unable to activate it. To make it work, download the linux driver from http://www.smlink.com/ , and follow the instructions from the readme file.

1. un tar the file offcourse.
2. Install the kernel-source.
3. cd slmodem-X (the extracted directory)
4. make KERNEL_DIR=/path/to/linux ...
5. Then make & make install

To activate it while boot, add the following line in your /etc/rc.d/rc.local
/usr/sbin/slmodemd --country=USA /dev/slamr0
You should find ttySL0 in your /dev directory, just link the file to /dev/modem, then you should detect the device by kppp or any dial up program.

星期日, 2月 19, 2006

My Desktop - MDK2005LE


貼 一張桌面抓圖來看看。目前使用MDK2005LE,家中三台電腦有兩台都是2005LE,一台是MDV2006,雖然MDV2006看 起來漂亮,但我確覺得bug好像還不少,目前仍舊觀察中。我想有朝一日換換OpenSUSE來用用看好了,希望德國人的東西是真的比較嚴謹一點。有時候會 想Linux畢竟是免費的,不用強求太多,自己修改細微地方也是種成就感,但久了以後卻希望有個真的很好設定,bug少的系統。不過其實在換個角度想一 想,Windows98~ME也是要錢,但也是很爛,所以這其實跟錢也沒多大的關係。

圖中的人物是布袋戲的『邪影』,名雖曰邪,但是個正派的角色,不過死的很快,但其實很強。又強又死的快,霹靂的戲偶真的都是刻不用錢的。不過霹靂現在的武打鏡頭都很棒,劇情就算了,武打是真的很好看喔!

Open new link with firefox new tab

印象中安裝了firefox的 Tabbrowser Preference後應該是每開一個新的連結會自動用tab分頁開啟(避免開太多視窗),但很奇怪的我的電腦卻像是『忽然』失去這個功用。這樣一來只好重新寫一個script來啟動firefox了。

#!/bin/bash

/usr/local/firefox/firefox -remote "openURL($@, new-tab)" ||
exec /usr/local/firefox/firefox "$@";

把這個script命名存檔為firefox,並 chmod a+x firefox
script裡的 /usr/local/firefox/firefox是安裝firefox的目錄以及他的啟動script
這樣一來就不論是gaim,pcmanx等等軟體都能以把連結用tab開啟啦。

星期六, 2月 18, 2006

Mandriva & HP14XX multifunction

測試環境:Mandriva2006 with HP1410
不過我想Mdk10.X系列應該也都適用吧!使用MDK內的HPLIP可以列印,但系統找不到scanner,所以得改成hpoj。把HPLIP移除,改 安裝HPOJ。安裝完HPOJ後可以重新設定印表機(MCC中自己指定),但是scanner的部份要作些修改才可以。總之:
1. Remove HPLIP (if it was installed)
2. Install HPOJ
3. Configure HPOJ settings
Edit /etc/sane.d/dll.conf
uncomment or add the "hpoj" line in the scanner configuration file
4. Restart CUPS service system
5. Use xsane or kooka to scan (detect)

konqueror中按右鍵解rar壓縮

rar for linux 只有文字而沒有圖形介面
若是可以透過konqueror的servicemenu功能來完成按右鍵解壓縮
總是比終端機下指令方便一點。
方法:建立 rar.desktop 檔
放在 ~/.kde/share/apps/konqueror/servicemenus/ 裏面
內容如下:
====================================
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=application/x-rar-compressed
Actions=unrar
[Desktop Action unrar]
Name[zh_TW]=解開RAR壓縮檔到這裡
Icon=ark
Exec=cd %d && rar x %f -w %d
====================================
1.當然你必須先安裝好rar才可以使用
2.這會將檔案解壓縮到同一個資料夾中

利用 gqview 變換桌布

一直很希望說可以直接利用看圖軟體來變換桌布,mandrake預設
的看圖軟體是gqview,所以一直以來用習慣的看圖軟體也都是gqview,
但是gqview裏面的 『設定為桌布』 選項在kde裏面沒有用,在WindowMaker
是可以更換,但是下次啟動又會回覆成原來的桌布,gnome我就沒試過。

解決的方法
到 編輯=>選項=>編輯器 可以自己手動加入命令

for WindowMaker 設為桌布的指令是 wmsetbg -u %f (圖片放大至全螢幕)
wmsetbg -u -t %f (一般鋪排)

for KDE 的指令是 dcop kdesktop KBackgroundIface setWallpaper %f 6
這也是設定為放大至全螢幕,如果希望是別種模式
可以試試看改變指令末端的數字有 1~7 可以選,而
1~7 所代表的模式是對應到 KDE的控制中心
外觀與感覺 => 背景 => 選項 => 位置 的七項選擇

Mandrake on ECS A901-Keyboard

KDE控制中心的鍵盤配置中選擇Hewlet-Packard 5185 InternetKeyboard 就可以設定Notebook鍵盤上的熱鍵設定了

Linux for YOYOLO 開張

Linux for YOYOLO建立起來了,以後就專門放一些Linux的備注心得等等。