|
14.
|
|
|
One of the most common ways to network Ubuntu and Windows computers is to configure Samba as a File Server. This section covers setting up a <application>Samba</application> server to share files with Windows clients.
|
|
|
|
หนึ่งในวิธีที่ง่ายที่สุดเพื่อให้เครื่องอูบุนตูและวินโดว์ทำงานร่วมกันได้คือการติดตั้งแซมบ้าเป็นไฟล์เซิร์ฟเวอร์ ส่วนนี้จะอธิบายวิธีการติดตั้งและตั้งค่าต่างๆของ <application>Samba</application> ให้แชร์ไฟล์กับเครื่องลูกข่ายวินโดว์
|
|
Translated and reviewed by
Sukit Arseanrapoj
|
In Ubuntu: |
|
หนึ่งในวิธีที่ง่ายที่สุดที่จะจัดการเครือข่ายให้เครื่อง Ubuntu และ Windows ทำงานร่วมกันได้ คือการติดตั้ง Samba เป็นไฟล์เซิร์ฟเวอร์ เนื้อหาส่วนนี้จะอธิบายวิธีการติดตั้งและการตั้งค่าของ <application>Samba</application> ให้แบ่งปันแฟ้มกับเครื่องลูกข่าย Windows
|
|
|
Suggested by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:72(para)
|
|
15.
|
|
|
The server will be configured to share files with any client on the network without prompting for a password. If your environment requires stricter Access Controls see <xref linkend="samba-fileprint-security"/>
|
|
|
|
เครื่องเซิร์ฟเวอร์จะตั้งค่าให้แบ่งปันแฟ้มให้เครื่องลูกข่ายทุกเครื่องโดยไม่ถามรหัสผ่าน ถ้าคุณต้องการให้เครือข่ายรักษาความปลอดภัยเคร่งคัดกว่านี้ กรุณาดู <xref linkend="samba-fileprint-security"/>
|
|
Translated and reviewed by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:77(para)
|
|
16.
|
|
|
Installation
|
|
|
|
การติดตั้ง
|
|
Translated and reviewed by
Sukit Arseanrapoj
|
|
|
|
Located in
serverguide/C/windows-networking.xml:83(title) serverguide/C/windows-networking.xml:288(title) serverguide/C/windows-networking.xml:1317(title) serverguide/C/web-servers.xml:41(title) serverguide/C/web-servers.xml:675(title) serverguide/C/web-servers.xml:816(title) serverguide/C/web-servers.xml:940(title) serverguide/C/vpn.xml:33(title) serverguide/C/virtualization.xml:62(title) serverguide/C/virtualization.xml:2014(title) serverguide/C/vcs.xml:28(title) serverguide/C/vcs.xml:86(title) serverguide/C/vcs.xml:405(title) serverguide/C/remote-administration.xml:52(title) serverguide/C/remote-administration.xml:233(title) serverguide/C/network-config.xml:937(title) serverguide/C/network-auth.xml:52(title) serverguide/C/network-auth.xml:1590(title) serverguide/C/network-auth.xml:2102(title) serverguide/C/network-auth.xml:2493(title) serverguide/C/monitoring.xml:42(title) serverguide/C/monitoring.xml:428(title) serverguide/C/mail.xml:40(title) serverguide/C/mail.xml:496(title) serverguide/C/mail.xml:674(title) serverguide/C/mail.xml:823(title) serverguide/C/mail.xml:1315(title) serverguide/C/lamp-applications.xml:108(title) serverguide/C/lamp-applications.xml:287(title) serverguide/C/lamp-applications.xml:423(title) serverguide/C/installation.xml:13(title) serverguide/C/installation.xml:957(title) serverguide/C/file-server.xml:347(title) serverguide/C/file-server.xml:462(title) serverguide/C/dns.xml:23(title) serverguide/C/databases.xml:40(title) serverguide/C/databases.xml:164(title) serverguide/C/chat.xml:37(title) serverguide/C/chat.xml:141(title) serverguide/C/backups.xml:593(title)
|
|
17.
|
|
|
The first step is to install the <application>samba</application> package. From a terminal prompt enter:
|
|
|
|
ขั้นแรก คุณต้องติดตั้งแพกเกจ <application>samba</application> ป้อนคำสั่งในเทอร์มินัล:
|
|
Translated and reviewed by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:85(para)
|
|
18.
|
|
|
sudo apt-get install samba
|
|
|
|
sudo apt-get install samba
|
|
Translated and reviewed by
Sukit Arseanrapoj
|
|
|
|
Located in
serverguide/C/windows-networking.xml:90(command) serverguide/C/windows-networking.xml:300(command)
|
|
19.
|
|
|
That's all there is to it; you are now ready to configure Samba to share files.
|
|
|
|
เท่านี้คุณก็พร้อมที่จะตั้งค่า Samba ให้แบ่งปันแฟ้มได้แล้ว
|
|
Translated and reviewed by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:93(para)
|
|
20.
|
|
|
Configuration
|
|
|
|
การตั้งค่า
|
|
Translated and reviewed by
Sukit Arseanrapoj
|
|
|
|
Located in
serverguide/C/windows-networking.xml:99(title) serverguide/C/windows-networking.xml:305(title) serverguide/C/web-servers.xml:61(title) serverguide/C/web-servers.xml:726(title) serverguide/C/web-servers.xml:827(title) serverguide/C/web-servers.xml:967(title) serverguide/C/web-servers.xml:1067(title) serverguide/C/vpn.xml:138(title) serverguide/C/virtualization.xml:2088(title) serverguide/C/vcs.xml:39(title) serverguide/C/vcs.xml:423(title) serverguide/C/remote-administration.xml:74(title) serverguide/C/remote-administration.xml:258(title) serverguide/C/package-management.xml:387(title) serverguide/C/network-config.xml:959(title) serverguide/C/network-auth.xml:2141(title) serverguide/C/network-auth.xml:2514(title) serverguide/C/monitoring.xml:187(title) serverguide/C/monitoring.xml:454(title) serverguide/C/mail.xml:505(title) serverguide/C/mail.xml:684(title) serverguide/C/mail.xml:908(title) serverguide/C/mail.xml:1344(title) serverguide/C/lamp-applications.xml:128(title) serverguide/C/lamp-applications.xml:314(title) serverguide/C/lamp-applications.xml:453(title) serverguide/C/file-server.xml:360(title) serverguide/C/file-server.xml:488(title) serverguide/C/dns.xml:39(title) serverguide/C/databases.xml:84(title) serverguide/C/databases.xml:183(title) serverguide/C/clustering.xml:47(title) serverguide/C/chat.xml:57(title) serverguide/C/chat.xml:153(title) serverguide/C/backups.xml:616(title)
|
|
21.
|
|
|
The main Samba configuration file is located in <filename>/etc/samba/smb.conf</filename>. The default configuration file has a significant amount of comments in order to document various configuration directives.
|
|
|
|
แฟ้มการตั้งค่าหลักของ Samba อยู่ที่ <filename>/etc/samba/smb.conf</filename> แฟ้มการตั้งค่าปริยายนั้นเต็มไปด้วยคำอธิบายและข้อเสนอแนะเพื่ออธิบายวัตถุประสงค์ของแต่ละคำสั่ง
|
|
Translated and reviewed by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:101(para)
|
|
22.
|
|
|
Not all the available options are included in the default configuration file. See the <filename>smb.conf</filename><application>man</application> page or the <ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/">Samba HOWTO Collection</ulink> for more details.
|
|
|
|
ไม่ใช่ทุกตัวเลือกของการตั้งค่าจะรวมอยู่ในแฟ้มตั้งค่าปริยาย ดูที่ <filename>smb.conf</filename><application>man</application> page หรือที่ <ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/">Samba HOWTO Collection</ulink> สำหรับรายละเอียดเพิ่มเติม
|
|
Translated and reviewed by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:106(para)
|
|
23.
|
|
|
First, edit the following key/value pairs in the <emphasis>[global]</emphasis> section of <filename>/etc/samba/smb.conf</filename>:
|
|
|
|
ขั้นแรก แก้ไขค่าเหล่านี้ในหมวด <emphasis>[global]</emphasis> ของแฟ้ม <filename>/etc/samba/smb.conf</filename>:
|
|
Translated and reviewed by
SiraNokyoongtong
|
|
|
|
Located in
serverguide/C/windows-networking.xml:116(para)
|