One possible solution is just to hard code your machines¹ IP addresses. You
only have 4, so set them all with static ip addresses and then use
/etc/hosts. Set the wireless and wired IP addresses to be the same; you only
use one at a time, right? I would hate to see you use Samba just for some
sort of name resolution just for 4 machines. Yes, it is a little
inconvenient when traveling with the laptop. My Mac has profiles for
different network locations, not sure if Windows has that or not. Otherwise
you will just have to remember to change it back to DHCP when mobile.

Another possible solution is to set up static arp entries on the backuppc
server, and then still use /etc/hosts. I think that you can have multiple
mac addresses associated with a single IP address (statically), but be
careful because this could cause strange things on the network, especially
if you are doing routing or something else with the BPC server. So what you
would do is something like this:

arp -s 10.0.1.5 00:1b:63:f1:86:3c (wired MAC address)
arp -s 10.0.1.5 00:1b:63:f1:86:5c (wireless MAC address)

Then in /etc/hosts:

10.0.1.5 myLaptop

Then you use the machine name in backuppc for backups. Don¹t forget to make
the arp entries persistent, whether that is with a flag or by setting up a
script that is ran at boot time.

Rod



On 9/28/07 1:27 PM, "Jack Coats" <[EMAIL PROTECTED]> wrote:

> You are on the right track.  I would suggest enable samba network
> sharing but first, go in and edit your smb.conf (/etc/samba/smb.conf on
> my machine) to disable all of the open network sharing. ... share only
> what you want, if anything).  The important thing is that samba is
> running so it could be detected by your backuppc server.
> 
> Other folks, please speak up in case I am spouting information 'from
> where I do not know' :)
> 
> On Fri, 2007-09-28 at 19:15 +0200, Sébastien Barthélemy wrote:
>> > Le vendredi 28 septembre 2007 à 09:55 -0500, Jack Coats a écrit :
>>> > > yes, expounded upon :) --- my wife gets on my case for answering the
>>> > > question she asked rather than what she meant!
>>> > > 
>>> > > the facility to detect a machine by name rather than just IP works well.
>>> > > I would just try it first.  Don't put the laptop in your /etc/hosts
>>> > > files, and see it you can get to it from the server using nmblookup. (I
>>> > > forget the full syntax right now, sorry)
>> > 
>> > Thank you for your suggestion,
>> > 
>> > nmblookup does work for a windows computer but not for my ubuntu laptop
>> > (nor for a MacOS X laptop I tried a few month ago).
>> > 
>> > Is there a simple and secure way to enable such reply ? (if yes, what is it
>> ?) Will it work on mac ?
>> > 
>> > (I'm rather suspicious on that topic: last time I enabled samba sharing on
>> ubuntu, people where able to see all the computer user names)
> 
>> > 
>> > 
>> > cheers 
>> > 
>> > 
>> > 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to