Wifi Rev2 works with Windows 10 IDE but not Linux IDE

I took my Arduino Wifi Rev 2 module to a friend who has Windows 10 Arduino IDE version 1.8.13 running. It worked fine; downloaded sketches.etc. I also used my Chrome OS laptop loaded with Linux IDE version 1.8.19 and successfully loaded sketches into both an Arduino Uno module and a Nano module that he has.

I have selected in Board Manager under Tools the Wifi Rev 2 board type. I believe the boards and library are both updated with latest software.

When I plug in the Wifi module I see no change under the Manage USB devices; with the other Arduino boards the Chromebook immediately recognizes the devices (USB 2.0). With the Wifi module the Port stays greyed out in IDE.

Since the cabling and IDE software works with other Arduino modules and not the Wifi Rev 2 I am thinking there is something amiss inside the Linux IDE. Or could this be a firmware issue with the Wifi Rev 2?
Any suggestions welcomed.

Arduino provides a script to set up the Uno WiFi Rev2 port on Linux:

https://github.com/arduino/ArduinoCore-megaavr/blob/1.8.7/scripts/create_dfu_udev_rule

It should be located at this path on your computer:

~/.arduino15/packages/arduino/hardware/megaavr/1.8.7/scripts/create_dfu_udev_rule

You can run it from the terminal using this command:

sudo ~/.arduino15/packages/arduino/hardware/megaavr/1.8.7/scripts/create_dfu_udev_rule

Reference:

https://www.arduino.cc/en/Guide/ArduinoUnoWiFiRev2#installing-drivers-for-the-uno-wifi

Well it is obvious I am in over my head. I know only a small amount about terminal mode and Linux file hierarchy. I was hoping to get by this and just do some Arduino programming.
I cannot copy and paste in terminal mode as the commands are not working for whatever type of terminal Chrome OS uses.
So I made a screenshot but cannot figure out how to imbed the screenshot in this reply. This is my first Chromebook and have had it for a whole three days.
I will have to step away and regroup before I can give you some meaningful data pertaining to my difficulties.

OK, things are working better for me today after sleeping on it....
Here are the error messages in terminal mode:

edthetermite@penguin:~$ sudo ~/.arduino15/packages/arduino/hardware/megaavr/1.8.7/scripts/create_dfu_udev_rule~
sudo: /home/edthetermite/.arduino15/packages/arduino/hardware/megaavr/1.8.7/scripts/create_dfu_udev_rule~: command not found
edthetermite@penguin:~$ dir
Arduino  arduino-1.8.19-linux64.tar.xz  Desktop
edthetermite@penguin:~$ cd Arduino
edthetermite@penguin:~/Arduino$ dir
libraries
edthetermite@penguin:~/Arduino$ cd libraries
edthetermite@penguin:~/Arduino/libraries$ dir
readme.txt
edthetermite@penguin:~/Arduino/libraries$ cd /
edthetermite@penguin:/$ dir
bin   dev  home  lib32  libx32  mnt  proc  run   srv  tmp  var
boot  etc  lib   lib64  media   opt  root  sbin  sys  usr

edthetermite@penguin:/$ cd home
edthetermite@penguin:/home$ dir
arduino-1.8.19-linux64.tar.xz  edthetermite
edthetermite@penguin:/home$ cd edthetermite
edthetermite@penguin:~$ dir
Arduino  arduino-1.8.19-linux64.tar.xz  Desktop
edthetermite@penguin:~$ cd ~/.arduino19/packages/arduino/hardware/megaavr/1.8.19/scripts/create_dfu_udev
-bash: cd: /home/edthetermite/.arduino19/packages/arduino/hardware/megaavr/1.8.19/scripts/create_dfu_udev: No such file or directory
edthetermite@penguin:~$ cd ~/.arduino15/packages/arduino/hardware/megaavr/1.8.7/s
cripts/create_dfu_udev

I am not sure what the difference is between: edthetermite@penguin:~$ and edthetermite@penguin:~/. Hopefully my problem is not being in the correct directory when I issued the command you suggested.
I am hopeful on getting this thing straightened out.

You added a ~ on the end of the command. Please copy and paste the command I provided exactly.

Command result:

edthetermite@penguin:/$ sudo ~/.arduino15/packages/arduino/hardware/megaavr/1.8.7/scripts/create_dfu_udev_rule
Failed to write 'change' to '/sys/devices/LNXSYSTM:00/uevent': Permission denied
edthetermite@penguin:/$

Aargh. Unfortunately I don't know what would cause this error. udev rules are quite mysterious to me in general. I usually just copy/paste commands from Stack Exchange until the port starts working. With the whole Chrome OS factor thrown into the mix it gets even more confusing.

Hopefully one of the other forum members will have some advice for you.

The roadblock may be impenetrable. I am out of my element certainly. Lol
Appreciate your help getting the IDE installed!

Update: Chrome OS/Chromebook became unstable after downloading and launching Linux Arduino IDE (ver. 1.8.19). Apps were disappearing from Launcher, even Google Play Store started disappearing from Google Apps listing. And what was really wonky was the Developer settings area under Advanced Settings disappeared. You could see it under a different user but not my user area. Time to move on to a different Arduino platform!