Showing posts with label Xorg. Show all posts
Showing posts with label Xorg. Show all posts

Thursday, December 9, 2010

xfce4 on acer/aspire 2920 via thumb drive

posting this from war's laptop (warunee.)
simply inserted thumb drive preloaded with FreeBSD-8.1 image and asked smarn to enable booting from usb drive.

300gb of ad4 hard disk has been partitioned into 512m for root, 4g for swap, 40g for var, 90 for usr and the rest for home.

installed 'All' for and from  'USB'  'media' with as smooth as silk.

installed xfce4 set from xfce4 dvd and xorg too, though.

enabled both hald and dbus after doing 'X -configure', 'X -config /root/xorg.conf.new -retro' and noticing that an X mark stayed still.

it is likely that it, an X mark - a mouse, fears  two cats.

installed firefox from the same media.

have not yet install thai font and language switching via some .fdi files

life is so nice for today.

(related posting is here )

A Tale of Two Cities

Sunday, April 18, 2010

FreeBSD: xorg-->XKB-->keyboard-->thai & eng

แฟ้ม สำหรับควลคุมการสลับภาษา ไทย อังกฤษ /usr/local/etc/hal/fdi/policy/x11-input.fdi โดยปุ่มที่ใช้สลับภาษา หรือ ที่เรียกกันว่า layout switching นั่นแหละ คือ Alt Shift ใช้ได้กับ blackbox, windowmanager ส่วน จีโนม นั้นไม่ต้องไปยุ่งกับเขา เขามีให้แล้ว ไม่ต้องให้ลำบากมาปรับเอาเองอย่างนี้

ขอขอบคุณ aka_ape ที่น่ารัก และ FreeBSD Forum ไว้ ณ ที่นี้ด้วย
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.x11_options.XkbModel" type="string">pc105</merge>
<merge key="input.x11_options.XkbLayout" type="string">us,th</merge>
<merge key="input.x11_options.XkbOptions" type="string">grp:alt_shift_toggle</merge>
</match>
</device>
</deviceinfo>


และนี่ สำหรับแฟ้ม /etc/X11/xorg.conf จำเพาะส่วนที่เกี่ยวข้อง
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection



Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,th"
Option "XkbVariant" "tis"
Option "XkbOptions" "grp:alt_shift_toggle"

EndSection


สำหรับแฟ้ม /etc/X11/xorg.conf นั้น ส่วนที่เกี่ยวข้องก็ได้ hight light ไว้ให้แล้ว และที่ต้องเพิ่มมาจริงจริง ก็จำเพาะส่วนสีนี้แหละ หวังว่าคงพอช่วยกันได้ สำหรับงานเอกสาร

สำหรับ มะไฟ เองนั้นปวดหัวมากกับภาษาไทย หลังจาก หมดยุคของ chula word & ramaword แล้ว ตลอดชีวิตการทำงาน ไม่ค่อยได้ใช้คอมพิวเตอร์พิมพ์งานออกมาเลย หมายถึงงานทางวิชาการที่ใช้ภาษาไทย ส่วนใหญ่ใช้แต่ภาษาอังกฤษ

อย่าหมั่นไส้น้อย อย่าหมั่นไส้น้อย เพราะ มันต้องเกี่ยวข้อง กับ เอกสาร ภาษาต่างประเทศ เป็นส่วนใหญ่จริงๆ เวลาไปต่างประเทศงี้ เวลาคนต่างชาติมางี้ หรือกระทั้งว่า เวลานำเสนอผลงานในกลุ่มเล็กๆ จำเพาะ ก็ ใช้ภาษาอังกฤษเลยดีกว่า เข้าใจกันง่ายดี

ดังนั้น เมื่อต้องมาเขียนรายงานเป็นภาษาไทยขึ้นมา เรื่องมันเลยวุ่นกันนานพอควร นวนพอคาน ว่างั้นเถอะ ทีแรกที่ใช้จีโนม มันก็ง่ายดี สะดวกไปหมดทุกอย่าง แต่ข้อเสียคือ มานหย่ายยยย ครั้นพอมาเปลี่ยนเป็น twm, blackbox, wmaker, openbox พวกนี้ ที่เล็กกะทัดรัด แคล่วคล่องว่องไวดี แต่ต้องมาปวดหัวอย่างว่า

ปุ่มไหนหว่า สลับภาษา

อีกครั้ง ขอขอบคุณ aka_ape ที่น่ารัก และ FreeBSD Forum ไว้ ณ ที่นี้ด้วย
ของขวัญวันสงกรานต์น่ะครับ


ลป สำรหับท่านที่สนใจในเรื่องของปุ่มปมต่างๆ ขอบแป้นพิมพ์ กรุณาไปหาอ่านเอาได้จาก สาระบบแฟ้ม /usr/local/share/X11/xkb/rules ซึ่งแฟ้ม base.lst จะบอกไว้หมดแหละว่า ประเทศนี้ มีแป้นพิมพ์รุ่นนี้ ใช้กฏหมายนี้ ใช้ layout นี้นี้ มี options ยังงี้ยังงี้ จิปาถะ ...ฯลฯ ขอได้โปรดไปหามาอ่านเอาเอง มันไม่ยากหรอกครับ ภาษาอังกฤษแบบ คอมพิวเตอร์ เนี่ย ง่ายกว่าภาษาอังกฤษแบบ partners เมื่อสี่สิบปีก่อนนู้น ที่ว่า

วันคาคัม วันคาโก โครม
แก้สโซลีน บ๋อต๋อ

ลองดูเด้อ

Friday, September 25, 2009

FreeBSD: graphics mode

โดยทั่วไป FreeBSD จะทำงานใน text mode และ มะขาม ก็เริ่มใช้งานเขา ใน mode นี้ —เขียนโปรแกรม— ในช่วงนั้น graphic window manager ซึ่งเป็น client ของ X servers ก็มีเพียง twm และ graphic servers หรือ X servers ก็มีเพียง XFree86 ประมาณนั้น

twm เล็ก ดูจืดสนิท แต่ประสิทธิภาพสูงน่ะ คนใช้ ต้องจัดทุกอย่างเอาเอง มันท้าทายดีเหมือนกัน

ต่อมา มะขาม ก็ใช้อันที่เขาทำมาแล้ว —ไม่อยากเปลืองเรี่ยวแรง— blackbox นี่ก็ไวดีดีขึ้นมามากเลย แม้จะมีของที่ดีมากกว่า มะขาม ก็ยังรู้สึกว่า FreeBSD นั้นเหมาะกับงาน servers & programming มากกว่า ถึงกับเคยล้อเพื่อนที่เอา FreeBSD ไปทำ desktop ว่า

นี่ จะนั่งรถถังไปจ่ายตลาดรึไง

ก็เพราะความที่เขาคุยไว้ว่า FreeBSD นั้น rock stable อะไรปานนั้น ก็เปรียบเอากับ รถถัง แต่การใช้งานในลักษณะ desktop ที่เอาแต่ใช้ mouse กดเอาๆ นั้น เปรียบเอากับการไปซื้อสินค้าในตลาดสด

แม้จะแซวเขาอย่างนั้น แต่ก็ยอมหละว่า เพื่อนเขา เยี่ยม ติดตาม นำเสนอ ปรับแต่ง จนน่าใช้ และใช้ได้ดีมากมาก เขาละ อาข่าอาปี ก็ชื่อที่เขาใช้ในแวดวงไซเบอร์ เหมือนกับ มะไฟ ที่ใช้ชื่อ มะขาม นี่แหละ

อนิจฺจํ มันไม่เที่ยง ฉันได ก็ ฉันนั้น ปัจจุบัน X servers ที่ใช้ เป็น xorg และที่สุดมาเลือกเอา gnome2 เป็น desktop ประจำงานไป

ที่จำนำเสนอต่อไปนี้ ก็เป็นเรื่องการลง x11 จาก xorg และ gnome2 น่ะ ซึ่งบอกกันตรงนี้เลยว่า ไปลงจากพอร์ท x11/xorg & x11/gnome2 เอาเอง สั้นๆ แต่ส่วนรายละเอียดนั้น ขอแปลจาก handbook มาให้อ่านดีกว่า เน้าะ

อย่าลืม ลง x11/xorg ก่อน และ ปรับแต่งให้เรียบร้อย แล้วถึงไปลง x11/gnome2 ต่อ สงสัยอะไร อ่าน handbook หากไม่เข้าใจ ถึงค่อยมาถาม
Happy X Window — ing

Tuesday, September 8, 2009

FreeBSD: Choosing What to Install

เลือก distribution ที่จะลง

ตามที่ตกลงแต่แรกน่ะว่า ลงทั้งหมด ทุกอย่าง ตามรูป 2-25 พอเห็น ให้เลือก All

รูป 2-25. เลือก Distributions

เมื่อเลือก distribution แล้ว ก็ตามที่บอกแต่ต้นไว้เช่นกันด้วยว่า ต้องลง ports collection มันเป็นเพียงที่ช่วยให้ท่านสามารถ สร้าง applications ต่างๆ และใช้งานกับเครื่องของท่านได้

มีเนื้อที่สักประมาณ 500 MB สำหรับ ports collection ก็พอเพียงแล้ว และเมื่อท่านพบข้อความนี้

                         User Confirmation Requested
 Would you like to install the FreeBSD ports collection? 

 This will give you ready access to over 20,000 ported software packages,
 at a cost of around 417 MB of disk space when "clean" and possibly much
 more than that if a lot of the distribution tarballs are loaded
 (unless you have the extra CDs from a FreeBSD CD/DVD distribution
 available and can mount it on /cdrom, in which case this is far less
 of a problem). 

 The Ports Collection is a very valuable resource and well worth having
 on your /usr partition, so it is advisable to say Yes to this option. 

 For more information on the Ports Collection & the latest ports, visit: 
     http://www.FreeBSD.org/ports  
                              [ Yes ]     No

เลือก [ Yes ] ด้วยปุ่มลูกศร เพื่อติดตั้ง Ports Collection . กดปุ่ม Enter เพื่อทำงานต่อไป.

เมนู เลือก distribution ก็จะกลับมาให้เห็นอีกครั้ง

รูป 2-26 เลือก distribution

เลือก Exit ด้วยปุ่มลูกศร และให้แน่ใจด้วยว่า [ OK ] นั้นถูกเลือกอยู่ ก็ดูเอาง่ายๆว่า ปุ่มนั้นมัน highlighted อยู่นั่นแหละ แล้วก็กดปุ่ม Enter เพื่อทำต่อในลำดับถัดไป

Wed Sep  9 14:20:00 ICT 2009
ตอนนี้ ขอรวบรัดเอาสั้นๆน่ะ อย่าว่ากัน
 แต่จะแปลแน่นอน เพราะต้องส่งไปให้ FDP

View My Stats