Skip to content

Instantly share code, notes, and snippets.

View jetsonhacks's full-sized avatar

JetsonHacks jetsonhacks

View GitHub Profile
@jetsonhacks
jetsonhacks / check_so_dependencies.sh
Created February 25, 2025 06:00
Utility script: check_so_dependencies.sh
#!/bin/bash
# Check if a library name or path was provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <library.so>"
echo "Example: $0 libopencv_core.so"
echo " $0 /path/to/cv2.cpython-38-aarch64-linux-gnu.so"
exit 1
fi
@jetsonhacks
jetsonhacks / check_so_dependencies.sh
Created February 25, 2025 05:51
Utility script: check_so_dependencies.sh
#!/bin/bash
# Check if a library name or path was provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <library.so>"
echo "Example: $0 libopencv_core.so"
echo " $0 /path/to/cv2.cpython-38-aarch64-linux-gnu.so"
exit 1
fi
@jetsonhacks
jetsonhacks / Dockerfile.oceanfft
Last active June 21, 2020 04:16
Dockerfile to build image for oceanfft container
# Copyright (c) 2020, JetsonHacks. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@jetsonhacks
jetsonhacks / Dockerfile.nbody
Last active June 21, 2020 04:54
Dockerfile for building simple nbody demo on Jetson
# Copyright (c) 2020, JetsonHacks. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@jetsonhacks
jetsonhacks / getJetsonTFBuild.sh
Last active December 18, 2018 15:10
Get the JasonAtNVIDIA JetsonTFBuild scripts without the wheel files
#!/bin/bash
cd $HOME
# Get TensorFlow build scripts from JasonAtNvidia JetsonTFBuild repository
git clone --no-checkout https://github.com/JasonAtNvidia/JetsonTFBuild.git
cd JetsonTFBuild
# Sparse checkout tells git not to checkout the wheels directory
# where all of the .whl files are kept
git config core.sparsecheckout true
# Do not checkout the wheels directory
echo '!wheels/*' >> .git/info/sparse-checkout
@jetsonhacks
jetsonhacks / CannyDetection.py
Last active June 24, 2020 15:52
Python OpenCV 3.3 NVIDIA Jetson TX example for built-in camera; L4T 28.1
#!/usr/bin/env python
# MIT License
# Copyright (c) 2017 Jetsonhacks
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@jetsonhacks
jetsonhacks / gist:acb8cc60a06e3e86defaa7fff470a8d4
Created September 8, 2016 22:36
Load ROS Rviz on Jetson TK1
#!/bin/bash
# Install rviz on the NVIDIA Jetson TK1
# Requires unsetting the GTK_IM_MODULE to avoid pcre conflict
# 9-8-2016
sudo apt-get install ros-indigo-rviz
sudo apt-get install ros-indigo-robot-model
echo "unset GTK_IM_MODULE" >> ~/.bashrc
source ~/.bashrc
@jetsonhacks
jetsonhacks / installiTorch.sh
Last active August 31, 2019 04:42
Install iTorch and prerequisites
#!/bin/sh
# Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
# This is for https://github.com/facebook/iTorch
# L4T 21.3, Torch 7 (http://torch.ch)
# Python 2.7 or greater must be installed before running this script
# Torch 7 should already be installed before running this script
# iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
# Need to compile from source as repository version libzmq3-dev is not the correct revision
wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
tar xzvf zeromq-4.0.5.tar.gz
#!/bin/sh
# Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
# This is for https://github.com/facebook/iTorch
# L4T 21.3, Torch 7 (http://torch.ch)
# iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
if [ $(id -u) != 0 ]; then
echo "This script requires root permissions"
echo "$ sudo "$0""
exit
fi
#!/bin/sh
# Install cuDNN V2 on NVIDIA Jetson TK1
# Register as a NVIDIA developer and download the cuDNN package
# Package is named cudnn-6.5-linux-ARMv7-V2.tgz
# This script and the cuDNN package should be in the same directory, usually ~/Downloads
# This script places the library and include files for cudnn in the CUDA 6.5 directories
# Make sure this is executing as root
if [ $(id -u) != 0 ]; then
echo "This script requires root permissions"
echo "$ sudo "$0""