How 2 setup Samba on Linux Mint 9
คัดลอกมาจาก : http://noistuff.wordpress.com/2010/06/13/samba-on-linux-mint-9/ นำมาแปะที่นี่ด้วย เผื่อเป็น mirror ให้กันยามมีคนต้องการค้นหา :)
I. การติดตั้ง
ขั้นแรกดาวน์โหลด system-config-samba ที่
http://mirror1.ku.ac.th/ubuntu/pool/universe/s/system-config-samba/system-config-samba_1.2.63-0ubuntu4_all.deb
ติดตั้ง ด้วยคำสั่ง
sudo dpkg -i system-config-samba_1.2.63-0ubuntu4_all.deb
ติดตั้ง libuser เพิ่มเติมด้วยคำสั่ง
sudo apt-get install libuser
ถ้าหาก มีข้อความแจ้งว่าเกิดปัญหาขณะดาวน์โหลด และแนะนำให้เราแก้ไขด้วย apt-get -f install ก็ใช้คำสั่งนี้
sudo apt-get -f install
เมื่อ ทุกอย่างก็ถูกติดตั้งเรียบร้อย พร้อมใช้งาน สามารถเรียกโปรแกรมขึ้นมาทำงานด้วย gui โดยไปที่
System -> Administration -> Samba
จากนั้นทำตามขั้นตอนต่อไปนี้
II. การปรับแต่ง







จากนั้นสั่ง restart samba หนึ่งครั้ง ด้วยคำสั่ง sudo /etc/init.d/smbd restart (ตามรูปด้านล่าง)

samba ถูก restart แล้ว

และทำให้โฟลเดอร์ที่เราต้องการแชร์สามารถอ่านและเขียน ได้จากทุกคน ด้วยคำสั่ง sudo chmod 777 -R /home/usre/folder/ (ดูรูปข้างล่างประกอบ)

คราวนี้ก็ไปที่เครื่อง Windows XP แล้วพิมพ์ \\หมายเลข IP ของ smb server\โฟลเดอร์ที่แชร์ไว้ เหมือนรูปข้างล่างนี้

เรียบร้อยแล้ว โชคดีครับ :)
I. การติดตั้ง
ขั้นแรกดาวน์โหลด system-config-samba ที่
http://mirror1.ku.ac.th/ubuntu/pool/universe/s/system-config-samba/system-config-samba_1.2.63-0ubuntu4_all.deb
ติดตั้ง ด้วยคำสั่ง
sudo dpkg -i system-config-samba_1.2.63-0ubuntu4_all.deb
ติดตั้ง libuser เพิ่มเติมด้วยคำสั่ง
sudo apt-get install libuser
ถ้าหาก มีข้อความแจ้งว่าเกิดปัญหาขณะดาวน์โหลด และแนะนำให้เราแก้ไขด้วย apt-get -f install ก็ใช้คำสั่งนี้
sudo apt-get -f install
เมื่อ ทุกอย่างก็ถูกติดตั้งเรียบร้อย พร้อมใช้งาน สามารถเรียกโปรแกรมขึ้นมาทำงานด้วย gui โดยไปที่
System -> Administration -> Samba
จากนั้นทำตามขั้นตอนต่อไปนี้
II. การปรับแต่ง







จากนั้นสั่ง restart samba หนึ่งครั้ง ด้วยคำสั่ง sudo /etc/init.d/smbd restart (ตามรูปด้านล่าง)

samba ถูก restart แล้ว

และทำให้โฟลเดอร์ที่เราต้องการแชร์สามารถอ่านและเขียน ได้จากทุกคน ด้วยคำสั่ง sudo chmod 777 -R /home/usre/folder/ (ดูรูปข้างล่างประกอบ)

คราวนี้ก็ไปที่เครื่อง Windows XP แล้วพิมพ์ \\หมายเลข IP ของ smb server\โฟลเดอร์ที่แชร์ไว้ เหมือนรูปข้างล่างนี้

เรียบร้อยแล้ว โชคดีครับ :)
0 Comments:
แสดงความคิดเห็น
<< Home