Setting up New PI and Octoprint - Want Same Settings as Current

What is the problem?

I am adding a new Raspberry PI to my setup and want to set it up the same way my current PI has been running for 2 years or so. I have updated Octoprint to the latest versions. My issue is I can't figure out where my network setup information is on my currently running PI or where my PI's camera resolution is located.

What did you already try to solve it?

I have looked in all the files I thought I set up 2 years ago, and looked in all the files the web has directed me to, but in those files all the network and camera information is commented out.

/boot/octopi-network.txt
/boot/octopi.txt
/boot/octopi-wpa-supplicant.txt (I know this is where the information should be)

My PI and octoprint is running great as a static IP on my home wired network with the settings of two years ago, but the files I am looking at are telling me a different story.

I know when I set up my new PI and Octoprint instance I can just set it up using the correct files, but I am still at a loss as to why my current instance shows these files as commented out and no static IP address in the file.

Where else should I look to find this information and ensure I am setting up my new PI the same as my current?

Are you sure the resolution was changed at all? The cam also works with the stock file and just outputs a low resolution.

The static ip should be located in the /etc/dhcpcd.conf, but could also be here /etc/network/interfaces - depending on how you configured your system.

The wifi credentials should be stored in the /etc/wpa_supplicant/wpa_supplicant.conf

None of those files contain anything about my Static IP network setup either. They are all the default files, with none of the network information uncommented.

I am at a loss as to what file is being called that sets my IP address as static.

Could it be just my router setting the static IP address based off the MAC address of the PI?

Yeah sure that's also possible.

In order for a dhcp-server to serve static IP to a device you can configure it by associating MAC addresses and IPs. Only with IPv6 this is the exception and special tokens are used instead.

Another place other than those mentioned by PrintedWeezl is /etc/systemd/network/*

Here is some docu for it from the Arch wiki, systemd-networkd - ArchWiki but a web search finds you many other pages.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.