DEAN-ngo / elimupi

Other
3 stars 9 forks source link

Adaptation of Ansible for Pi 5 #128

Closed alonsovidales closed 3 months ago

alonsovidales commented 3 months ago

This PR updates the build in order to work with the new Raspberry Pi 5.

We had to use the latest image since the old one only supports up to the Pi 4. The version of Moodle was also updated since with the new image we also get PHP 8.4.

Everything I tried seems to work without issues, but keep in mind that this involves ves a major bump in the PHP version, let's keep an eye just in case something start to fail.

127

ltoning commented 3 months ago

Hi @alonsovidales did some testing on RPI 4 and Scratch didn't seems to work on my side. Not serving and no connection possible on 127:0.0.1:5801 All the rest look good.

alonsovidales commented 3 months ago

Hi @alonsovidales did some testing on RPI 4 and Scratch didn't seems to work on my side. Not serving and no connection possible on 127:0.0.1:5801 All the rest look good.

Ups, I already gave my Pi4 to a friend... let me see if I can get it back to test it today 🤦‍♂️ thanks for catching this 🤗

alonsovidales commented 3 months ago

Hi @alonsovidales did some testing on RPI 4 and Scratch didn't seems to work on my side. Not serving and no connection possible on 127:0.0.1:5801 All the rest look good.

Ok, it was this: https://github.com/ScratchAddons/ScratchAddons/issues/7456 I remember that I fixed manually bit I forget to update the ansible files 🤦‍♂️ updated 👍 thx!

ltoning commented 3 months ago

Hi @alonsovidales did some extensive testing on RPI 4. Bookworm comes with Networkmanager by default. This was interfering the the Wifi client feature we use for the ElimuPi-connect and (maybe) the Wifi Hotspot in some way.

Can you do a new test on RPI 5?

alonsovidales commented 3 months ago

Hi @alonsovidales did some extensive testing on RPI 4. Bookworm comes with Networkmanager by default. This was interfering the the Wifi client feature we use for the ElimuPi-connect and (maybe) the Wifi Hotspot in some way.

  • Disabled NetworkManager and reinstated wpa_supplicant.conf.
  • Changed Wifi priority.

Can you do a new test on RPI 5?

Thanks for finding this out, but I'm not being able to reproduce it. In the 4 the wifi hotspot is working for me. how can I do to reproduce it? what did you do to make it work? 🤔

ltoning commented 3 months ago

Wifi client is not working. If you change wpa_supplicant.conf to match you own wifi ssid you will notice it won't connect. Hotspot works on uap0 works

Op zo 23 jun 2024 22:28 schreef Alonso Vidales @.***>:

Hi @alonsovidales https://github.com/alonsovidales did some extensive testing on RPI 4. Bookworm comes with Networkmanager by default. This was interfering the the Wifi client feature we use for the ElimuPi-connect and (maybe) the Wifi Hotspot in some way.

  • Disabled NetworkManager and reinstated wpa_supplicant.conf.
  • Changed Wifi priority.

Can you do a new test on RPI 5?

Thanks for finding this out, but I'm not being able to reproduce it. In the 4 the wifi hotspot is working for me. how can I do to reproduce it? what did you do to make it work? 🤔

— Reply to this email directly, view it on GitHub https://github.com/DEAN-ngo/elimupi/pull/128#issuecomment-2185314916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7EM3FIYKXJIXEMPWWJBRDZI4VVZAVCNFSM6AAAAABJN7P4RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGMYTIOJRGY . You are receiving this because your review was requested.Message ID: @.***>

alonsovidales commented 3 months ago

Ahhh, ok, I was not aware of the ElimuConnect and 4G connections, sorry. I move them to NetworkManager, now it looks like:

***@***.***:~# nmcli connection show
NAME                UUID                                  TYPE      DEVICE
preconfigured       61f08a09-e3b4-461c-8a32-273b2cd83484  wifi      wlan0
lo                  85f3e588-bbf9-465b-9bbb-0816231f9ee0  loopback  lo
Wired connection 1  8ab2b7f0-2545-3145-9394-f2c0edbf7db9  ethernet  --
dean-4g             92e8a194-ad60-43c9-a6a1-b861907a00af  wifi      --
elimu-connect       7e379b8f-0caf-4014-a8f9-892134a08e11  wifi      —

I modified it to connect to my local SSID and it works, but I don’t have an ElimuConnect here to try. I will try to get another Raspberry Pi tomorrow, but if you can give it a try it would be great 🥺 Thanks!

On 24 Jun 2024, at 06:43, Laurens Töning @.***> wrote:

Wifi client is not working. If you change wpa_supplicant.conf to match you own wifi ssid you will notice it won't connect. Hotspot works on uap0 works

Op zo 23 jun 2024 22:28 schreef Alonso Vidales @.***>:

Hi @alonsovidales https://github.com/alonsovidales did some extensive testing on RPI 4. Bookworm comes with Networkmanager by default. This was interfering the the Wifi client feature we use for the ElimuPi-connect and (maybe) the Wifi Hotspot in some way.

  • Disabled NetworkManager and reinstated wpa_supplicant.conf.
  • Changed Wifi priority.

Can you do a new test on RPI 5?

Thanks for finding this out, but I'm not being able to reproduce it. In the 4 the wifi hotspot is working for me. how can I do to reproduce it? what did you do to make it work? 🤔

— Reply to this email directly, view it on GitHub https://github.com/DEAN-ngo/elimupi/pull/128#issuecomment-2185314916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7EM3FIYKXJIXEMPWWJBRDZI4VVZAVCNFSM6AAAAABJN7P4RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGMYTIOJRGY . You are receiving this because your review was requested.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/DEAN-ngo/elimupi/pull/128#issuecomment-2185593978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALGS4MJ64F47KRT6F3Y63DZI6PXXAVCNFSM6AAAAABJN7P4RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGU4TGOJXHA. You are receiving this because you were mentioned.

ltoning commented 3 months ago

Hi Alonso,

tested but gives some issues:

TASK [common : Configure WiFi network]


failed: [elimupi] (item={'name': 'elimu-connect', 'ssid': 'elimu-connect', 'interface': 'wlan0', 'priority': '110', 'psk': '1234567890'}) => {"ansible_loop_var": "item", "changed": false, "item": {"interface": "wlan0", "name": "elimu-connect", "priority": "110", "psk": "1234567890", "ssid": "elimu-connect"}, "msg": "Error: bad connection type: 'None' not among [6lowpan, 802-11-olpc-mesh (olpc-mesh), 802-11-wireless (wifi), 802-3-ethernet (ethernet), adsl, bluetooth, bond, bridge, cdma, dummy, generic, gsm, infiniband, ip-tunnel, loopback, macsec, macvlan, ovs-bridge, ovs-dpdk, ovs-interface, ovs-patch, ovs-port, pppoe, team, tun, veth, vlan, vpn, vrf, vxlan, wifi-p2p, wimax, wireguard, wpan, bond-slave, bridge-slave, team-slave]\n", "name": "elimu-connect", "rc": 2} failed: [elimupi] (item={'name': 'dean-4g', 'ssid': 'dean-4g', 'interface': 'wlan0', 'priority': '100', 'psk': 'Mobil3internetbyDEAN'}) => {"ansible_loop_var": "item", "changed": false, "item": {"interface": "wlan0", "name": "dean-4g", "priority": "100", "psk": "Mobil3internetbyDEAN", "ssid": "dean-4g"}, "msg": "Error: bad connection type: 'None' not among [6lowpan, 802-11-olpc-mesh (olpc-mesh), 802-11-wireless (wifi), 802-3-ethernet (ethernet), adsl, bluetooth, bond, bridge, cdma, dummy, generic, gsm, infiniband, ip-tunnel, loopback, macsec, macvlan, ovs-bridge, ovs-dpdk, ovs-interface, ovs-patch, ovs-port, pppoe, team, tun, veth, vlan, vpn, vrf, vxlan, wifi-p2p, wimax, wireguard, wpan, bond-slave, bridge-slave, team-slave]\n", "name": "dean-4g", "rc": 2

Op ma 24 jun 2024 om 21:34 schreef Alonso Vidales @.***

:

Ahhh, ok, I was not aware of the ElimuConnect and 4G connections, sorry. I move them to NetworkManager, now it looks like:

***@***.***:~# nmcli connection show
NAME UUID TYPE DEVICE
preconfigured 61f08a09-e3b4-461c-8a32-273b2cd83484 wifi wlan0
lo 85f3e588-bbf9-465b-9bbb-0816231f9ee0 loopback lo
Wired connection 1 8ab2b7f0-2545-3145-9394-f2c0edbf7db9 ethernet --
dean-4g 92e8a194-ad60-43c9-a6a1-b861907a00af wifi --
elimu-connect 7e379b8f-0caf-4014-a8f9-892134a08e11 wifi —

I modified it to connect to my local SSID and it works, but I don’t have an ElimuConnect here to try. I will try to get another Raspberry Pi tomorrow, but if you can give it a try it would be great 🥺 Thanks!

On 24 Jun 2024, at 06:43, Laurens Töning @.***> wrote:

Wifi client is not working. If you change wpa_supplicant.conf to match you own wifi ssid you will notice it won't connect. Hotspot works on uap0 works

Op zo 23 jun 2024 22:28 schreef Alonso Vidales @.***>:

Hi @alonsovidales https://github.com/alonsovidales did some extensive testing on RPI 4. Bookworm comes with Networkmanager by default. This was interfering the the Wifi client feature we use for the ElimuPi-connect and (maybe) the Wifi Hotspot in some way.

  • Disabled NetworkManager and reinstated wpa_supplicant.conf.
  • Changed Wifi priority.

Can you do a new test on RPI 5?

Thanks for finding this out, but I'm not being able to reproduce it. In the 4 the wifi hotspot is working for me. how can I do to reproduce it? what did you do to make it work? 🤔

— Reply to this email directly, view it on GitHub https://github.com/DEAN-ngo/elimupi/pull/128#issuecomment-2185314916,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF7EM3FIYKXJIXEMPWWJBRDZI4VVZAVCNFSM6AAAAABJN7P4RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGMYTIOJRGY>

. You are receiving this because your review was requested.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/DEAN-ngo/elimupi/pull/128#issuecomment-2185593978>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AALGS4MJ64F47KRT6F3Y63DZI6PXXAVCNFSM6AAAAABJN7P4RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGU4TGOJXHA>.

You are receiving this because you were mentioned.

— Reply to this email directly, view it on GitHub https://github.com/DEAN-ngo/elimupi/pull/128#issuecomment-2187268320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7EM3GL3QJMZRDYQJQBGT3ZJBYFRAVCNFSM6AAAAABJN7P4RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBXGI3DQMZSGA . You are receiving this because your review was requested.Message ID: @.***>