Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
From: Robert Bradley <robert.bradley1@gmail.com>
To: "<cerowrt-devel@lists.bufferbloat.net>"
	<cerowrt-devel@lists.bufferbloat.net>
Subject: Re: [Cerowrt-devel] [Bloat] Sharing Windows Files from wired to wireless (3.7.5-2)
Date: Fri, 21 Jun 2013 17:47:46 +0100	[thread overview]
Message-ID: <CAA=Zby5q5MnPq_dGxM4GZ4OdjZ18FRxJM8UNMLREMmG60CuAgA@mail.gmail.com> (raw)
In-Reply-To: <CAK-n8j5vs_2oPR_rD4L7Gq7GqT3c9TY4mmA6gMS7a6D2L2fpLQ@mail.gmail.com>

On 20 June 2013 02:31, Jim Reisert AD1C <jjreisert@alum.mit.edu> wrote:
> I made the changes to smb.conf.template that Robert Bradley
> recommended and rebooted the router.
>
> OOOoooohhhh!!  I can see the shared desktop file systems from the
> wireless Windows 7 machine!!!!
>

It's probably worth seeing then if we can get "reset on zero vc = no"
added to the default smb.conf.template.  It might also be worth
pointing out the changes needed for multiple routers too, since only
one can be the WINS server (secondary routers have "wins support=no"
and "wins server=172.30.x.x" in smb.conf.template, and
/etc/config/dhcp entries use "44,172.30.x.x" instead of "44,0.0.0.0").

I also have a patch to luci-app-samba that allows you to set the
listening interfaces via the UI:

diff --git a/applications/luci-samba/luasrc/model/cbi/samba.lua
b/applications/luci-samba/luasrc/model/cbi/samba.lua
index 9152637..d5294b5 100644
--- a/applications/luci-samba/luasrc/model/cbi/samba.lua
+++ b/applications/luci-samba/luasrc/model/cbi/samba.lua
@@ -28,6 +28,15 @@ s:taboption("general", Value, "homes",
translate("Share home-directories"),
         translate("Allow system users to reach their home directories via " ..
                 "network shares"))

+net = s:taboption("general", Value, "interface", translate("Served
interfaces"))
+net.template = "cbi/network_netlist"
+net.widget   = "checkbox"
+net.nocreate = true
+
+function net.cfgvalue(self, section)
+        return m.uci:get("samba", section, "interface")
+        end
+
 tmpl = s:taboption("template", Value, "_tmpl",
     translate("Edit the template that is used for generating the
samba configuration."),
     translate("This is the content of the file
'/etc/samba/smb.conf.template' from which your samba configuration
will be generated. " ..

-----

Unfortunately, I expect Gmail will mangle the lines in that patch, but
it should be easy enough to fix.  The CeroWRT version of the file is
at /usr/lib/lua/luci/model/cbi/samba.lua if anyone wants to try adding
this manually.  For this to have any effect on Samba, you will need to
restore/uncomment the original "interfaces = |INTERFACES|" line in
smb.conf.template that my previous template set manually.
--
Robert Bradley

      parent reply	other threads:[~2013-06-21 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAK-n8j4DsVAi0BbSxA4RfzPPfGy63kKzcV3-rzJiSe8TEvkqTQ@mail.gmail.com>
     [not found] ` <CAA93jw7f-Z1gbLDmVqF_qnz5XprkyWrHW5USV+j+NP7d76U=pg@mail.gmail.com>
     [not found]   ` <CAK-n8j7vaPM60mP5BGJr77EL2mSSddQQqF3PsxW+ukYU35yTgA@mail.gmail.com>
     [not found]     ` <CAA93jw5VrBMGjrXT97avoNzc=rnaV_rn8LMq1pPPaW1qcu=YTw@mail.gmail.com>
     [not found]       ` <CAA=Zby42SQ67+3O-KB_PXiq=uPCy_QNQR4gPe-+=4TzNGjtDUA@mail.gmail.com>
     [not found]         ` <CAK-n8j7w=GgAX8kx7JFrL8zvjTmmAkHY42H9bVe-GRvhLi=XRw@mail.gmail.com>
2013-06-20  1:31           ` [Cerowrt-devel] Fwd: " Jim Reisert AD1C
2013-06-20  1:35             ` [Cerowrt-devel] " Jim Reisert AD1C
2013-06-21 16:47             ` Robert Bradley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA=Zby5q5MnPq_dGxM4GZ4OdjZ18FRxJM8UNMLREMmG60CuAgA@mail.gmail.com' \
    --to=robert.bradley1@gmail.com \
    --cc=cerowrt-devel@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox