MacOS Big Sur elevates the most advanced desktop operating system in the world to a new level of power and beauty. Experience Mac to the fullest with a refined new design. Enjoy the biggest Safari update ever. Discover new features for Maps and Messages.
Python 2.7 and setuptools are installed by default. This can be verified –version option on them.
Install pip 18.0 for Python 2.7.10 as root.
#easy_installpip
The package tornado is required by openstack client. It can be installed with pip as root first if not installed already. Otherwise, error message “matplotlib 1.3.1 requires nose, which is not installed. matplotlib 1.3.1 requires tornado, which is not installed.” might be seen.
#pipinstalltornado
The installation of python-openstackclient may fail with the error of “Cannot uninstall ‘six’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.” User options –ignore-installed six –user to bypass it.
#pipinstallpython-openstackclient--ignore-installedsix--user
Clients are installed under “/Users/davidyuan/Library/Python/2.7/bin“. It is easier to add the directory to PATH.
C02XD1G9JGH7:bindavidyuan$sudovi/etc/paths
Connect to Horizon to download RC files under API access at https://extcloud05.ebi.ac.uk/dashboard/project/access_and_security/. Place the file EBI-TSI-DEV-openrc.sh under a working directory (e.g. /Users/davidyuan/). Make it executable.
chmoda+xEBI-TSI-DEV-openrc.sh
OpenStack images tend to have password logon disabled for security. You can either import a public key into OpenStack or export a private key from OpenStack under Access & Security” > “Key Pairs”.
It is easier and safer to take this approach. Perform the following on the SSH client to generate a RSA key.
ssh-keygen-trsa-fcloud.key
Copy and paste the content of cloud.key after clicking “Import Key Pair”
For multiple SSH clients and SFTP clients, the better options is to export the private key from OpenStack.Click “Create Key Pair” and save the private key locally.Change permission to 600 to secure the key immediately.
chmod600./id_rsa
Move the key to the default location.
mv./id_rsa~/.ssh
Store the key in the keychain.
ssh-add-K~/.ssh/id_rsa
It is impossible to generate a private key from a public key on most servers due to limited computing power. However, it is easy and can be handy to keep the matching public key around by running.
ssh-keygen-y-f./id_rsa>./id_rsa.pub
https://pypi.org/project/python-openstackclient/
Hi! Today we will learn how to connect M5STACK to Arduino IDE on MacOS (Fig. 1). Let's display 'HELLO MAC'.
Figure 1
MacOS has significant differences from Windows, so the connection procedure is different too. The main part of the work will be done through the standard application Terminal. You must also know the password for your account, as it is required for the driver installer to make changes.
More information about the Terminal app on the Wiki: here
We use the standard Safari browser to visit the official website of M5STACK (Fig. 2, 2.1).
Figure 2. The Safari browser on the dock bar
Figure 2.1. Address bar with the address entered
Click on the section Download, then Mac Click here (Fig. 2.2).
Figure 2.2
The download will begin. When the download is completed, click on the magnifying glass icon to open the driver installer folder (Fig. 2.3).
Figure 2.3
Open the driver installer by holding down ctrl on the keyboard and right-clicking on the icon (Fig. 2.4).
Figure 2.4
Similarly, open the driver unpack (Fig. 2.5).
Figure 2.5
Go through all the steps according to figures 2.6 - 2.11.
Figure 2.6
Figure 2.7
Figure 2.8
Figure 2.9
Figure 2.10
Figure 2.10.1
Figure 2.11
Next, you need to unlock the software driver developer. To do this, click on the Apple in the upper right corner and select the section System Preferences... (rice. 2.12).
Figure 2.12
Next, open the 'Security & Privacy' section (Fig. 2.13).
Figure 2.13
In the tab General click on the button Allow opposite this developer (Fig. 2.14).
Figure 2.14
This completes the driver installation safely!
Download Arduino IDE for MacOS under SOFTWARE on the official Arduino website here (Fig. 3)
Figure 3
After the download is complete, open the Arduino file from the downloads folder (Fig. 3.1). After the program opens, close it.
Figure 3.1
Now add libraries using the Terminal application. To do this, click the mouse on the magnifying glass icon in the upper right corner and write the name of the application (Fig. 3.2). Next, double-click to launch the application itself.
Figure 3.2
Copy (⌘C) from all text and paste (⌘V) it in Terminal, then click Enter (Fig. 3.3).
Figure 3.3
The download and installation of the required components will begin (Fig. 3.4).
Figure 3.4
At the end of the installation on the last line written will be Done (Fig. 3.5). After that, the terminal must be closed.
Figure 3.5
This completes the installation of the libraries!
Start Arduino IDE, see Fig. 3.1. Copy and paste the following text into the Arduino IDE (Fig. 4):
Figure 4
Next, set up the Board. To do this, select in the menu item Tools in the section Board: Board 'M5Stack-Core-ESP32' (Fig. 4.1).
Figure 4.1
Select a port. To do this, select the menu item Tools under Port: port /dev/cu.SLAB_USBtoUART (Fig. 4.2).
Figure 4.2
Nearly ready! Connect your M5 to your Mac using a USB-C cable and press the Upload button (Fig. 4.3).
Figure 4.3
After the firmware is successfully loaded into the device, the text will appear on the screen (Fig. 4.4).
Figure 4.4
This lesson is over 👨💻