Skip to content

Instantly share code, notes, and snippets.

View jetsonhacks's full-sized avatar

JetsonHacks jetsonhacks

View GitHub Profile
@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""
@jetsonhacks
jetsonhacks / installLibfreenect2.sh
Last active April 29, 2018 14:26
Install libfreenect2 on the Jetson TK1
#!/bin/sh
#from https://github.com/xlz/libfreenect2/wiki/Jetson-TK1-HOWTO
# Install Prerequisites
#opencv-dev -> opencv4tegra-dev -> already installed from Jetpack
sudo apt-get install -y build-essential libturbojpeg libtool autoconf libudev-dev cmake mesa-common-dev freeglut3-dev libxrandr-dev doxygen libxi-dev libjpeg-turbo8-dev
# Get libfreenect2
git clone https://github.com/jetsonhacks/libfreenect2.git
# Copy nv_headers into libfreenect2/depends
@jetsonhacks
jetsonhacks / installJedroid.sh
Last active March 21, 2023 15:47
Install Jedroid onto SD card - NVIDIA Jetson TK1
#!/bin/sh
# Install Jedroid 1.3 on SD card
# Assumes a blank Ext4 formatted SD card is in the card reader
# The SD Card is not mounted
sudo mkdir /media/ubuntu/jedroidInstall
sudo mount -t ext4 /dev/mmcblk1p1 /media/ubuntu/jedroidInstall
# Get Jedroid 1.3 from Google Drives
cd ~/Downloads
wget -O jedroid_v1.31.tar.bz2 https://googledrive.com/host/0B-lsw7HiSbj8cHJNTmF2RUV6RVE
wget -O jedroid_v1.31.tar.bz2.md5sum https://googledrive.com/host/0B-lsw7HiSbj8T2xFdjZFY0VadXM