Change Network Details

ssh into the pi. pi@rpinetwork

Change the Network and Hostname

The name of the network and the name of the pi itself in this image is ‘rpinetwork’

If you want to change it to something else, follow these steps:

You will have to edit a couple of files and reboot your Pi.

/etc/dnsmasq.conf

find the following lines:

# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
#local=/localnet/

local=/rpinet/

Change ‘rpinet’ to whatever you want your computer to be called

next edit

/ext/hostapd/hostapd.conf

interface=uap0
driver=nl80211
ssid=RPiNetwork
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=mypassphrase
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

Change the ssid to change the wifi access point name. You can also change the pass phrase but be careful, if it’s too short it won’t work.

You must also change the host name of the raspberry pi, do it with

hostnamectl set-hostname newhostname

You will also have to edit

/etc/hosts

127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       rpinet
192.168.4.1     rpinet

Replace the two rpinet entries with the same thing you set with hostnamectl. They need to match.