Issues Setting Up Raspberry Pi 5 Running Ubuntu 24.04 LTS using Particle-Linux

Hi,

I have been following the instructions for setting up a Raspberry Pi 5 running Ubuntu 24.04 LTS provided by the MagicMirror(2) project post located at: Particle for Linux with the MagicMirror² project.

I've tried this numerous times from fresh installs with consistent failures where, after running the particle-linux setup [terminal command: bash <( curl -sL https://particle.io/install-linux.sh )], clicking the link to continue the setup in the browser, the wizard would block after step 2 where I would select the Organization and Product and click Next. This would cause the screen to blank out and step 3 would never be reached as the following screenshot shows:

Eventually the Terminal command that was waiting for completion of this would eventually time out.

This was the standard pattern I experienced for about a week until today. I was on a call with Particle discussing and demoing this behaviour and was asked to screen record this behaviour and as I was attempting to get a screen recording, the behaviour changed to not being able to start the wizard from the generated link created during the 'particlectl setup' command with the error in the wizard stating 'We've detected that you don't have a valid setup code' as follows:

After this issue, I decided it was prudent to perform a fresh install to remove any system/software issues that might have caused changes in the behavior since, I assume, the setup code is being generated locally. After performing a fresh install, the only steps I took were to do the following:

  • Apply the new Ubuntu Desktop 24.04 LTS onto the microSD card
  • Run through the wizard for setting up the desktop (Language, Keyboard, Location, User Info)
  • Run through the initial login wizard (Ubuntu Pro, Provide App Feedback)
  • Open Firefox, browse to http://console.particle.io and log in
  • Open Terminal, run 'sudo apt update && sudo apt upgrade'
  • Start screen recording
  • Display system information
  • Run 'bash <( curl -sL https://particle.io/install-linux.sh )'
  • Received error regarding curl
  • Run 'sudo apt install curl'
  • Re-run 'bash <( curl -sL https://particle.io/install-linux.sh )'
  • Copy the generated link and paste into Firefox
  • Click 'Set up your device' button from the first screen explaining the process
  • Click the 'Set up your device' button from the Detect your Particle device screen
  • Received a new error stating 'This device is not found in Particle platform records. Register the device and try again.'

The current version of particle-linux (using --version flag) shows 0.12.0. I will say on the previous install before this latest run-through, I did perform a 'sudo apt update particle-linux) and the new version, I believe, was 0.12.0-1 which might have been the cause for the 'invalid setup code' error.

Here is the screen recording of my Raspberry PI 5 system during the install and setup for particle-linux:

https://youtu.be/6plsax771QU?si=TJQriJkV-FmHy8Wy

If there is any information you can provide with this issue or require additional information, please let me know.

Thanks,
Jey

Are you logged into the Particle CLI? Try:

particle whoami

If not logged in, use particle login to log in.

This corrected the issue.

I will say, when the web setup link would hang after step 2 (the initial issue that had me talking with the author of the post), I did attempt to go further in the post to install the 'particle' client and log in but that did not change the outcome.

I believe the order of events for a fresh Linux install becomes:

  • sudo apt update && sudo apt upgrade
  • sudo apt install curl
  • bash <( curl -sL https://particle.io/install-cli )
  • Per install output, close and reopen terminal window (I'll verify whether this is required on fresh install)
  • echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
  • source ~/.bashrc
  • particle login
  • bash <( curl -sL https://particle.io/install-linux.sh )
  • Follow instructions: copy setup link and paste in browser; complete setup wizard

I'm going to perform a fresh install of the OS and go through these steps to ensure my process is repeatable but everything is working as expected at this point. I'm able to see the device in the product and open a Terminal into the system.

I'm not sure why this wasn't the solution earlier in the first issue (where the wizard would hang) even from a fresh install but it's difficult to say what I did wrong in the various iterations I've been through.

I'll let you know what happens with the fresh install and if any steps need to be modified in the above list but, at this point, I'd be surprised if I don't get the same results as I just now received.

Thank you for this. I should have tried installing the client and logging in as I did before. I thought about it but didn't since this didn't fix the issue the first time out which was definitely my mistake :laughing:.

Thank you again,
Jey

Ok, I want to give information on my test (plans originally) for a repeatable process for setting up Particle for Linux on a newly installed edge device. My plans were as follows:

  1. Test the procedure outlined in the MagicMirror(2) project post only to the point of getting the device setup and connected to the Particle Cloud (this is working now on fresh installs)
  • Install Linux variant (Ubuntu Desktop 24.04 LTS for my case)
  • Run through initial boot wizard (Language, Keyboard, Location, Identity)
  • Run through initial login wizard (Ubuntu Pro, Provide Feedback)
  • Open Terminal window
  • Run sudo apt update && sudo apt upgrade
  • Run sudo apt install curl
  • Run bash <( curl -sL https://particle.io/install-linux.sh )
  • Click link provided by particle-linux install and open in browser
  • Run through the wizard to connect the device (Choose Organization and Product basically)
  1. Test the updated procedure from my last post where I assumed I would need to be logged in using the particle client
  • Install Linux variant (Ubuntu Desktop 24.04 LTS for my case)
  • Run through initial boot wizard (Language, Keyboard, Location, Identity)
  • Run through initial login wizard (Ubuntu Pro, Provide Feedback)
  • Open Terminal window
  • Run sudo apt update && sudo apt upgrade
  • Run sudo apt install curl
  • Run bash <( curl -sL https://particle.io/install-cli )
  • If install requests reboot, run sudo reboot
  • If reboot, login and open Terminal window
  • Run echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
  • Run source ~/.bashrc
  • Run particle login
  • Run bash <( curl -sL https://particle.io/install-linux.sh )
  • Click link provided by particle-linux install and open in browser
  • Run through the wizard to connect the device (Choose Organization and Product basically)

On this iteration of a fresh install, the first test case worked without needing to install the particle client or log in using the client.

If I see any different behavior or where Process #2 needs to be performed instead of the default process (#1), I'll update this thread and provide whatever info I can.

I will add that there is no particle client installed yet (did not run install-cli nor is there a bin folder in my Home directory) and when I run particlectl --version I receive 0.12.0 as in previous installations.

I hope this helps and if there is any other information you'd like, please let me know.

(Feels like the observer effect :laughing:)

Thanks,
Jey

Sorry for the issues, Jey. We were in the middle of updating the setup process on Raspberry Pi and you got caught in an in-between state. The setup should work now.

No worries Julien. I knew development was still ongoing and it was a benefit to me to reinforce my Linux skills. The process on this issue has helped a lot and got me involved with the Particle teams and community forum.

Appreciate all that you and the Particle teams are doing :smiley:.

Thank you for all of the assistance.