管理→コマンド実行

実行コマンドの窓に

###SAMBA
# Stop samba service
killall smbd
killall nmbd
sleep 2

# Configure samba
mkdir -p /tmp/etc/samba
echo "
local master = no
os level = 1
preferred master = no
wins support = yes
" > /tmp/etc/samba/smb.conf

# Start samba service
SMBOPTIONS="-s /tmp/etc/samba/smb.conf"
/usr/sbin/smbd $SMBOPTIONS
/usr/sbin/nmbd $SMBOPTIONS

と書いて、起動時スクリプトとして保存