Hi, gcm.
Yep, you're right; that IS a wee bit confusing. .! I'll try to elucidate further.
The set-up I'm using for all my Pups utilises a
separate database, which lives in a small partition that I set up just
for that purpose; however, these are all on the same hard drive. (See attachment; small partition sda6, labelled 'Common Data'). OK, 5 GB is huge for what it is, but I've got plenty of disk space to play with; the 25 GB I've set for each Pup's partition is over the top, as well...
The original trial, in Tahrpup, took 'bitmeter.db.
new' from /var/lib/bitmeter, copied it over to sda6, and then renamed it to 'bitmeter.db', yes? The original 'bitmeter.db' in/var/lib/bitmeter was then deleted, and the version in sda6 that had just been re-named, was then sym-linked
back to /var/lib/bitmeter to take its place.
With each subsequent Pup, after installing 'BitmeterOS 0.8.0' I then simply deleted its 'bitmeter.db' from /var/lib/bitmeter , and sym-linked to sda6's 'bitmeter.db' instead.....still with me? This is all standard for the trials we carried out.
--------------------------------------------------------------------------------------
Where Samba comes into it, well..... I've been using rcrsn51's Samba-TNG .pet for quite a while now.
http://www.murga-linux.com/puppy/viewtopic.php?t=60204
As part of its functionality, he's also provided an 'auto-start' .pet, that, in addition to starting Samba itself, will
also mount any remote drives that you may wish to use as shares, ok? I'm pretty certain
you understand all this stuff about Samba, since you've done a thread on it yourself.
To use the remote database for
all BitMeterOS installs, sda6 needs to be auto-mounted at boot.....because otherwise, Geoffrey's xbitmeter script won't function. Having already got the automount functionality provided as part of Samba-TNG, rather than mess around with /etc/fstab, I've simply added a line to the autostart .pet to automount sda6 along with everything else that I use in Samba.....but it's not set-up as a 'share' in 'smb.conf'.
In the best traditions of Puppy, and adapting my own circumstances to fit the task at hand, I've simply made use of something that already existed.....thus keeping everything as simple as possible. And it works
very well indeed.
Hope that clarifies things a bit further. I'm
still trying to figure out how to use Samba to link the BitMeterOS install on the old Dell 1100 laptop into the separate, 'common' database on the big Compaq.....because we're now talking about two
physically separate machines, although still using a common LAN.....and therefore using the same, monthly broadband allowance via the one router.
Got any ideas on that one? Any tips would be appreciated. Geoffrey's already proved, after I suggested it way back in the thread, that delays help with the xbitmeter script, since, as we all know, network connection, even on eth0, is
not instantaneous. And Geoffrey simply adapted something that
mavrothal had already developed... We all help each other out, don't we? What goes around, comes around again.....
What do you reckon?
Regards,
Mike.