This is G o o g l e's cache of http://www.debianclub.com/node/34 as retrieved on 14 Feb 2007 19:01:36 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?hl=en&q=cache%3Ahttp%3A%2F%2Fwww.debianclub.com%2Fnode%2F34&btnG=Search


Google is neither affiliated with the authors of this page nor responsible for its content.

User login

Links

debianclub.com
debian.org
ubuntuclub.com
blognone.com

Syndicate

Syndicate content

ติดตั้ง Beryl สบาย ๆ บน sid

หลังจากที่ลอง Compiz มากว่า 2 สัปดาห์ ซึ่ง Debian มี Packages และบอกวิธีติดตั้ง และการคอนฟิกให้หมด

และก็ถึงเวลาลองติดตั้ง Beryl ซึ่งแยกตัวออกมาจาก Compiz อีกที แต่ว่าคราวนี้ Beryl ยังไม่มี Packages ใน Debian Repository ก็เลยต้อง Build เอง ตอนแรกนึกว่าจะยุ่งยาก แต่ต้องขอบคุณ คุณ Piezo ไม่แน่ใจว่าเป็นคนชาติไหน แต่เขาใช้ภาษาฝรั่งเศสในการสนทนาใน Forum http://forum.debian-fr.org/viewtopic.php?t=5254 ซึ่งลิงค์ มาจากตอนท้าย ๆ ของ Compiling-beryl อีกที

Script file:
Original ภาษาฝรั่งเศส มั้ง:

http://wdimd.selfip.org/~piezo/oberyl

แปลเป็นภาษาอังกฤษโดย Google Translate ขอบคุณ สุริยะ น้องชายผมเอง ที่ช่วยแนะนำเว๊ปนี้ให้ ผมไม่รู้จริง ๆ ว่ามีแบบนี้ด่้วย อิอิ และก็แก้ไขอีกนิดหน่อย ก็กลายมาเป็น

English Translate (Neutron + Google Translate -- :P) :

http://neutron.debianclub.com/Codes/oberyl-en/oberyl-en

ได้แหล่งที่จะโหลด script แล้ว มาเริ่มต้นกันเลยแล้วกัน

$ mkdir ~/build
$ mkdir ~/build/beryl
$ cd ~/build/beryl
$ wget http://neutron.debianclub.com/Codes/oberyl-en/oberyl-en
$ chmod u+x oberyl-en

ก่อนที่จะรัน Script จะต้องตั้งค่าเพื่อให้ user ปัจจุบันสามารถใช้งานคำสั่ง sudo แบบมีสิทธิเทียบเท่า root ได้ก่อน

# visudo

เพิ่ม ชื่อ user ที่ใช้อยู่เข้าไป

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
.
.
.
user ALL=(ALL) ALL 

เริ่ม build
$ ./oberyl-en makeall

ในระหว่างนี้ script จะทำงานดังนี้

  • ทำการติดตั้ง build-dependencies ซึ่งใน script ของผมมีการแก้ไขและเพิ่ม dep ตาม SVN ล่าสุด (2006-11-24 11:00am) ต้องการแล้ว โดยจะถามรหัสสำหรับใช้กับคำสั่ง sudo ให้ใส่รหัสผ่านของ user ที่ใช้งานอยู่ลงไป
  • ดึงข้อมูลต้นฉบับจาก svn ของ Beryl และทำการตั้งค่าสำหรับสร้าง Beryl Debian Packages
  • สร้าง Beryl Packages
  • ติดตั้ง Beryl Packages ผ่านคำสั่ง dpkg -i

ถ้าไม่แจ้ง Error อะไรออกมา ก็น่าจะเรียบร้อยแล้วครับ

คราวนี้มาลองทดสอบกัน .... ก่อนอื่นต้องตั้งค่า X คอนฟิกก่อน
เครื่องผม ใช้ Driver i810 เพราะว่าเครื่องที่ผมใช้เป็น Compaq Presario V1115AP

00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)

ส่วนท่านอื่น ที่แตกต่างคงต้องค้นหาข้อมูลเพิ่มเติมกันหละครับ :P

/etc/X11/xorg.conf

เพิ่มเข้าไปใน

Section "Device"
.
.
Option          "XAANoOffscreenPixmaps" "true"
EndSection

เพิ่มเข้าไปตอนท้าย

Section "Extensions"
        Option "Composite" "enable"
EndSection

สั่งให้ X เริ่มทำงานใหม่ โดยให้ออกจากระบบ (Logout) ก่อน

Ctrl + Alt + F1
# /etc/init.d/gdm restart กรณีนี้ผมใช้ GDM นะครับ

ถ้ากลับเข้าหน้าจอ Login ได้ก็เรียบร้อย ให้ทำการเข้าระบบปกติ
และเปิดเทอร์มินัล และทดสอบ

$ beryl-manager

จะขึ้น Splash screen ของ Beryl ขึ้นมา ... ไชโย สำเร็จ

ปล. หากต้องการตั้งค่าให้ Beryl เป็น default window-manager สร้างไฟล์เพื่อเป็น auto-start ของ gnome-session ดังนี้

~/.config/autostart/gnome-initberyl.sh.desktop

[Desktop Entry]
Name=Beryl
Encoding=UTF-8
Version=1.0
Exec=/usr/bin/beryl-manager
X-GNOME-Autostart-enabled=true

THE END.