Linux (Ubuntu) in Windows #3 Cygwin

Cygwin is a Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.”

Cygwin ไม่ใช่ Linux จริง ๆ แต่เป็นชุดโปรแกรมที่ทำให้เราใช้คำสั่ง Linux บน Windows ได้

วิธีติดตั้ง
1.Download ตัวติดตั้งจาก www.cygwin.com ตัวล่าสุด ตอนที่เขียนนี่ก็ รุ่น 1.5.25-15
2.เสร็จแล้วก็ทำการติดตั้ง โดยเลือกว่าจะเอาแบบไหน

ถ้าเพิ่งทำครั้งแรก ก็เลือกอันแรกหรืออันที่สองเพื่อ download packages ต่าง ๆ แต่ถ้าได้ download มาแล้วก็เลือกอันที่สาม
3.จากนั้นก็เลือก Directory ที่จะติดตั้งแล้วเลือก web ที่จะ download แล้วก็เลือก packages ถ้ารู้ว่าอันไหนคืออะไร ถ้าไม่รู้ก็เลือกหมดเลยก็ได้ โดยคลิกเปลี่ยนให้เป็น Install

4.พอเลือกเสร็จแล้วก็ไปนอนรอได้เลย ยิ่งถ้าเลือกหมด ก็จะใช้เวลามิใช่น้อย
ถ้าเลือกอันแรก พอ download เสร็จก็ install ต่อให้เลย (ไฟล์ที่ download มาจะอยู่ใน folder ซึ่งเป็นชื่อ web ที่เลือก แนะนำให้เก็บไว้ก่อน เผื่อต้องใช้อีก) เรียบร้อยแล้ว ก็ลอง run ดู จะได้ prompt เป็นชื่อ user๑ชื่อเครื่อง

ลอง cd .. ดูเรื่อย ๆ พบว่า ถ้าลงไว้ที่ C:\Cygwin ตำแหน่งของ home จะอยู่ใน C:\Documents and Settings\
แต่ถ้าลงไว้ที่อื่น เ่ช่น drive d: ตำแหน่งของ home จะอยู่ในตำแหน่งที่เราติดตั้ง Program ไม่รู้ว่าท่านอื่นจะเป็นเหมือนกันหรือเปล่า
ไม่ได้สำคัญอะไร แต่ก็มีผลอยู่บ้างเรื่องความสะดวกเวลาจะจัดการไฟล์ แล้วเดี๋ยวค่อยว่ากันต่อไปครับ

Written by admin on November 21st, 2008 with 1 comment.
Read more articles on Ubuntu.

Related articles

1 comment

Read the comments left by other users below, or:

Trackback Mention from Komkid.net
#1. November 27th, 2008, at 9:51 PM.

Linux (Ubuntu) in Windows #4 Ubuntu Desktop: « Linux (Ubuntu) in Windows #3 ...

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:

You have to be identified to write a comment.