Prerequisite: Samba has to be installed and I suppose that the hostname of your PC is MyPC.
Create a directory in /media
sudo mkdir /media/DVD
Modify /etc/fstab by adding this line:
/dev/sr0 /media/DVD iso9660 defaults,noauto,ro,user,uid=1000,gid=1000 0 0
(one line)
Add (or check if it is already there) those lines in /etc/samba/smb.conf
[DVD-ROM]
path = /media/DVD
browseable = yes
read only = yes
guest ok = yes
locking = no
preexec = /bin/mount /media/DVD
postexec = /bin/umount /media/DVD
writable = no
Reread /etc/fstab
sudo mount -a
(ignore the errors that appears: it attempts to mount some already mounted devices)
Restart Samba
sudo service smbd restart
Put a DVD/CD into the drive and check the share:
in MAC
Finder > Go > Connect to Server...
type: smb://MyPC and press enter
Select Guest as user name
in Windows
Open the File Explorer
type \\MyPC and press enter
No comments:
Post a Comment