On 02/17/2011 12:24 PM, Hal Vaughan wrote:
On Feb 16, 2011, at 10:22 PM, Bob wrote:
On 02/17/2011 06:38 AM, Hal Vaughan wrote:
8< snip system image pushed onto a CF card
rm -f /mnt/src/etc/udev/rules.d/70-persistent-net.rules
rm -f /mnt/src/etc/udev/rules.d/70-persistent-cd.rules
Thanks for this one -- I don't have the cd.rules, but do have the net.rules and
that would cause problems because of the different MAC addresses. Will the
net.rules one be regenerated on boot if it doesn't exist?
Yes.
If you want a portable system where the LAN is always eth0 then you want
to stop those files being generated,
chmod -c 644 /lib/udev/write_*
will do that but I get the impression with your project once the image
is flashed onto a card it won't be moved that much.
rm -f /mnt/src/var/lib/ntp/ntp.drift
Not even on this system. I will be installing ntp, but at a later stage.
With my system images I try to configure as much as possible before I
take the image & as I have an NTP server on my firewall I like all my
internal machines to sync off that which requires editing /etc/ntp.conf
so I do it before and have the big block of commands I'm pasting onto a
shell prompt sort it out for me. A lot of it's over kill, only some of
my system images have swap file installed but it doesn't hurt to try &
delete a non-existent file & this way the text file from which I paste
the commands is more general.
I can role out a nicely configured functional desktop image onto a
harddrive, flash card, or USB stck in under 10 minutes which is very
handy, after that all the system needs is updating (I have an apt-proxy
so that's bloody quick) & my friends old tired pox ridden winblows box
is a sprightly Squeeze workstation.
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
Almost all the ssh files will be re-configured, replaced, or deleted by the
install program. I had not thought of reconfiguring. If the other files are
deleted, what else does reconfiguring the ssh server do? (I'm actually
considering not installing ssh until the update phase, since that'll force a
new config for each system. But without ssh, if anything goes wrong, it's a
pain to have to find the USB-serial adaptor and the cable and hook it all up to
log in.)
I do it to generate new keys it may not be the most elegant way but it
works.
After that it's mainly hardware specific stuff.
Hardware isn't a real issue, other than MAC addresses, since I'm using a system
where the board hasn't changed in a while and likely won't change for a good
while, at least it likely won't change as long as I'm involved with this. So
one system should look just like the rest hardware wise.
That helps a lot, the 10 minutes quoted above doesn't take into account
bullying ALSA to play nice and use the USB webcam mic by default etc..
Also see my response in the thread "Installing Debian on USB sticks."
Been looking at that, too -- thanks for the heads up on that!
Thank you!
Hal
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d5d093d.9090...@homeurl.co.uk