DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-23 23:29:14

pdrolet
Member
Registered: 2009-12-15
Posts: 11

Samba 3.4.5 available for DNS323 (requires ffp)

For anyone who wants Samba 3.4.5... Bob Blackwell was kind enough to get me the binaries of Samba 3.4.5 for the DNS323 (from the source code located at http://samba.org/samba/ftp/stable/samba-3.4.5.tar.gz).  This helped me solve an issue I was seeing under Windows 7.

This is not an official FFP package nor is it an Optware package.  All you need to do is to put all the files in the /ffp folder and that's it! (if you're using SWAT, you'll need to do the standard update to your /etc/services file and inetd/xinetd config).

The binary package is too big to fit as a message attachment.  It is located at http://www.patrickdrolet.com/dns323/samba-3.4.5-1.tgz (if someone knows how to upload it to this forum, please do!).

Regards,

-Patrick

Offline

 

#2 2010-02-25 00:39:08

JamesD
Member
Registered: 2009-05-23
Posts: 10

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Umm, not sure how to do this...

When I unpack the tarball on a windows machine, I see a whole directory tree with files, similar to what's already in /ffp.

I'm assuming that if I just unpack it on the 323, I might overwrite the ffp that's already there. Should I just copy manually all the files into the right folders on the 323? Or is there an untar command line switch that does this?

Jim.

ps, thanks for the files, I've been wanting to update and re-configure samba for a while now!

Offline

 

#3 2010-02-25 01:57:21

pdrolet
Member
Registered: 2009-12-15
Posts: 11

Re: Samba 3.4.5 available for DNS323 (requires ffp)

JamesD wrote:

I'm assuming that if I just unpack it on the 323, I might overwrite the ffp that's already there. Should I just copy manually all the files into the right folders on the 323? Or is there an untar command line switch that does this?

I did a "tar-zxvf" in a temp directory, then "cp -pr" into /ffp.  In retrospec, I could have done the untar straight into ffp.

Note that I had to redo my passwd file (using swat)

JamesD wrote:

ps, thanks for the files, I've been wanting to update and re-configure samba for a while now!

Kudo goes to Bob Blackwell.  I'm just the facilitator!

-Patrick

Offline

 

#4 2010-02-25 04:06:52

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Guys... That's a funplug package. Do:

funpkg -i samba-3.4.5-1.tgz

Offline

 

#5 2010-02-25 19:43:59

Isildur
Member
From: Kiev, Ukraine
Registered: 2009-01-20
Posts: 59

Re: Samba 3.4.5 available for DNS323 (requires ffp)

pdrolet, would Bob Blackwell maintain compiling new versions of samba for our devices? There is new 3.4.6 build with some important bug fixes.

Offline

 

#6 2010-02-26 01:44:30

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Isildur wrote:

Would Bob Blackwell maintain compiling new versions of samba for our devices? There is new 3.4.6 build with some important bug fixes.

I see a few things of interest in this build thus I'll commit to compiling 3.4.6. It may take a few days to make room in my schedule but I should have something ready for Sunday.

fonz If I'm able to post the build here as an attachment would you add it to your collection thus making it available to everyone?


Bob Blackwell
Pickering, ON

Offline

 

#7 2010-02-26 01:46:59

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Samba 3.4.5 available for DNS323 (requires ffp)

madpenguin wrote:

Guys... That's a funplug package. Do:

funpkg -i samba-3.4.5-1.tgz

I use the -u option rather than the -i option when upgrading from a previous version.

Code:

funpkg -u samba-3.4.5-1.tgz

Bob Blackwell
Pickering, ON

Offline

 

#8 2010-02-26 03:37:30

Isildur
Member
From: Kiev, Ukraine
Registered: 2009-01-20
Posts: 59

Re: Samba 3.4.5 available for DNS323 (requires ffp)

rcblackwell, thank you for your work. That would be great, if you will provide a new build, because there is a bug with 3.4.5 and printing in win7x64 (which is fixed in 3.4.6). Temporary I added to the conf file:

Code:

disable spoolss = Yes

and printing with this parameter works fine in x64 clients, but I don't know how it affects on stability or performance of NAS.

p.s. If this is not difficult for you, could you give us some instruction (e.g. log of your bash input) of compiling process? It is very interesting for me to know which parameters you set to be able to compile this package, to have the opportunity to recompile new versions or change some components by my hands. smile

Offline

 

#9 2010-02-27 23:38:43

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Samba 3.4.5 available for DNS323 (requires ffp)

I kinda wish people would post their build scripts as well. You guys are awfull trusting of people. What if a post-install script had this line in it?

rm -rf /mnt/HD_a2/*


If your a control freak, build scripts are the way to go anyway....

http://www.jaguarlinux.com/pub/DNS-323/

That's hosted on a 323 BTW...

Offline

 

#10 2010-02-28 15:14:49

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Isildur wrote:

rcblackwell, thank you for your work. That would be great, if you will provide a new build, because there is a bug with 3.4.5 and printing in win7x64 (which is fixed in 3.4.6). Temporary I added to the conf file:

Code:

disable spoolss = Yes

and printing with this parameter works fine in x64 clients, but I don't know how it affects on stability or performance of NAS.

p.s. If this is not difficult for you, could you give us some instruction (e.g. log of your bash input) of compiling process? It is very interesting for me to know which parameters you set to be able to compile this package, to have the opportunity to recompile new versions or change some components by my hands. smile

For the most part I follow instruction found at http://dns323.kood.org/howto:subversion:fun_plug_native when building packages for my DNS323. With a couple of changes to the PV configuration file I'm able to build the appropriate package. In this case Samba 3.4.6. I have the package built and will be passing it along to fonz as soon as I find a means to do so; the size of the package exceeds my ISP's package limits. The build was performed with these config options;

Code:

--sysconfdir=$CPREFIX/etc
--localstatedir=$CPREFIX/var
--with-piddir=$CPREFIX/var/run
--with-fhs
--with-libiconv=$CPREFIX
libreplace_cv_HAVE_IPV6=no

For those interested the build logs attached.

Last edited by rcblackwell (2010-02-28 15:45:05)


Attachments:
Attachment Icon samba-3.4.6-1.log, Size: 274,965 bytes, Downloads: 538

Bob Blackwell
Pickering, ON

Offline

 

#11 2010-03-01 16:26:53

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Samba 3.4.5 available for DNS323 (requires ffp)

madpenguin wrote:

I kinda wish people would post their build scripts as well.

Most provide build scripts. Sometimes you need to ask.
A problem with building from source on a DNS-323 is that not all packages will compile successfully on the box itself. For some packages, I need to use a qemu emulator - sadly, it's more stable.

Offline

 

#12 2010-03-01 16:34:19

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Samba 3.4.5 available for DNS323 (requires ffp)

rcblackwell wrote:

fonz If I'm able to post the build here as an attachment would you add it to your collection thus making it available to everyone?

Thanks, Bob.
Your package can be downloaded from here: http://www.inreto.de/dns323/fun-plug/0. … -packages/

Offline

 

#13 2010-03-01 20:35:01

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: Samba 3.4.5 available for DNS323 (requires ffp)

I would like to try to create a virtualbox image build environment for creation of ffp packages. With intension to share it to others. Would it be possible to create a ubuntu based emulated environment, qeumu for "native" compile?

I have managed to setup a  crosscompile environment according to wiki:howto, but it doesnt seem to be a good way creating ffp packages.

Offline

 

#14 2010-03-01 21:05:47

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Samba 3.4.5 available for DNS323 (requires ffp)

fonz wrote:

Your package can be downloaded from here: http://www.inreto.de/dns323/fun-plug/0. … -packages/

fonz was kind enough to acquire then post the necessary Samaba files for all those wishing to utilize such. They're available at the link listed above.

fonz: Thank you for assisting.

Last edited by rcblackwell (2010-03-01 21:06:17)


Bob Blackwell
Pickering, ON

Offline

 

#15 2010-03-06 01:30:12

rb338
Member
Registered: 2008-08-25
Posts: 18

Re: Samba 3.4.5 available for DNS323 (requires ffp)

What about Samba 3.5.0? It has experimental SMB2 support, would love to give that a try!

Offline

 

#16 2010-03-06 02:09:03

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Already tried. Seems to require fstab.h which I'm pretty sure is a Glibc only thing.

Offline

 

#17 2010-03-08 16:08:08

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Samba 3.4.5 available for DNS323 (requires ffp)

I've managed to install the Samba funpkg... I also went into /ffp/start and did a chmod a+x on samba.sh so it runs at boot. Do I need to disable the old samba daemon in the Gui, or does this funpkg effectively replace it upon installation?

Offline

 

#18 2010-03-08 17:54:35

Mektub
Member
From: Lisbon / Portugal
Registered: 2007-04-19
Posts: 14

Re: Samba 3.4.5 available for DNS323 (requires ffp)

indiematt wrote:

I've managed to install the Samba funpkg... I also went into /ffp/start and did a chmod a+x on samba.sh so it runs at boot. Do I need to disable the old samba daemon in the Gui, or does this funpkg effectively replace it upon installation?

You will need to kill the old samba.

On /ffp/etc/fun_plug.local, at the end I inserted:

Code:

echo "* Stopping Samba Services"

/bin/kill `pidof nmbd`
/bin/kill `pidof smbd`
sleep 3
echo 'swat 901/tcp' >>/etc/services

fun_plug.local, if it exists, will be sourced by fun_plug, I think it must be set executable.

Mektub

Offline

 

#19 2010-03-10 12:28:39

rb338
Member
Registered: 2008-08-25
Posts: 18

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Mektub, I notice you add SWAT to the services. Does it actually work? I've added the line as well, but it doesn't seem to work. I also tried running the swat command and then connect, but nothing. Anything I'm missing?

Offline

 

#20 2010-03-10 14:24:53

Mektub
Member
From: Lisbon / Portugal
Registered: 2007-04-19
Posts: 14

Re: Samba 3.4.5 available for DNS323 (requires ffp)

rb338 wrote:

Mektub, I notice you add SWAT to the services. Does it actually work? I've added the line as well, but it doesn't seem to work. I also tried running the swat command and then connect, but nothing. Anything I'm missing?

Yes, it works, and very well. You will have to connect to it through your browser like this:

Code:

http://dns323:901/

or

Code:

http://192.168.1.22:901/

Where the IP is the IP of your DNS323, or a symbolic name if you have some kind of name translation.

For this to work, since swat is started by inetd, I have inetd installed, /ffp/start/inetd.sh is set
to executable, and /ffp/etc/inetd.conf has:

Code:

swat stream tcp nowait.400 root /ffp/sbin/swat swat

Possibly you could start swat as a standalone service in the DNS323 instead of through inetd, but I didn't explore that path.

Mektub

Offline

 

#21 2010-03-14 08:51:19

deshwasi
New member
Registered: 2010-03-14
Posts: 3

Re: Samba 3.4.5 available for DNS323 (requires ffp)

thanks a lot guys for all the pointers. got everything working including swat. quick Q. i had to copy the smb.conf file from the /etc/samba to /mnt/HD_a2/ffp/etc/samba. now if i update the smb settings from the Dlink GUI/webpage which smb.conf is it updating?

hmm.. i am having problems logging in from windows with my earlier username/passwd. every time i reboot the unit the samba password is not working. can someone tell me how to fix the password file properly so it sticks upon restart? thanks

edit 2: bah! i have no clue what happened but after a few restarts of the DNS323 and a restart of my PC the SWAT interface suddenly was showing lot more options in my browser. (i probably had logged in using a diff name or something in SWAT - dont remember but this time i logged in as root) . now i could add "new" users and i added all my previous user accounts i had and now it works/sticks on reboots. i guess problem solved.

Last edited by deshwasi (2010-03-14 21:44:29)

Offline

 

#22 2010-03-19 21:51:34

jesbo
Member
From: Falls Church, VA
Registered: 2008-08-28
Posts: 101

Re: Samba 3.4.5 available for DNS323 (requires ffp)

Decided to give 3.4.6 a whirl on the DNS-323. Seems to be working fine.  Am I correct in assuming that copying the native DNS-323 smb.conf file over to the /ffp/etc/samba directory and using SWAT to maintain it is all that is needed?  I did need to add my users and passwords in through SWAT before I could access the shares under 3.4.6.  But other than that nothing unusual.


DNS-323 (H/W ver. B1) |  2 x 1 TB WD Caviar Black (Raid 1) | Corsair Flash Voyager - 16 GB USB | FW 1.08 | fun_plug 0.5

Offline

 

#23 2010-03-20 02:42:36

pdrolet
Member
Registered: 2009-12-15
Posts: 11

Re: Samba 3.4.5 available for DNS323 (requires ffp)

jesbo wrote:

Decided to give 3.4.6 a whirl on the DNS-323. Seems to be working fine.  Am I correct in assuming that copying the native DNS-323 smb.conf file over to the /ffp/etc/samba directory and using SWAT to maintain it is all that is needed?  I did need to add my users and passwords in through SWAT before I could access the shares under 3.4.6.  But other than that nothing unusual.

That's exactly what I had to do (eg: copying smb.conf and reconfiguring passwords since the password database approach seems different).

-Patrick

Offline

 

#24 2010-05-31 03:56:07

krackpot
Member
Registered: 2009-01-24
Posts: 44

Re: Samba 3.4.5 available for DNS323 (requires ffp)

I finally got the latest 3.4.6 working with the same functionality I had before on the default firmware version of Samba. I definitely do not have those crazy 100% CPU problems anymore.

Few things:
- Where is the location of the smbpasswd file? It doesn't seem to be present at /ffp/etc/samba/private/smbpasswd as seen in the SWAT interface.
- I added a new user from /usr/sbin/samba/smbpasswd -a <username> (In case there are any people out there who have been looking for it)
- Where is the log file for Samba?

Problems:
- Audio and Video now do not stream nicely over CAT5E cables. Videos will play for a few minutes before stopping (can't resume playback, as if the resource disappeared and then reappeared seconds later). Audio has constant cutting out. Audio player reports: "Network resource unreachable" randomly through a song, then starts playing the next song.

Could that be a problem with the HD possibly failing? SMART says both of my drives have "PASSED". Whatever that means.

I'm still on FW 1.04, DNS-323 (B1), using Windows 7 x64.

Thanks for the release!

Last edited by krackpot (2010-05-31 04:02:46)


DNS-323 (B1) on Alt-F 0.1B7
2x2TB WD20EARS

Offline

 

#25 2010-06-02 23:50:10

krackpot
Member
Registered: 2009-01-24
Posts: 44

Re: Samba 3.4.5 available for DNS323 (requires ffp)

A solution to the problems outlined in my last post.

It's a Master Browser issue. I followed the instructions from: http://dns323.kood.org/forum/viewtopic.php?id=5717

It seems to have solved the problem as of now.


DNS-323 (B1) on Alt-F 0.1B7
2x2TB WD20EARS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB