Samba
Aus VDR Wiki
Version vom 10. April 2005, 22:04 Uhr von Ulf (Diskussion | Beiträge)
Inhaltsverzeichnis |
Einleitung
Mit Samba kann man Verzeichnisse eines Rechners (z.B. des VDR) als Netzwerkfreigaben zu Verfügung stellen. Wer beispielsweise mit seinem Windows-Rechner an die Daten des VDR kommen möchte, der ist hier richtig.
Installation
cd $SOURCEDIR
tar xzvf samba-latest.tar.bz2
mkdir -p /etc/samba \
/var/lock/samba
cd /samba-<VERSION>/source
./configure --prefix=/usr/local \
--bindir=/usr/local/bin \
--sbindir=/usr/local/sbin \
--libdir=/etc/samba \
--sysconfdir=/etc/samba \
--with-smbmount
make
make install
/etc/samba/smb.conf
[global]
workgroup = WORKGROUP
encrypt passwords = yes
security = user
getwd cache = yes
[video]
path = /video
comment = /video
browseable = yes
read only = no
directory mask = 0775
create mask = 0755
[mp3]
path = /mp3
comment = /mp3
browseable = yes
read only = no
directory mask = 0775
create mask = 0755
Weitere sinnvolle Ergänzungen an der smb.conf:
[root] comment = Administration path = / writeable = yes public = yes create mode = 0755 #veto files = /.*/.?/ force user = root force group = root [media] comment = Media (Mplayer, MP3 usw) path = /media writeable = yes public = yes create mode = 0755 force user = root force group = root
Jetzt die neue smb.conf testen, ob alles i.O. ist
root# testparm /etc/samba/smb.conf
So jetzt noch einen Samba-User anlegen. Die User müssen in der Datei /etc/passwd des Systems existieren.
root# smbpasswd -a user
Jetzt erstmal Samba von Hand starten.
root# smbd root# nmbd
Mit smbclient -L localhost kann man erstmal nachgesehen ob Samba richtig arbeitet.
Probleme
- Wenn beim Zugriff eines WinXP PCs auf eine Sambafreigabe der PC einige Minuten einfriert, sollte der WebClient-Dienst in den Windows-Diensten abgeschaltet werden.
Links
| [1] | http://us1.samba.org/samba |