• Re: Headless install

    From Andy Burns@3:770/3 to Andy Burns on Tue Oct 18 11:36:20 2022
    Andy Burns wrote:

    bob prohaska wrote:

    Any chance of setting up a serial console?

    Oh, I can hook it up to monitor and keyboard for long enough to get SSH login working, but it just felt from the installer options that I shouldn't need to.

    And having hooked up a screen+keyboard, it won't accept the username+password that way either ... no possibility of uk/us keystroke confusion.

    Guess I'll do another fresh install without touching the "advanced" dialogue in Pi Imager

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Andy Burns on Tue Oct 18 14:56:38 2022
    On 18/10/2022 11:36, Andy Burns wrote:
    Andy Burns wrote:

    bob prohaska wrote:

    Any chance of setting up a serial console?

    Oh, I can hook it up to monitor and keyboard for long enough to get
    SSH login working, but it just felt from the installer options that I
    shouldn't need to.

    And having hooked up a screen+keyboard, it won't accept the
    username+password that way either ... no possibility of uk/us keystroke confusion.

    Guess I'll do another fresh install without touching the "advanced"
    dialogue in Pi Imager

    What are the contents of /etc/shadow and /etc/passwd with respect to the usernames you thought should actually work?

    Assuming you can read the basic non-boot partition on the pi SD card...


    --
    To ban Christmas, simply give turkeys the vote.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to Martin Gregorie on Tue Oct 18 16:59:50 2022
    Martin Gregorie <martin@mydomain.invalid> wrote:
    On Mon, 17 Oct 2022 22:58:22 +0100, Andy Burns wrote:

    Pancho wrote:

    Andy Burns wrote:

    What's the point of setting SSH credentials that it won't let you use?

    What do you mean set a username and password

    The latest Pi Imager has an advanced config dialog, that includes SSH settings

    <http://andyburns.uk/misc/pi-imager-ssh-settings.png>

    Sounds like something I need, but there's a problem: I notice that the RPi Foundation appears to be only only making it available for Ubuntu. However
    I don't get on with Ubuntu (no, I don't like the Gnome desktop either) because I've been a RedHat used since Redhat 6.2 was released in the late '90s and have used Fedora since version 1 appeared just after 2001.

    Can you not install a different desktop on Ubuntu? In fact isn't
    there a minimal Ubuntu install for the Pi to which you can add Xfce or
    whatever you fancy. You don't have to have Gnome with Ubuntu!

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to Martin Gregorie on Tue Oct 18 16:22:50 2022
    Martin Gregorie <martin@mydomain.invalid> wrote:
    So, is there either a Fedora version of the Pi Imager? Either an RPM
    package or a distro-agnostic download, e.g. a gzipped version, would be
    fine.

    Yes, arm-image-installer: https://docs.fedoraproject.org/en-US/quick-docs/raspberry-pi/
    although that doesn't say anything about headless mode.

    Also, Pi Imager is not PiOS specific - it'll flash other OSes, but it might
    not do the customisation steps. I don't know what it does for Fedora.

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Theo on Tue Oct 18 17:24:12 2022
    On 18 Oct 2022 16:22:50 +0100 (BST), Theo wrote:

    Martin Gregorie <martin@mydomain.invalid> wrote:
    So, is there either a Fedora version of the Pi Imager? Either an RPM
    package or a distro-agnostic download, e.g. a gzipped version, would be
    fine.

    Yes, arm-image-installer: https://docs.fedoraproject.org/en-US/quick-docs/raspberry-pi/
    although that doesn't say anything about headless mode.

    Also, Pi Imager is not PiOS specific - it'll flash other OSes, but it
    might not do the customisation steps. I don't know what it does for
    Fedora.

    Just to be clear: I want to install the standard Debian-based Pi-OS on an
    RPi 2, but doing so from a laptop running the XCFE spin of Fedora 36.

    However, the link you supplied seems to assume that I will want to install
    a Fedora ARM image on an RPi using a (modified?) version of the Pi Imager.
    So questions:

    - is the arm-image-installer OS-agnostic? IOW if I run

    $sudo dnf install -y arm-image-installer

    and then pull down the appropriate Debian Pi-OS image
    for my RPi 2 the arm-image-installer I downloaded from the
    Fedora package library, it should happily apply the headless
    tweaks and login and then install the modified image on my RPi.

    Sorry about the pedantry, but neither the RaspberryPi nor the Fedora documentation is clear about this.


    --

    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Martin Gregorie@3:770/3 to Chris Green on Tue Oct 18 17:35:24 2022
    On Tue, 18 Oct 2022 16:59:50 +0100, Chris Green wrote:

    Can you not install a different desktop on Ubuntu? In fact isn't there
    a minimal Ubuntu install for the Pi to which you can add Xfce or
    whatever you fancy. You don't have to have Gnome with Ubuntu!

    Indeed - my non-Pi systems are all on the XFCE version of Fedora 36. I
    have no wish to run Debian derivatives any place except on a RaspberryPi.

    I gave up on Gnome when Gnome v 2.3 was released in an incomplete state
    and then replaced without warning by Gnome 3 which I hated just as much as
    the contemporary Windows version (required at work). At that point I
    switched my own systems over to the Fedora XFCE spin and have never looked back.


    --

    Martin | martin at
    Gregorie | gregorie dot org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From zeneca@3:770/3 to All on Wed Oct 19 09:02:26 2022
    Le 18/10/22 à 09:23, Andy Burns a écrit :
    zeneca wrote:

    Did you at least create user / password?
    In recent version of OS there is no more user pi.

    I did, at the point of writing the SD card.

    I was hoping to avoid the temporary spaghetti of hooking up keyboard and monitor, simply to set a password on the console at first boot, and then unplug it to use by SSH after that.


    did you run raspi-config to enable ssh ?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to zeneca on Wed Oct 19 08:29:56 2022
    zeneca wrote:

    Andy Burns a écrit :

    did you run raspi-config to enable ssh ?

    I didn't because the Pi Imager (advanced dialogue) has an option to do that when
    the SD is written, and that part does work, there was a live SSH daemon, just that the credentials were rejected.

    When I re-wrote the card without using the advanced option, yes I had to enable SSH that way.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From scott@alfter.diespammersdie.us@3:770/3 to Martin Gregorie on Wed Oct 19 17:16:20 2022
    Martin Gregorie <martin@mydomain.invalid> wrote:
    Sounds like something I need, but there's a problem: I notice that the RPi Foundation appears to be only only making it available for Ubuntu. However
    I don't get on with Ubuntu (no, I don't like the Gnome desktop either) because I've been a RedHat used since Redhat 6.2 was released in the late '90s and have used Fedora since version 1 appeared just after 2001.

    So, is there either a Fedora version of the Pi Imager? Either an RPM
    package or a distro-agnostic download, e.g. a gzipped version, would be
    fine.

    I was able to get the imager working on Gentoo Linux by writing an ebuild
    for it that grabs a source tarball from GitHub and compiles it:

    https://gitlab.com/salfter/portage/-/blob/master/dev-embedded/rpi-imager/rpi-imager-1.7.2.ebuild

    Dependencies (with Qt being one of the bigger ones) are named within. The build process is straightforward enough that the CMake eclass figures everything out by itself. Presumably you could build (and optionally
    package) it for whatever distro you want.

    --
    _/_
    / v \ Scott Alfter (remove the obvious to send mail)
    (IIGS( https://alfter.us/ Top-posting!
    \_^_/ >What's the most annoying thing on Usenet?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)