[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cleaning DHCP and Host Info for New LAN



On 16/02/11 22:38, Hal Vaughan wrote:
I'm working with some embedded systems where the OS will be Squeeze on a CF card.  The idea is to have a basic setup that will be stored in a zip file and when it's time to create a new system, the files will be unzipped onto a new CF card, then the card will be put in a new system.

Of course to do this, I have to start with a base system or prototype and I don't want the info for my LAN or anything else like that to be passed on or left in the file system of the newer systems.  When the new CF card is put into each new system and it is turned on, there's a command that will make the new system automatically download a config program that will make all needed changes to the embedded computer.

That leads to the question, "What do I change?"  I'll be changing the host name, which is in /etc/hostname and /etc/hosts.  I also need to change the host name in /etc/exim4/update-exim4.conf.conf and in /etc/mailname.  The user names in passwd and so on don't need changing, since each system has the same user name.

I also know the domain is specified in /etc/resolv.conf.  But if I'm getting the info for a network connection through DHCP, won't they be overwritten once the info comes in from the DHCP?

Are there other files where I'd have to change the values so the new system doesn't contain references to the original LAN or host name or any other similar info?

I'm not worried about files that will be re-written on the first boot (like anything dhclient or any DHCP stuff will re-write once it's on a new LAN), but I'd like to know if I'm missing any info that I need to erase or change.

I'm not sure, but I think most of the info would be related to DNS or DHCP.

Thanks for any info on this.



Hal



Two small questions.

1) Why do you need exim? you could consider ssmtp although you still need to make sure /etc/ssmtp/ssmtp.conf has the correct stuff in for your needs (it needs to know the mail hub to send mail to and it needs to know the domain name mail needs to seem to come from)

2) Your /var files will have loads of evidence of where the device has been. What are doing about that. I'm thinking about /var/log stuff but also thinks like previous dhcp leases which are stored there.



--
Alan Chandler
http://www.chandlerfamily.org.uk


Reply to: