This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: seunghyeon.me@gmail.com | |
# run container on wsl | |
# arguments | |
REPO="dsnw/ml:ubuntu-torch-devel" | |
NAME="pytorch" | |
CONTAINER_PATH="/home/`whoami`/containers" | |
DATASETS_PATH="/mnt/d/datasets" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# OpenCV 4.8.0 Source Compile | |
# https://qengineering.eu/install-opencv-on-jetson-nano.html | |
wget https://github.com/Qengineering/Install-OpenCV-Jetson-Nano/raw/main/OpenCV-4-8-0.sh | |
sudo chmod 755 ./OpenCV-4-8-0.sh | |
./OpenCV-4-8-0.sh | |
rm OpenCV-4-8-0.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# check dev: ex) udevadm info -a -n /dev/video0 | |
#CSICAM0_NAME="CSI0" | |
#CSICAM1_NAME="CSI" | |
USBCAM0_NAME="ThermoCam160B" | |
USBCAM0_VID="1209" # vendor id | |
USBCAM0_PID="0160" # product id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TEMP_PATH="/sys/devices/virtual/thermal/thermal_zone0/temp" | |
PWM_PATH="/sys/devices/pwm-fan/target_pwm" | |
while true; do | |
TEMP=$(cat $TEMP_PATH) | |
if [ $TEMP -lt 25000 ]; then | |
PWM=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check the Docker image Version | |
# https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-ml | |
NAME="r32.7.1-py3" # for Jetson Nano (Jetpack 4.6.1) | |
#NAME="r35.2.1-py3" # for Jetson Orin Nano (Jetpack 5.1) | |
DIST="nvcr.io/nvidia/l4t-ml:$NAME" | |
xhost +local:docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo cp /etc/fstab /etc/fstab.bak | |
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab |