Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #166637

change hostname & static IP & ???

From ken <gebser@mousecar.com>
Newsgroups linux.debian.user
Subject change hostname & static IP & ???
Date 2016-04-12 01:10 +0200
Message-ID <rmT7X-5oR-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

This is on Wheezy for a Raspberry Pi.

Using dd, I copied the SD card for one (nicely working and configured) 
system onto another SD card.  I want to use this second card for another 
system, so need to change the hostname and (static) IP address.  
Yesterday I grepped the whole system for one and then the other and 
where I found either, I made appropriate changes (i.e., previous 
hostname to new hostname, previous IP address to new IP address).  I 
also zeroed out all text-based files in /var/log/ (e.g., >messages), 
just to start the new system with clean logs.

Both the previous (still running) system and the new one (not yet 
running) are to be on the same LAN, so I'm pretty certain that no other 
networking configuration-- like broadcast or netmask-- needs to be 
touched (how could it need any?).

Neither of these systems has any public-facing services currently running.

My concerns are these:

Only files which grep could find were amended. (Note that grep was run 
on the card when it was mounted on another system, not when the system 
on that card was booted and running.)  Is there a file of some kind, 
perhaps, which encodes either the hostname and/or IP address in such a 
way that would hide it/them from grep?

Since people are supposed to be able (I think, never done) to take an SD 
out of one RPi and put and boot it in another RPi (with the same 
hardware), I didn't make any attempt to find and change any hardware 
designations, like the MAC address of the NIC.  Is that okay?

Is there anything I'm missing or forgetting?


tia for fullohelp tips.

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

change hostname & static IP & ??? ken <gebser@mousecar.com> - 2016-04-12 01:10 +0200
  Re: change hostname & static IP & ??? David Wright <deblis@lionunicorn.co.uk> - 2016-04-12 03:40 +0200
    Re: change hostname & static IP & ??? <tomas@tuxteam.de> - 2016-04-12 09:30 +0200
      Re: change hostname & static IP & ??? ken <gebser@mousecar.com> - 2016-04-12 23:30 +0200
        Re: change hostname & static IP & ??? David Wright <deblis@lionunicorn.co.uk> - 2016-04-13 02:40 +0200
        Re: change hostname & static IP & ??? <tomas@tuxteam.de> - 2016-04-13 09:50 +0200
    Clone SD card for new system <- Re: change hostname & static IP & ??? ken <gebser@mousecar.com> - 2016-04-12 16:30 +0200
      Re: Clone SD card for new system <- Re: change hostname & static IP  & ??? David Wright <deblis@lionunicorn.co.uk> - 2016-04-13 02:10 +0200
  Re: [Raspbian-devel] change hostname & static IP & ??? Stian Skjelstad <stian@barnfind.no> - 2016-04-12 09:40 +0200

csiph-web