When I'm running google coral using serial port I'm able to run demo apps but when I'm trying to run
google coral using data port (type c cable) I'm unable to connect with a dev board
rahul#ubuntu:~$ mdt shell
Waiting for a device...
Connecting to wishful-yarn at 192.168.101.2
Key not present on wishful-yarn -- pushing
It looks like you're trying to connect to a device that isn't connected
to your workstation via USB and doesn't have the SSH key this MDT generated.
To connect with MDT shell you will need to first connect to your device
ONLY via USB.
The problem is caused by the PyPI package mendel-development-tool itself. This error is raised by the 'NonLocalDeviceError' exception as can be seen in line 83 of command.py in the code of the package. Whenever the IP of the device does not start with 192.168.100, this exception is raised by sshclient.py (in line 86). This worked for the last Release of Mendel Linux (chef), since the IP address of the usbnet connection was 192.168.100.2. In my case the new Release of Mendel (day), which came lately in November 2019 had the IP 192.168.101.2. To check the IP check the output of
mdt devices
If you installed the package using pip3 as user, like it is recommended by the documentation (pip3 install --user mendel-development-tool), this can be fixed by a quick local patch:
Open the file in your favourite text editor
vim $HOME/.local/lib/python3.6/site-packages/mdt/sshclient.py +86
Replace line 86, which is
if not self.address.startswith('192.168.100'):
raise NonLocalDeviceError()
by the following code
if not self.address.startswith('192.168.10'):
raise NonLocalDeviceError()
Most likely the authors might update the PyPI package to this solution, since the master branch of command.py already has the proposed code. Once the package has been updated you just have to update it on your host.
pip3 install --upgrade mendel-development-tool
The issue is google coral dev is connecting to WIFI also.
First you need to delete the wifi in google coral using nmtui --> edit connection --> delete.
Then connect your host computer to google coral dev board through USB C OTG data cable.
Through serial console to devboard, delete the contents of the /home/mendel/.ssh/authorized_keys
reset the mdt service in google coral devboard using mdt-keymaster
sudo service mdt-keymaster restart
Delete the mdt key in your host computer through rm ~/.config/mdt/keys/mdt.key
Correct the IP issue in NonLocalDeviceError as above
Then try mdt shell
if nothing working, reflash the coral board by using below procedure
Connect your dev board via serial cable and login [Ist terminal].
Once login hit sudo reboot-bootloader to put devboard in fastboot mode.
Open 2nd terminal and perform below steps to flash mendel linux
cd $HOME/Downloads
curl -O https://dl.google.com/coral/mendel/enterprise/mendel-enterprise-chef-13.zip
unzip mendel-enterprise-chef-13
cd mendel-enterprise-chef-13
bash flash.sh
Once Flashing the board complete shutdown google coral sudo shutdown now
Connect devboard again, then follow the previous steps 1-5 again.
Related
I'm using wsl2 and I connect to my companies vpn using cisco client.
As wsl2 has known network issues with vpn cisco client, I installed wls vpn kit.
It works fine when I start my terminal after the vpn connection and I start the vpn kit.
Now I am running into problems with my pipenv.
When I execute pipenv shell, I got the following error:
Shell for UNKNOWN_VIRTUAL_ENVIRONMENT already activated.
No action taken to avoid nested environments.
When I do not activate the vpn kit, I can start my venv via pipenv.
So the problem must be related to wsl-vpn-kit.
Is there a way to start a pipenv shell while running the vpn kit?
I followed the docker install on an old laptop running Linux Mint una
Last night I set up DDNS with noip.com and managed to connect to wow (on the same network) using
set realmlist MYNAME.zapto.org
Then this morning I setup my phone as a mobile hotspot and tried again using the same realmlist but no longer from the same network and when i login I get the "Unable to connect..." in the wow client
In the SQL database i changed acore-auth realmlist address to MYNAME.zapto.org (using HeidiSQL, I also changed it in the 'Data' tab)
I have connected my coral device to my Windows laptop running UBUNTU 20.04
1)When I try to " scp file.tar.gz #: /home/, I get an error stating
"ssh: connection to port 22: lost connection and sometimes refused connection".
I tried to put my Mendel boards IP and host username, then it asked me for my password but then denied permission.
2)Now I wanted to try it using the SD card. So I formatted the SD card in ext4 format and mounted it using " sudo mount /dev/mmcblk1 /mnt. And I can access contents of the SD card.
Now my question is- how do I transfer contents(files and pics) from SD to the Coral board and vice-versa?
I'd appreciate a detailed answer please. If you know the answer to query 1) please mention or if you know the answer to both pls try to help.
Thank you.
There are 2 ways to do this:
You can use mdt push or mdt pull to move file from and to the dev board.
Refer to this doc: https://coral.ai/docs/dev-board/mdt/#mdt-commands
mdt should already creates a public key o n your host machine in ~/.config/mdt/keys/mdt.key, you can try ssh/scp using that key
ssh -i ~/.config/mdt/keys/mdt.key mendel#ip-addr
If that doesn't works, you can also make your own key:
ssh-keygen
Then copy your public key on to the dev board's ~/.ssh/authorized_keys and everything should works as normal ssh :)
If you already mounted the sdcard, they it is as easy as copying or moving right?
cp /mnt/file-you-want /home/mendel/where-you-want
I have installed OctoPi on my Raspberry Pi 3b+, that is connected to a mks gen l v1.0 motherboard for my 3D printer (Ender 3 Pro). When I open my OctoPrint into a browser I can use it, but I wanted to install some plugins. First time I had an error that said my server was offline, after connecting my Raspberry to Wifi and setting up a static ip-address, I've connected my Raspberry to my main board, after that it said the status of OctoPrint was operational, so I expected it will work..
Sadly, it says that my installation doesn't have internet, so I still couldn't install plugins. I see that in the "connectivity check" my host is 8.8.8.8 and my port 53; I've pressed on test and there it said "server is unreachable".
What am I supposed to do?
Try repowering your internet, if that does not work, try installing plugins from zip files
I want to set raspberrypi network ssid and password over Android application. My problem is how can I do. I know command line method or raspi wifi settings in desktop. I just want to do usb wifi dongle setting over Android app.
Have you tried ssh applications on android ? You can remote access Rpi if both your phone and Rpi are on the same network. Hope it helps.
You can edit the configurations using command line. hope you are using Linux.
Open the wpa-supplicant configuration file in nano:
network={
ssid="The_ESSID_from_earlier"
psk="Your_wifi_password"
}
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network.
And if not
sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot.