ข้ามไปที่เนื้อหาหลัก

File Sharing on Ubuntu

Drive on the virtual network. Compatible with the Windows system is samba. The samba is a service that's available on Linux.

Install Samba on Ubuntu

1. Open Terminal

2. Update & Upgrade with command
- sudo apt-get update
- sudo apt-get upgrade

3. install the samba package.
- apt-get install samba

4. Configuration

The main Samba configuration file is located in /etc/samba/smb.conf. The default configuration file has a significant amount of comments in order to document various configuration directives.

5. First, edit the following key/value pairs in the [global] section of /etc/samba/smb.conf:

workgroup = EXAMPLE
...
security = user
The security parameter is farther down in the [global] section, and is commented by default. Also, change EXAMPLE to better match your environment.

6. Create a new section at the bottom of the file, or uncomment one of the examples, for the directory to be shared:

[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755

* comment: a short description of the share. Adjust to fit your needs.
* path: the path to the directory to share.

This example uses /srv/samba/sharename because, according to the Filesystem Hierarchy Standard (FHS), /srv is where site-specific data should be served. Technically Samba shares can be placed anywhere on the filesystem as long as the permissions are correct, but adhering to standards is recommended.

* browsable: enables Windows clients to browse the shared directory using Windows Explorer.
* guest ok: allows clients to connect to the share without supplying a password.
* read only: determines if the share is read only or if write privileges are granted. Write privileges are allowed only when the value is no, as is seen in this example. If the value is yes, then access to the share is read only.
* create mask: determines the permissions new files will have when created.

7. Now that Samba is configured, the directory needs to be created and the permissions changed. From a terminal enter:

sudo mkdir -p /srv/samba/share
sudo chown nobody.nogroup /srv/samba/share/

8. Finally, restart the samba services to enable the new configuration:

sudo /etc/init.d/samba restart




from : https://help.ubuntu.com/9.10/serverguide/C/samba-fileserver.html


Next page to click : How to install apache
Reverse page on click : install chillispot on ubuntu 9.10

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

map network drive ด้วย Command prompt

     บ่อยครั้งที่ต้องการใช้ทรัพยากร (เช่น โปรแกรม, ไฟล์เอกสารต่างๆ) จากเครื่องอื่นบนระบบเครือข่าย  หรืออาจจะเป็นเครื่อง Server องค์กร ที่ให้บริการ share file และมีความจำเป็นต้องใช้ไฟล์ร่วมกัน ดังนั้นการที่จะมาคอยใช้คำสั่ง ในการเข้าเครื่องอื่นนั้นค่อนข้างที่จะยุ่งยาก จึงต้องมีการ Map Drive ไว้เพื่อใช้งาน การ Map Drive บนระบบเครือข่ายนั้นก็ยังเป็นเรื่องยุ่งยากของ user ผู้ใช้งาน ซึ่งบางท่านอาจจะ Map Drive บนระบบเครือข่ายไม่เป็น ดังนั้นผมจึงมีวิธีการที่จะ Map Drive บนระบบเครือข่าย ผ่านคำสั่ง Command Prompt ของ window อย่างง่ายๆครับ สิ่งที่ต้องทราบก่อนทำการ Map Drive บนเครือข่าย 1. Drive ที่ต้องการจะ Map ควรตรวจดูใน My Computer ว่ามี Drive อะไรบ้าง และ Drive ที่แสดงใน My Computer นั้น อยู่ในสถานะไม่ว่าง จะไม่สามารถนำมา Map Drive ได้ จะได้เฉพาะที่ไม่มีโชว์เท่านั้น   ( Drive ที่มีใน My Computer จะไม่สามารถ นำมาเป็น Drive ที่เราต้องการจะ Map ได้ เช่น ในเครื่องคอมของเรามี Drive C และ Drive D ดังนั้น Drive ที่ว่างก็จะมีตั้งแต่ Drive E ไปจนถึง Drive Z เลยครับ ...

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC เมนบอร์ดเป็นแผงวงจรหลักที่สำคัญที่สุดของคอมพิวเตอร์ ดังนั้น จึงควรรู้จักตำแหน่งของอุปกรณ์ต่างบนเมนบอร์ดเสียก่อน จึงจะสามารถประกอบเครื่องคอมพิวเตอร์ได้ อุปกรณ์หลักที่สำคัญก็มีช็อกเกตสำหรับติดตั้งซีพียู, ช็อกเกตแรม และซิปเซตที่ทำหน้าที่ควบคุมอุปกรณ์ทั้งหมด หัวต่อและสล็อตสำหรับติดตั้งอุปกรณ์และการ์ดต่างๆ รวมไปถึงหัวต่อกับอุปกรณ์ภายนอกที่ต่อออกทางด้านหลังเครื่อง อุปกรณ์ที่ติดตั้งบนเมนบอร์ดได้แก่  1. ช็อกเกตซีพียู (CPU Socket) ช็อกเกตซีพียู เป็นตำแหน่งติดตั้งซีพียู โดยรูปแบบของช็อกเกตจะแตกต่างกันไปตามยี่ห้อและรุ่นของซีพียู การซื้อเมนบอร์ดจะต้องตรวจสอบว่าต้องการใช้กับซีพียูยี่ห้อใดและรุ่นไหน หากซื้อซีพียูที่มีช็อกเกตไม่ตรงกับเมนบอร์ดจะไม่สามารถใช้งานได้ ปัจจุบันจะมีช็อกเกตที่ใช้งานบนเมนบอร์ดคือ Intel LGA 775,  Intel LGA 1150, Intel LGA 1151, Intel LGA1155 และ Intel LGA 2066 ใช้สำหรับซีพียู Intel ทั้งหมด แต่ต้องดูด้วยว่า ซีพียู อินเทลใดใช้ช็อกเกตเท่าไหร่ ส่วน AMD AM4, AMD sTRX4 และ AMD TR4 จะใช้สำหรับ CPU AMD เท่านั้นซึ่งก็เหมือนกับ...

รวม Code Debug Card Mainboard

รวม Code Debug Card Mainboard สำหรับช่างซ่อมคอมมือใหม่ที่มีเครื่องมือ Debug Card เป็นตัวช่วยแล้ว บางครั้งอาจจะไม่รู้ว่าค่า Error Code นั้นคืออะไร ผมได้สืบหาข้อมูลและเขียนเพื่อเตือนความจำของตนเองไว้ เพราะไม่ค่อยได้ใช้ตัว Debug Card นี้เช่นกัน นานๆครั้งมาใช้นั้น ค่อนข้างที่จะค้นหาข้อมูลอย่างลำบากเช่นกัน ผมจึงได้รวบรวมข้อมูลมาจากเว็บที่หาข้อมูลได้ ขอขอบคุณเจ้าของข้อมูลด้วยครับ CODE : ความหมาย 00 : ไม่มีสัญญาณให้เช็ค CPU หรือลองหา CPU ตัวใหม่มาเปลี่ยนดูครับ 01 : CPU TEST รอบที่ 1 02 : CPU TEST รอบที่ 2 04 : TEST Memory รีเฟรช ของอุปกรณ์ ต่าง ๆ  05 : Key board controller อาจมีปัญหา 07 : BIOS battery อาจจะหมด 0B : TEST cmos checksum 0D : เช็ค VGA CARD Interface C0 : ทดสอบหน่วยความจำและ slot(ลองฉีด สเปรย์สารพัดพิษดูครับ) 0E : เช็คหน่วยความจำ VGA(ลองหาตัวใหม่มาเปลี่ยนดูครับ)  11 :อาจมีปัญหาที่ DMA controller 41 : ให้ตรวจสอบ FLOPPY Drive 42 : .ให้ตรวจสอบ HARD DISK 43 : ค้นหาและตรวจสอบ serial และ parallel port 45 : ให้เช็ค Mainboard ว่าเข้า...