In (hopeful) preparation of running mythmusic I got samba working (specifically smbmount).
Here's how:
Downloaded the latest samba release & just had to edit souce/client/smbmount.c & source/client/smbmnt.c & added these lines right below the line:
#include <mntent.h>
/* I added these */
#undef MOUNTED
#define MOUNTED "/var/mtab"
That's it! Unfortunately 'MOUNTED' which is defined in <mntent.h> points to /etc/mtab but
since /etc is read-only in mini-myth I had to point it somewhere else that is writable.
I wish there was a cleaner way but alas it's not a compile time option where to put this
lockfile (no it's not the same as 'lock directory' in smb.conf).
Anyhoo compiled away & copied 'smbmount' to <minimyth root>/usr/bin & 'smbmnt' to minimyth root>/usr/sbin & made sure I had these libraries:
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40023000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40051000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40062000)
libdl.so.2 => /lib/libdl.so.2 (0x40076000)
libc.so.6 => /lib/libc.so.6 (0x40079000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (
(which I think I already did have them)
& booted up my minimyth &:
# smbmount \\\\boppo\\share /data
& boom there it was!
(Of course I made the /data directory too in my mini-myth distro filesystem)
Larry if you want to host the files 'smbmount' & 'smbmnt' that I made I'd gladly upload them
to you....
On to mythmusic!!
Mark
samba!!
Moderator: Pablo