Re: [Hampshire] Ubuntu install on headless Raspberry Pi Stat…

Pàgina inicial

Reply to this message
Autor: Ron via Hampshire
Data:  
A: hampshire
CC: Ron
Assumpte: Re: [Hampshire] Ubuntu install on headless Raspberry Pi Static IP address
rm via Hampshire wrote on 2025-12-01 01:49:

> I've mounted the card image on my PC (which also runs Ubuntu) so I can
> see the card's /etc but, as I say, there's no dhcp.conf and /etc/netplan
> is empty.


> There must be a way to do this - anyone know the winning formula?


Not sure about "the" winning formula, but hopefully something in the
following will be of use.


If there's a folder called /etc/network/interfaces, one should be able
to put some configuration in there.

`man interfaces` for reference.



Possibly editing a config file in a sub-folder at /etc/NetworkManager
would do it if the first method isn't feasible.


Finally, if no netplan, no interfaces file and no NetworkManager, then
config via /etc/systemd/network/10-static-ip.network.

This would require a device name for the network card though, i.e.
enp3s0. If that's not known, it'd be trickier.




Could you boot the Pi, check the router for assigned IPs, access it that
way?

Or, use the router to do DHCP reservation for the desired IP which could
be set statically once ssh'd in?




One way, certainly not a "winning" one, would be to use the SD card as a
VM image so it can boot, assign an IP through VirtMan console, then shut
down the VM and move the card to the Pi.


Good luck & keep us posted.



--
Please post to: Hampshire@???
Manage subscription: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG website: http://www.hantslug.org.uk
--------------------------------------------------------------