How to Setup a Unique Hostname and Static IP Address on a CrunchCam Module - crunchtec/Beam-Cruncher-Wiki GitHub Wiki

These steps are required to setup a CrunchCam module after applying the generic CrunchCam Raspbian image to the PiZero.

Find IP Address of CrunchCam on your Network

Connect the CrunchCam to your network and power it on. You can find the IP address of the CrunchCam on your router's setup page - the default hostname is: 'crunchcam'.

SSH into CrunchCam

SSH into the CrunchCam by typing 'ssh pi@[ip address of CrunchCam]' in a terminal (this works on almost any OS). Use the default CrunchCam password to login.

Give CrunchCam a unique Hostname

Enter 'sudo raspi-config' into the ssh terminal. This will open the Raspberry Pi Software Configuration Tool. Select item 2 'Network Options'. Select item N1 'Hostname'. This will allow you to set the hostname of the CrunchCam. Use the serial # of the device, which has the format 'CC####'. This serial number is unique to this CrunchCam module.

Select and then . When prompted to restart, select .

Setup Static IP Address

Type 'sudo nano /etc/dhcpcd.conf' into the ssh terminal. This will open the DHCP settings in a console-based text editor. Page down until you reach the lines that read:

# Example static IP configuration:

#interface eth0

#static ip_address=192.168.0.1/24

#static ip6_address=fd51:42f8:caae:d92e::ff/64

#static routers=192.168.1.1

#static domain_name_servers=192.168.1.1 8.8.8.8

Note: These values may be different! Just look for these settings.

The # comments out the line, so that the Pi will not read them. Uncomment all of these lines below # Example static IP configuration: except for the static ip6_address=fd51:42f8:caae:d92e::ff/64 line (we will not be assigning a IPv6 address).

Replace the static ip_address= value with your CrunchCam's desired static IP (i.e. the one that the client will ask for images from), this IP address should not match any of the other CrunchCam modules in this particular camera system.

Replace the static routers= value with your port switch/router's static IP address.

Replace the domain_name_servers= value with 8.8.8.8.

Save and exit the DHCP configuration file by pressing [Ctrl] + [X], then [Y].

Lastly, type 'sudo reboot' in the ssh terminal. Your CrunchCam module is now unique and ready to go!

⚠️ **GitHub.com Fallback** ⚠️