Skip to content

Instantly share code, notes, and snippets.

@elzekool
Last active September 18, 2023 10:09
Show Gist options
  • Save elzekool/2361a764d9f5f7ec04f75b4be77380d2 to your computer and use it in GitHub Desktop.
Save elzekool/2361a764d9f5f7ec04f75b4be77380d2 to your computer and use it in GitHub Desktop.
My Hypriot OS Configuration
# Install basic tools (git/vim/i2c-tools)
sudo apt-get update
sudo apt-get install -y \
git \
vim \
i2c-tools \
avahi-utils
# Enable I2C
# See https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c#installing-kernel-support-manually
echo "dtparam=i2c1=on" | sudo tee -a /boot/config.txt
echo "dtparam=i2c_arm=on" | sudo tee -a /boot/config.txt
echo "i2c-bcm2708" | sudo tee -a /etc/modules
echo "i2c-dev" | sudo tee -a /etc/modules
# Disable Serial Console
sudo sed -i 's/console=ttyAMA0,115200//' /boot/cmdline.txt
sudo sed -i 's/kgdboc=ttyAMA0,115200//' /boot/cmdline.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment