Commits

sam_...@153132af-62cf-4010-a92d-a597e80a4a48  committed a21bd92

add a samba server

  • Participants
  • Parent commits 37d671d

Comments (0)

Files changed (2)

File testing/oscore/build_raspbmc_rfs-raspbian.sh

 server_args = -i
 disable = no
 }">rootfs/etc/xinetd.d/ssh
+echo "service smbd
+{
+	socket_type	= stream
+	protocol	= tcp
+	wait		= no
+	user		= root
+	server		= /usr/sbin/smbd
+}
+
+service nmbd
+{
+	socket_type	= dgram
+	protocol	= udp
+	wait		= yes
+	user		= root
+	server		= /usr/sbin/nmbd
+}">rootfs/etc/xinetd.d/samba
 echo Configuring NM dispatcher
 wget http://svn.stmlabs.com/svn/raspbmc/testing/oscore/10-chrony-NM -O /etc/NetworkManager/dispatcher.d/10-chrony
 chmod +x /etc/NetworkManager/dispatcher.d/10-chrony

File testing/oscore/prep-raspbian.sh

 ">/etc/rc.local
 echo Installing FTP server
 apt-get -y install vsftpd
+echo Installing Samba server
+apt-get -y install samba samba-client
+echo "
+[global]
+    workgroup = WORKGROUP
+[pi]
+    browsable = yes
+    read only = no
+    guest ok = yes
+    path = /home/pi
+[devices]
+    browsable = yes
+    read only = no
+    guest ok = yes
+    path = /home/pi/media
+">/etc/samba/smb.conf
 echo Configuring time
 apt-get -y install chrony
 echo Installing locale support