萬法唯心 - Impermanence

Archive for April, 2007

Beryl + Ubuntu + ATI Mobility 9000

April 14, 2007 12:07 am

Spent some time today trying to get Beryl to work on my Toshiba Tecra S1 running Ubuntu Feisty 7.04 beta with ATI Mobility 9000 graphics card. To start I used the following xorg.conf settings:

Section “Device”
Identifier “ATI 9000″
Driver “radeon”
Option “DRI” “true”
Option “RenderAccel” “true”
Option “EnablePageFlip” “true”
Option “XAANoOffscreenPixmaps”
Option “DisableGLXRootClipping” “true”
Option “AddARGBGLXVisuals” “true”
Option “AllowGLXWithComposite” “true”
Option “AGPMode” “4″
Option “AccelMethod” “XAA”
Option “ColorTiling” “on”
Option “AGPFastWrite” “on”
Option “GARTSize” “64″
BusID “PCI:1:0:0″
EndSection

Note that I used the driver radeon instead of fglrx and with xgl loaded. With these settings, I could get direct rendering on, can check yours by:

$ glxinfo | grep direct
direct rendering: Yes

After restarting Xorg, installed Beryl with the following command:

sudo aptitude install beryl beryl-manager emerald-themes

After the installation, I started the Beryl manager, however Beryl doesn’t start automatically. I ran the command beryl in the terminal it returns with the following error:

Checking maximum texture size : failed

Root window size (1280/1024) is bigger then maximum texture size (1024×1024)

From some online resources, I find out that I can use driconf to set the graphics card to have allow_large_textures = 2. However this didn’t solve the problem for me, later I found that I can set GARTSize to higher in xorg.conf. I tried:

Option “GARTSize” “256″

After restarting Xorg, I was able to run beryl without the error given before. However it returns a white screen, restarted Xorg again and find that direct rendering is off. It was found that setting the GARTSize to anything larger than 64 will set direct rendering to off. Knowing that I couldn’t get it to work on 1280×1024 on the external monitor (19″ Xerox XA7), I tried it on lower resolution 1024×768 and got that to work with the following screenshot:

Beryl on Ubuntu + ATI

Given that you are not using an external monitor, it would work on the laptop monitor on resolution 1024×768. The function shown in the screenshot is really the only function that I want from Beryl, and knowing that ATI doesn’t work very well with Beryl/Compiz anyway, don’t think there is much I can do to make it work on 1280×1024 unless new drivers come on or with another graphics card.

正是做功夫時節

April 9, 2007 5:21 pm

I have read this article a few times and finding it very meaningful and hence would like to share. 關鍵字: 學佛, 妄念, 念佛

「且萬念紛飛之際,正是做工夫時節」,諸位同修做功課覺得有妄念,愈念妄念愈多,於是不想念,其實不念妄念更多,這是不覺,迷到極處了。人人如此,看人家的毛病清清楚楚,看不見自己,光會挑人家毛病,自己知道有妄念才叫明白。若一念佛心就乾淨了,那還要念什麼佛?成功了就不用念佛,你就是佛,所以覺得萬念紛飛正是覺悟的時候。如一棵樹,上面是樹葉,中間是樹心,下面是樹根,樹葉在搖有人都不知道,你說樹根在搖,他更感覺不到。知道自己錯誤的人,才是起了覺悟之人,以為自己都沒錯,如何會覺悟?根源之處不知道,如何學覺?覺悟的根源是什麼?諸惡莫作,眾善奉行。但是,一般人往往好的事不去做,就是學佛的人,善事也做不多,惡事做得倒不少。

學佛是學佛的覺悟,有人學佛學了幾年就說沒有妄念了,這是糊塗到極點,登地菩薩都還有妄念,七地菩薩也還有妄念。祖師說:「不怕念起,只怕覺遲。」學佛學了幾十年還是有妄念,不怕有妄念,就怕你不知道是妄念。就怕起了妄念還不知道,以為自己還在修行,阿彌陀佛都變成妄念了還不知道。妄念若起時不能讓他隨意起,要看著妄念,如捉賊,有賊進到你家,你知道了,看著賊的行動,賊就不敢偷東西,若不知是賊,不管他,家裡東西就被偷光了。所以,你要觀察,起了妄念用阿彌陀佛的佛號壓下去,起一個妄念,念一百聲佛,這正是用功的時候。所以,妄念紛飛之際,正是做功夫時節,不起妄念還不會覺悟,還不念佛呢!念佛也不是一念就立刻收心,總還會有妄念,那就要「旋收旋散,旋散旋收」一句佛號一直念下去,妄念起了就趕快收心,收心回來念佛,這樣不能斷惑也能伏惑,伏惑就行。

「久後工夫純熟,自然妄念不起。」佛號和妄念譬如「生、熟」兩個字,該熟的事我們一點都不熟,該生的事你偏熟了,生熟顛倒。譬如吃東西,米要煮熟才能吃,水果也要熟了才可以吃,生的吃了對身體有害。殺盜淫妄你很熟,不去想自然就會去做,連晚上做夢都去做惡事。念佛對你來說太生了,念佛若不勉強去念,念不到半點鐘,念頭就不知跑那裡去了。若念佛念熟了,那些殺盜淫妄的壞心就變生了。

學佛若不守戒,還幹殺盜淫妄的壞事,那不成!自古來沒有曹操成佛的,必得守戒斷惡業,隨緣消舊業,更不造新殃,學佛才能有成就。咱們現在舊業不去,還幹新殃,這樣可以往生嗎?阿彌陀經說得明明白白,一心不亂斷了惑才能往生,不斷惑也要伏住惑,伏惑是假一心不亂,也可以上西方極樂世界。「久後工夫純熟」生的佛號變熟了,忘了造業,熟的惡業就變生了。「自然妄念不起」想起妄念,想半天還想不起來呢。

摘錄自 正是用功時節 - 李炳南老居士講述

佛十號

April 6, 2007 11:56 am

世尊,別有十號,總稱世尊。因具十號之德,為世尊崇,故稱世尊。此依大論,十號者:

如來應供正遍知明行足善逝世間解無上士調御丈夫天人師佛世尊

  1. 如來:諸法一如為如,不來而來為來,此曰性體表德;
  2. 應供:堪應人天供養,此曰大悲大願表德;
  3. 正遍知:知一切法,即假即空,莫非中道;一空一切空,一假一切假、一中一切中,無偏無倚,寂照同時為正;三諦理智,圓融無礙,智周沙界,鑒徹微塵為遍;此曰寂照同時表德;
  4. 明行足:有二說,大涅槃經說:明者得無量善果(指阿耨菩提),行足者、能行之足(指戒慧并攝定),謂得無上菩提,由乘戒慧之足,此曰修因剋果表德;大論說:明、即宿命、天眼、 漏盡、三明,行、指身口意三業,唯佛三明之行具足,此曰義以神通表德;
  5. 善逝:猶言好去,謂入無餘涅槃,所謂生滅滅己,寂滅現前也,此曰斷證表德;
  6. 世間解:一切有情非有情事相,無不了解,此曰後得智表德;
  7. 無上士:十法界中佛最上,此曰即位表德;
  8. 調御丈夫:或以柔軟語、或以苦切語, 善能調御丈夫(無論男女僧俗、如欲遠塵離垢,非具有大丈夫氣概,果決堅定之心志不可,如是之人,唯佛能調伏而駕御之),使入佛道,此曰教主表德;
  9. 天人師:為人天之師範,譬如日光遍照,無不蒙益,此曰普利表德;
  10. :自覺、覺他、覺行圓滿,名佛陀耶,此曰究竟果表德;世尊:為十號之總稱,佛為三界之尊,故稱世尊。三界者:欲界、色界、無色界也。

摘錄自 金剛經講義

「如來」這兩個字:「如」是無所不知,「來」就是無所不來。佛法的本體是如,佛法的用就是來;佛的體如如不動,來而不來,那麼到什麼地方去呢?金剛經上說:「如來者無所從來,亦無所去。」也不到我這兒來,也不到你那兒去;是在你那兒,也在我這兒,這就是如來。

如來是佛的十號之一,最初佛有多少個名號呢?最初每尊佛有一萬個名號,以後才把它減少,因為一般人記不得那麼多,於是就縮減到每尊佛一千個名字,但是,一千個還是使人記不了,因此就再減到每尊佛一百個不同的名字,儘管如此,眾生仍然很難記得,於是乎又縮到十個,這十個名號,也正是每一個佛的通號。第一個名字是「如來」,是乘如實之道,來成正覺,就是成佛了;第二個是「應供」,意思是應當受人天的供養;第三叫「正遍知」;第四是「名行足」;第五叫「善逝世間解」;第六叫「無上士」;第七是「調御丈夫」;第八「天人師」;第九「佛」;第十是「世尊」,每一位佛都有這十種名號。

摘錄自 大佛頂首楞嚴經卷一淺釋

佛說十號經

菩薩現身

April 5, 2007 8:44 pm

須知菩薩無心,以眾生之心為心。菩薩無境,以眾生之境為境。故得有感即通,不謀而應。良由眾生心之本體,與菩薩之心,息息相通。由眾生背覺合塵,遂成通而不通之象。若眾生一念生信。虔持聖號,背塵合覺。返迷歸悟。又成不通而通之象。以故凡遇極大險難,舉念即獲感應。又菩薩現身,不專現有情身。即山河樹木,橋樑船筏,樓臺房舍,牆壁村落,亦隨機現。必使到絕地者,復登通衢,無躲避處,得大遮蔽。種種救護。難盡宣說。

摘錄自 印光大師全集問答擷錄

Google Earth on Linux (ubuntu)

April 4, 2007 11:04 pm

After a discussion on a bug in the Xorg and ATI graphics card, I installed Google Earth to check that my graphics card is actually functioning correctly. My graphics card is the RADEON Mobility 9000 with the following Xorg.0.log:

(II) RADEON(0): [agp] GART texture map handle = 0xb0302000
(II) RADEON(0): [agp] GART Texture map mapped at 0xb51da000
(II) RADEON(0): Using 8 MB GART aperture
(II) RADEON(0): Using 5 MB for GART textures
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808

The driver that I’m using is ATI and not FGLRX, also direct rendering is not supported either. Anyway I followed this guide to install Google Earth, which is quite simple and it works fine right from the installation without any changes to the settings. The installation basically just consists of 3 comments:

wget http://dl.google.com/earth/GE4/GoogleEarthLinux.bin
chmod +x GoogleEarthLinux.bin
./GoogleEarthLinux.bin

If everything goes well, you can run Google Earth from your menu under Applications > Internet. Here is a screen shot of Google Earth running, click on the image for more screenshots.

Google Earth

Optimising my Laptop - Ubuntu Feisty

April 3, 2007 7:43 pm

Before really getting into my final year project and revision for exams. I spent some time ugrading my 3+ years old laptop (Toshiba Tecra-S1) from Ubuntu 6.10 to 7.04 and optimising it. At the same time cleaned up my desk to have more space to work.

My Workspace - Desktop

I have trying many different ways of optimising it with online resources including some websites and forums. Here are the changes or applications that I have installed that I felt have increased the performance dramatically.

  • Upgrading to Xorg 7.2 beta (follow link for detials)
  • Added all the respositories on this page and perform a update + upgrade
  • Installed the windows manager E17, see below for details

Also tried out a windows manager called Enlightenment (E17), the installation was quite simple, updated some repos and did a apt-get install. Then just log out and change the session and everything works already. I have to say it looks very nice with many special effects, however after using it for a while (10 mins) I find that I prefer the normal gnome. The effects are just too much for me, but it’s quite impressive that it’s very fast with all these eye-candle enable. After I decided to go back to the normal gnome, I find that applications switching and menu loading are a lot faster. Not sure excatly why that is, possibly because some softwares and core has been updated.

Anyway I’m quite happy that everything is working fine now on this laptop and it doesn’t feel slow at all! It doesn’t take much time to load any application, if I don’t run any heavy program or applications, don’t think its responses is any slower than a new desktop. It’s amazing how Linux makes this possible, but at the same time I do feel that Linux is getting way too user friendly, a bit like windows!