2.9.1 HCI Application Environment Setup
Prerequisites
1) Install VMware Workstation Player
VMware Workstation Player is a powerful virtualization software that enables you to run multiple operating systems as virtual machines on your Linux PC. Follow these steps to set it up:
Download: Visit the official VMware website and download VMware Workstation Player suitable for your Linux distribution.
Installation: Install VMware Workstation Player following the installation instructions for your specific Linux distribution.Install ubuntu
Ubuntu will be used as the guest operating system within the virtual machine. Here's how to set up Ubuntu:
Download: Obtain the Ubuntu ISO file from the official Ubuntu website.
Installation: Install Ubuntu on your virtual machine following the installation steps during the VMware setup process
Virtual Machine Setup
- Launch VMware Workstation Player.
Start VMware Workstation Player on your Linux PC.
- Create a New Virtual Machine
Click "Create a New Virtual Machine" to start the virtual machine creation process.
- Choose Ubuntu ISO File
- Select the Ubuntu ISO file that you downloaded earlier for installation.
- Specify disk capacity.
- The default 20G is sufficient, as it will grow dynamically as needed.
- Select "Normal installation"Choose the "Normal installation" option to proceed.
- Erase Disk and Install Ubuntu
Setting up Shared Folders
Configuring Chimera
- Enable USB Compatibility
- Within VMware, ensure USB compatibility is set to USB 3.1 for optimal performance.
- Connect to MCP2200 in VMware
- Establish a connection to MCP2200, a USB-to-serial converter, within the virtual machine.
- Identify TTY Device Node
- Execute the following command to find out which TTY device node MCP2200 is mounted on. Note the device node; for example, it might be ttyACM0.
~$ sudo hciattach /dev/ttyACM0 any 115200
Install Tool & Library
2) install make and gcc
- sudo apt install make
- sudo apt install gcc
- sudo apt install g++
- sudo apt-get install libreadline-dev
- How to Use:
5. some header files could be report missing when compile
- fatal error: glibconfig.h: No such file or directory
- fatal error: dbus/dbus-arch-deps.h: No such file or directory
add "SET (DBUS_EXT_HEADER /lib/x86_64-linux-gnu/dbus-1.0/include)" in CMakeLists.txt
3) install gdbus
- GDBus is an implementation of D-Bus based on GIO streams included in GLib, aiming to be used by GTK+ and GNOME. GDBus is not a wrapper of libdbus, but a complete and independent reimplementation of the D-Bus specification and protocol. MATE Desktop and Xfce (version 4.14), which are also based on GTK+ 3, also use GDBus. (ref: https://en.wikipedia.org/wiki/D-Bus#GDBus)
- sudo apt-get install libglib2.0-dev
- sudo apt-get install libdbus-1-dev
- confirmation:
Utility Install
d-feet is a D-Bus debugger that allow you to: * View names on the session and system bus. It is helpful to review what object holds in "org.bluez".
- sudo apt install d-feet