Octopi not connect to wifi

If you boot up your Pi with a keyboard and screen attached, then log in after booting up, you'll see the following on the screen:

This image comes without a desktop environment installed because it's not 
required for running OctoPrint. If you want a desktop environment you can 
install it via

    sudo /home/pi/scripts/install-desktop

Running that install desktop command (the line that starts with "sudo") installs the Desktop GUI (it's not included by default in OctoPi since it's usually not needed).

It's been a while, I'm not sure if you then have to run sudo raspi-config
choose the "Boot Options",
then choose the "Desktop / CLI" option,
and pick one of the Desktop options (I prefer "Desktop GUI requiring user to log in)
Next reboot, and you should see the familiar desktop GUI.
Connect to your WiFi network just as you did when booting up from the full Raspian.

When you are done and have connected successfully, you can go back and reset it to boot to the command line (CLI) in Raspi-config.

Hope that made sense

thank you, i'll do in a moment, and reply the results, meanwhile I am changing the SD, I think this is gonna be the problem

You are shutting your Pi down properly, aren't you? You don't want to just shut off the power, since that can damage the SD card (sometimes you get away with it, some times you don't).

To shut down from the command line, use the following:
sudo shutdown -h now

I'll be away from my computer for at least 4 or 5 hours now. I hope all of the above works for you.

You can also shut it down from a menu choice when accessing OctoPrint web page (that menu only shows up if you are logged in as an OctoPrint administrator).

Just for reference, here's the two things which that script would do (assuming that you ask it to automatically boot to the Desktop):

  • sudo apt-get install --yes raspberrypi-ui-mods
  • sudo systemctl set-default graphical.target

Per that earlier comment (to see what it might do):

which raspi-config
 /usr/bin/raspi-config
cat /usr/bin/raspi-config

So here's the two sections in raspi-config that would steer it to the console boot options but neither uninstall any of the software. You'd have to do an htop and look for them in this case.

      B1*)
        systemctl set-default multi-user.target
        ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
        rm /etc/systemd/system/getty@tty1.service.d/autologin.conf
        ;;
      B2*)
        systemctl set-default multi-user.target
        ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
        cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF

OK! I installed the desktop, enter and select my wifi, and don't work :frowning: but the other net that I have to repeat the signal connect well.

The problem is, my computer is connected to the main net, and don't let me access to the optopi "web"

IT WORKS!!! I don't know why, but it work!!

1 Like

It takes a full minute for Bonjour announcements to happen... and then maybe a bit for your router to cache-and-repropagate them on other routes/segments (if it does).

I ran into the same issue. I found running the following command helps as long as your network details are correct in octopi-wpa-supplicant.txt:

sudo killall wpa_supplicant
sudo wpa_supplicant -c/boot/octopi-wpa-supplicant.txt -iwlan0

Hope this helps!

Dear I have the same problem.

what do you mean by "Installed the Desktop" ? how did you do it !

thank you in advance.
-Faisal

@zGHLooL, You added a reply to a topic that is over a year old. If you really want help, I suggest that you start a new topic paying particular attention to the blue links in the template and provide as much of the details requested about your specific problem.