Making sure CUDA is installed in Jetson Nano

Type in nvcc –version from your Jetson Nano terminal is the sure way.

If the nvcc is missing, it could mean that the jetson-toolkit were not installed, or the binaries was not added to your session.

To reassociate your user to installed nvcc

The commands to reassociate.

Continue reading

h5py python causes TensorFlow installation error for Jetson Nano

After forcing the Jetson OS (based on the ubuntu 18.04) to have Python 3.8 running. After having the JetPack 4.6.3 installed in the Jetson Nano Jetson OS.

When attempting to install TensorFlow 2+ manually in the Jetson Nano based on Official TensorFlow for Jetson Nano! – Jetson & Embedded Systems / Jetson Nano – NVIDIA Developer Forums

Running the installation in Jetson Nano

Or running the pip3 install command:

sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v46 tensorflow

After a long time installing all the dependency for TensorFlow. A dreaded error message will occur.

ERROR: Failed to build installable wheels for some pyproject.toml based projects (h5py)

ERROR: Failed to build installable wheels for some pyproject.toml based projects (h5py)

To understand the error, scroll up to read what are the error.

Continue reading

Extending or upgrade the seeed reComputer J1020

Part number used for the board in the seeed reComputer J1020 connecting to the nVidia Jetson SODIMM module is reComputer J202 – Carrier Board for Jetson Xavier NX/Nano/TX2 NX.

reComputer J202 Carrier Board for Jetson Xavier NX with compact function design and same size of NVIDIA® Jetson Xavier NX™ carrier board – Seeed Studio

Based on the spec sheet in the web site above, the J202 carrier board. Can be used to host the Jetson Xavier NX, Jetson Nano and Jetson TX2 NX.

Other than the Jetson Nano, any other Jetson module that is compatible with the J202 carrier board will requires a heatsink with active fan.

Recommended heatsink with active fan Manufacturer Part Number (MPN)s are as follows:

ATS-NVA-2781-C1-R0

114992687

Adding compatible SSD into seeed reComputer J1020

Adding SSD into will requires M.2 nvme into the reComputer J1020, this post is based on Memory Expansion | Seeed Studio Wiki

The documentation is a bit vague on the NVMe SSD to be used other than very basic instructions. However, in my attempt it is smooth.

The SSD that was chosen as the expansion storage is the Kingston NV2 PCIe NVMe M.2 500GB. The J1020 requires the SSD to be M key.

Kingston NV2 PCIe NVMe M.2 500GB, M key
Continue reading

Playing Terraform for AWS

This post is based on terraform tutorial Build infrastructure | Terraform | HashiCorp Developer

Make sure AWSCli being installed and configured correctly (aws configure). Make sure IAM user are configured with AWS role, AWS Access key ID and AWS Secret Access Key.

Use the ami catalog, to determine the ami ID, then after make necessary changes run the init

Result of terraform init
terraform plan will show configuration to be applied once init are successful
AWS EC2 creation failed

To solve this VPC and subnet needs to be created first.

Creation of VPC completed, copy the DMZ subnet ID

Make small change to the EC2 instance of terraform file.

Add DMZ subnet to the terraform file

Rerun the terraform init, terraform plan, terraform validate before rerunning terraform apply, then type yes.

EC2 provisioning Completed
Cleaning up, terraform destroy

To clean up the experiment to avoid paying more, start by destroying the instance then the VPC.

Terraform code is available at https://bitbucket.org/KarMeng/terraform_aws

Experimenting with Terraform

All the experience in this post is based on Install Terraform | Terraform | HashiCorp Developer

After terraform init, terraform apply needs confirmation of “yes” before applying into environment

Feels like running ansible but simpler, as the tutorial of quickstart runs on docker engine.

After applying terraform, confirm the nginx is running

Further confirmation running browser to browse the site.

The terraform tutorial are running nginx at port 8000 of your host machine.
If you preferred curl

How to use docker compose to setup AWStats

Have added changes to incorporate both generating AWStats logs and starting up AWStats service in a single docker compose file at KarMeng / docker_awstats — Bitbucket

Sample docker compose for AWStats

This is an easy and simple example that beginners can use to generate web statistics using AWStats.

Required softwares:
Hashicorp Vagrant 2.4.1
Oracle VirtualBox 7.0.14

Continue reading

ElasticSearch 8.12 docker compose do not work

Error message exited 137

The first error that will be face on get go is the error “kibana Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap” and exiting error “dependency failed to start: container docker-es03-1 exited (137)”.

Searching mentioned error on google or the internet will yield result that advice swap memory and memory limit hit.

Continue reading