This file contains 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
import sys | |
import itertools | |
from pathlib import Path | |
from PIL import Image | |
def fix_dji_jpegs(path): | |
""" Load and re-save with Pillow. | |
This removes the JPEG Marker 0 that STB doesn't like. """ |
This file contains 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 | |
# Sets up the xrdp service. Use the microsoft remote desktop client and you use your ubuntu credentials to login | |
sudo apt update | |
sudo apt install xrdp | |
if ! systemctl is-active --quiet xrdp; then | |
echo "WARNING: The xrdp service is not running!" | |
fi |
This file contains 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 | |
# Script for remotely setting up VNC on a Jetson TX2 running Jetpack 4.6 over ssh | |
# You can run the script in a one shot with the following command | |
# sudo apt -y install curl && sudo /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/bgyarfas/41470dd3045519786793bad1fc744b14/raw/b7bbb04929bc764194e27d419c7cbae58bbd9508/setup_vino.sh)" | |
if [[ $EUID -ne 0 ]]; then | |
echo "$0 is not running as root. Try using sudo." | |
exit 2 | |
fi |