Date: Tue, 11 Sep 2001 19:18:40 +0700 From: psr <pirat@access.inet.co.th> To: David Greenman <dg@root.com> Cc: docs@freebsd.org Subject: Re: : Ask for permission : translate some documents into Thai Message-ID: <20010911191840.A6250@radwaste.oaep.go.th> In-Reply-To: <20010909022833.V76779@nexus.root.com>; from dg@root.com on Sun, Sep 09, 2001 at 02:28:33AM -0700 References: <20010908152122.A4424@radwaste.oaep.go.th> <20010908105336.U76779@nexus.root.com> <20010909081836.A1550@radwaste.oaep.go.th> <20010909022833.V76779@nexus.root.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi sirs, i really apologize for your time. my zeroth document is `make world' instruction. i wrote from my experience. i choose html format since that is a small one. if you have some thai here or if you could read and understand it, please feel free to review and edit. if it were of any small value to freebsd community, took it please. with best regards psr On Sun, Sep 09, 2001 at 02:28:33AM -0700, David Greenman wrote: > Date: Sun, 9 Sep 2001 02:28:33 -0700 > From: David Greenman <dg@root.com> > To: psr <pirat@access.inet.co.th> > Cc: mwm@mired.org > Subject: Re: : Ask for permission : translate some documents into Thai > > >hi, > > > >thanks. > > > >i will start with fips.doc since Siamese like installing multi os on a single hard disk. and if there were existing already, sorry for my bad English, inform me please. i do not want to repeat any finished tasks. > > I am not aware of any other effort to translate the documentation into > Thai or Siamese, but this is also not my area of expertise so I could be > missing something. > > -DG > > David Greenman > Co-founder, The FreeBSD Project - http://www.freebsd.org > President, TeraSolutions, Inc. - http://www.terasolutions.com > Pave the road of life with opportunities. > --r5Pyd7+fXNt84Ff3 Content-Type: text/html; charset=iso-8859-1 Content-Disposition: attachment; filename="cvsup.html" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Build Your System from sources สร้างโลกใหม่ ให้กับเครื่องของท่าน</TITLE> </HEAD> <BODY><H1><font color=#990000>สร้างโลกใหม่ ให้กับเครื่องของท่าน</font></H1> การสร้างโลกนั้น แบ่งเป็นสามตอน <ul> <li>ตอนแรกเป็นการดูด <tt>source programmes</tt> ทั้งระบบมา </li> <li>ตอนสองจึงเป็นการลงมือสร้างทุกสิ่งทุกอย่าง โดยถือว่าเริ่มจากความว่างเปล่า</li> <li>ตอนสุดท้าย เป็นการจัดการบริหารระบบโดย <tt>mergemaster</tt></li> </ul>งานตอนนี้ ต้องการ <tt>super user</tt> ดังนั้นความปลอดภัยของระบบ ท่านต้องรับผิดชอบด้วยตัวท่านเอง <ol> <li><h2><font color=#990000>source programmes</font></h2>ก่อนอื่นต้องทึกทักเอาว่า ท่านทราบ หรือ มี ในสิ่งเหล่านี้ <OL> <LI><tt>minimal installation</tt> เป็นอย่างน้อย</LI> <LI><tt>/usr/src</tt> file system ขนาดประมาณ 500 megabytes</LI> <LI><tt>/usr/obj</tt> file system ขนาดประมาณ 800 megabytes</LI> <LI>โปรแกรม <tt>cvsup</tt> โดยไปติดตั้งได้จาก พอร์ท <tt>/usr/ports/net/cvsup</tt></LI> <LI>sup file นี้ (ชื่อว่า <tt>/var/tmp/stable-supfile</tt>)<pre> *default host=cvsup.FreeBSD.org *default base=/usr *default prefix=/usr # The following line is for 4-stable. If you want 3-stable or 2.2-stable, # change "RELENG_4" to "RELENG_3" or "RELENG_2_2" respectively. *default release=cvs tag=RELENG_4 *default delete use-rel-suffix # If your network link is a T1 or faster, comment out the following line. *default compress ## Main Source Tree. # # The easiest way to get the main source tree is to use the "src-all" # mega-collection. It includes all of the individual "src-*" collections. # Please note: If you want to track -STABLE, leave this uncommented. src-all </pre> </LI> <LI>internet connection ที่ค่อนข้างเร็ว เข้าใจว่า หากใช้โมเด็มห้าสิบหกเค คงพอ</LI> </OL> ตัวอย่าง file system และขนาดที่ใช้อยู่คือ <PRE>%df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 127023 37294 79568 32% / /dev/ad0s1f 5081581 22237 4652818 0% /home /dev/ad0s1e 5081581 1290524 3384531 28% /usr /dev/ad0s1d 1073607 329637 658082 33% /usr/local /dev/ad0s1h 889263 339010 479112 41% /usr/obj /dev/ad0s1g 2032623 10737 1859277 1% /var procfs 4 4 0 100% /proc %</PRE> ในนี้ไม่ได้แยก <tt>/usr/src</tt> ออกมาเป็นพิเศษ แต่รวมอยู่ใน file system <tt>/dev/ad0s1e</tt> แล้ว<br> เมื่อท่านพร้อมหมายถึงท่านต่อกับ <tt>internet</tt> ได้แล้ว ให้ <tt>login</tt> เป็น <tt>root</tt> แล้วใช้คำสั่งต่อไปนี้ ที่ <tt>console</tt><pre> cvsup -g -L 2 /var/tmp/stable-supfile </pre> ปกติงานเช่นว่านี้ ไม่ต้องเสียเวลารอ จึงนิยมทำกลางดึก พอรุ่งเช้าก็เรียบร้อย และหากเป็นการทำครั้งแรกจริงๆ อาจเปลืองเวลามาก จึงขอแนะให้ต่อ <tt>internet</tt> โดยหมุนโมเด็มใน <tt>auto mode</tt> <p>หากทุกสิ่งจบลงด้วยดี ที่ <tt>console</tt> ท่านจะพบ <pre>Finished successfully</pre>ซึ่งหมายความว่า ท่านได้ <tt>source programmes</tt> ทั้งระบบของ <b>FreeBSD</b> มาไว้ในเครื่องท่านแล้ว<br>บางที <tt>repository</tt> ที่ท่านต่อไปนั้น ยุ่งมากอาจจะตัดสายของท่านออกเสีย ในกรณีเช่นนี้ <tt>cvsup</tt> ก็รอ รอจนกว่า <tt>repository</tt> จะว่างต่อให้ท่านได้อีกครา เมื่อนั้น <tt>cvsup</tt> ก็จะดูด <tt>source programmes</tt> ต่อจนจบซึ่งท่านสามารถทราบได้จาก <tt>message</tt> ข้างบนนั้น<br>ตัวอย่างที่ผมทำคือการติดตั้งให้กับ <tt>PII 133, 32MB ram, 15 GB hdd</tt> โดยผ่าน <tt>LAN</tt> สายกลมเล็ก โมเด็มที่ใช้ความเร็วห้าสิบหกเค เวลาที่ใช้ตอนนี้สองวัน แต่เป็นสองวันของการหมุนโมเด็มด้วยมือ มิได้ตั้ง <tt>auto mode</tt> แต่อย่างไรเลย เครื่องนี้ลงทีแรกแบบ <tt>minimal</tt> </li> <li><h2><font color=#990000>making world</font></h2>ตอนนี้ก็แบ่งเป็นสองช่วง เช่นกัน <ol> <li>สร้างระบบ <tt>(make world)</tt></li> <li>สร้าง <tt>kernel (make kernel)</tt></li> </ol> ท่านจะพบกับความพิลึกพิลั่นอย่างไม่น่าเชื่อ ของงานในช่วนนี้ โดยในการสร้างระบบใหม่นั้น มีขั้นตอนดังนี้ <pre> # # 1. bootstrap-tool stage # This stage is responsible for creating programs that are needed for backward compatibility reasons. # They are not built as cross-tools. # 2. build-tool stage # This stage is responsible for creating the object tree and building any tools # that are needed during the build process. # 3. cross-tool stage # This stage is responsible for creating any tools that are needed for cross-builds. # A cross-compiler is one of them. # 4. world stage # This stage actually builds the world. # 5. install stage # This stage installs a previously built world. # </pre> เวลาที่ใช้ในตอนนี้ ขึ้นกับ <tt>memory, swap area, cpu, processes</tt> อื่นๆ สำหรับเครื่องดังกล่าวนั้น กินเวลาประมาณเก้าชั่วโมงในการสร้างระบบทั้งระบบ และประมาณชั่วโมงในการสร้าง <tt>kernel</tt> อีกตัวอย่างคือ <tt>make buildworld;make KERNCONF=Firak kernel;make install world</tt> ลงบนเครื่อง <tt>PIII 650, 160MB ram, 15GB hdd</tt> ไม่ถึงสามชั่วโมง<p>ข้อที่ดีสำหรับ <b>FreeBSD 4-stable</b> คือสามารถ <tt>make world</tt> ได้ใน <tt>multi users mode</tt> แม้กระนั้น ก็ใคร่ขอแนะนำให้มีเพียง <tt>super user</tt> เท่านั้นและ <tt>servers</tt> ต่างๆขอให้หยุดบริการชั่วขณะ ระหว่างนี้ <h3><font color=#ffff22 size="+1">make world</font></h3>ที่ <tt>console</tt> ขอให้ใช้คำสั่ง <pre>cd /usr/src make world </pre>จากนั้น ท่านใช้เวลาว่างส่วนนี้ไปทำกิจกรรมอื่นได้ ถ้า <tt>hardware</tt> ของท่านไม่ด้อยมากนัก ในที่สุดแล้ว ท่านก็จะได้ทราบเองว่า เวลา ที่ใช้ไปตอนนี้กี่ชั่วโมงที่ <tt>console</tt> เดิม <h3><font color=#ffff22 size="+1">make kernel</font></h3>ที่ <tt>console</tt> เดิมกับที่ <tt>make world</tt> ขอให้ใช้คำสั่ง <pre>cd /usr/src make kernel</pre> ขอทึกทักเอาเช่นกันว่า ไม่มี <tt>error</tt> เลยในช่วงนี้ </li> <li><h2><font color=#9900>mergemaster</font></h2>งานตอนนี้ เป็นส่วนที่เกี่ยวกับ <tt>system administration</tt> ของระบบทั้งหมด เช่น <tt>DNS, /etc/rc</tt> ฯลฯ ในตอนนี้ ท่านต้อง <tt>shutdown operating system</tt> และ <tt>reboot</tt> ขึ้นมาอีกครั้งเพื่อใช้ <tt>kernel</tt> และ ระบบใหม่ที่ท่านสร้างขึ้น <p>ที่ <tt>console</tt> เดิมกับที่ <tt>make world</tt> ขอให้ใช้คำสั่ง <pre>shutdown -r now</pre>เมื่อระบบเรียบร้อยแล้วขอให้ <tt>login</tt> เป็น <tt>root</tt> จากนั้นให้ใช้คำสั่ง <pre>mergemaster -vi</pre>เมื่อ <tt>mergemaster</tt> ถามขอให้ท่านรับทุกข้อเสนอก่อน<br> ทึกทักเอาอีกเช่นกันว่า ท่านยังไม่จัด <tt>DNS</tt> ดังนั้น แฟ้มต่างๆจึงติดตั้ง โดยอัตโนมัติ โดยไม่เสียหาย<br>เมื่อเรียบร้อยแล้วให้<pre>shutdown -r now</pre> </li> </ol> จากจุดนี้ท่านก็ได้ระบบใหม่ที่สร้างจาก <tt>source programmes</tt> ล้วนๆ อนึ่ง หากมีปัญหาในขั้นตอนใด ขอให้เปิดหน้า<a href="http://www.FreeBSD.ORG/FAQ/index.html">แฝก</a>ดูได้ <h2><font color=#9900>สรุปคำสั่งที่ใช้</font></h2><tt><ol> <li>cvsup -g -L 2 /var/tmp/stable-supfile</li> <li>cd /usr/src</li> <li>make world</li> <li>make kernel</li> <li>shutdown -r now</li> <li>mergemaster -vi</li> </ol></tt> </BODY> </HTML> --r5Pyd7+fXNt84Ff3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010911191840.A6250>