Last active
September 18, 2023 10:09
-
-
Save elzekool/2361a764d9f5f7ec04f75b4be77380d2 to your computer and use it in GitHub Desktop.
My Hypriot OS Configuration
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
# 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