• Headless install

    From Andy Burns@3:770/3 to All on Mon Oct 17 19:26:38 2022
    I found all the bits (Pi3B, PoE splitter, USB caddy, SATA spinner, SD card) to cobble together my low power always-on "server" to allow me to turn off the power-hungry server when it's not specifically required.

    Used the latest RPi Imager, chose PiOS Lite, told it to enable SSH, set a username and password, wrote the image, insert SD card, no keyboard/HDMI connected, plug into ethernet, powers and boots.

    Find the DHCP addr from my router, using PuTTY I can SSH to the machine, give it
    the username and password I set earlier, but it just says "Access Denied", wipe and repeat in case I fumbled setting the password, same problem.

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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Pancho@3:770/3 to Andy Burns on Mon Oct 17 21:05:42 2022
    On 17/10/2022 19:26, Andy Burns wrote:
    I found all the bits (Pi3B, PoE splitter, USB caddy, SATA spinner, SD
    card) to cobble together my low power always-on "server" to allow me to
    turn off the power-hungry server when it's not specifically required.

    Used the latest RPi Imager, chose PiOS Lite, told it to enable SSH, set
    a username and password, wrote the image, insert SD card, no
    keyboard/HDMI connected, plug into ethernet, powers and boots.

    Find the DHCP addr from my router, using PuTTY I can SSH to the machine,
    give it the username and password I set earlier, but it just says
    "Access Denied", wipe and repeat in case I fumbled setting the password,
    same problem.

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


    What do you mean set a username and password

    From my old and failing memory you just touch a file named ssh in the
    boot folder, when burning the SD card. The username/password is just the
    Pi OS default username: pi, password: raspberry.

    Have you tried this default username/password?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to Pancho on Mon Oct 17 20:20:50 2022
    Pancho <Pancho.Jones@proton.me> wrote:
    From my old and failing memory

    Perhaps, but also not keeping up with new developments. The RPi Imager
    program can do it all for you. Also the username is not necessarily pi
    anymore. The app works for me, but I only used it to set up pubkey access,
    not username/password.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to Pancho on Mon Oct 17 22:58:22 2022
    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>

    From my old and failing memory you just touch a file named ssh in the boot folder, when burning the SD card. The username/password is just the Pi OS default username: pi, password: raspberry.

    Have you tried this default username/password?

    Yes, that also gives "Access Denied"

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Computer Nerd Kev@3:770/3 to Pancho on Tue Oct 18 07:21:38 2022
    Pancho <Pancho.Jones@proton.me> wrote:

    What do you mean set a username and password

    From my old and failing memory you just touch a file named ssh in the
    boot folder, when burning the SD card. The username/password is just the
    Pi OS default username: pi, password: raspberry.

    Have you tried this default username/password?

    While re-reading the docs recently, I noticed that they've decided
    that this is too insecure and say "pi:raspberry" is no longer
    supported in the current images. You have to set up your own
    username/password combination now, one way or other (I think the
    docs do describe a manual way that doesn't use the imager program).

    --
    __ __
    #_ < |\| |< _#

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bob prohaska@3:770/3 to All on Tue Oct 18 01:56:02 2022
    Any chance of setting up a serial console? That should let you interrupt
    boot and fall into single user as root. Never had to do it on RasPiOS,
    but it's routine with FreeBSD.

    hth,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From zeneca@3:770/3 to All on Tue Oct 18 09:10:08 2022
    Le 17/10/22 à 20:26, Andy Burns a écrit :
    I found all the bits (Pi3B, PoE splitter, USB caddy, SATA spinner, SD
    card) to cobble together my low power always-on "server" to allow me to
    turn off the power-hungry server when it's not specifically required.

    Used the latest RPi Imager, chose PiOS Lite, told it to enable SSH, set
    a username and password, wrote the image, insert SD card, no
    keyboard/HDMI connected, plug into ethernet, powers and boots.

    Find the DHCP addr from my router, using PuTTY I can SSH to the machine,
    give it the username and password I set earlier, but it just says
    "Access Denied", wipe and repeat in case I fumbled setting the password,
    same problem.

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


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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to bob prohaska on Tue Oct 18 08:18:44 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Pancho@3:770/3 to A. Dumas on Tue Oct 18 09:50:00 2022
    On 17/10/2022 21:20, A. Dumas wrote:
    Pancho <Pancho.Jones@proton.me> wrote:
    From my old and failing memory

    Perhaps, but also not keeping up with new developments. The RPi Imager program can do it all for you. Also the username is not necessarily pi anymore. The app works for me, but I only used it to set up pubkey access, not username/password.


    Yes, apologies all, I appear to be out of date.

    My newest SD card fs has a create date Apr 2021, which I assume was the
    date I last did a headless installation.

    I must have done upgrades to get to the current distributions.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to Andy Burns on Tue Oct 18 12:17:48 2022
    Andy Burns <usenet@andyburns.uk> wrote:
    I found all the bits (Pi3B, PoE splitter, USB caddy, SATA spinner, SD card) to
    cobble together my low power always-on "server" to allow me to turn off the power-hungry server when it's not specifically required.

    Used the latest RPi Imager, chose PiOS Lite, told it to enable SSH, set a username and password, wrote the image, insert SD card, no keyboard/HDMI connected, plug into ethernet, powers and boots.

    Find the DHCP addr from my router, using PuTTY I can SSH to the machine, give it
    the username and password I set earlier, but it just says "Access Denied", wipe
    and repeat in case I fumbled setting the password, same problem.

    There has been an issue with a recent upgrade to OpenSSH that it doesn't support some of the ciphers previously used (deprecated as they're no longer secure). That meant mixes of old and new clients, servers and old SSH keys don't talk any more.

    If you enable logging, PuTTY should tell you if it failed to negotiate key exchange successfully. It is possible a newer OpenSSH server on the Pi
    doesn't share any supported ciphers with an older PuTTY client.

    At least for OpenSSH client, you can force it to downgrade to an older
    cipher for talking to old servers, but ideally you would upgrade PuTTY
    instead.

    Theo

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