Created
January 3, 2016 23:08
-
-
Save oskarpearson/b5b24a725a04e4932c33 to your computer and use it in GitHub Desktop.
Prepping for OpenAPS install on an Intel Edison
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
# Install UbiLinux | |
Follow the instructions on https://learn.sparkfun.com/tutorials/loading-debian-ubilinux-on-the-edison and then continue here. | |
# Initial Setup | |
Log in as edison/edison via serial console | |
su - | |
echo FIXME-thehostname-you-want > /etc/hostname | |
nano /etc/network/interfaces | |
- Uncomment 'auto wlan0' | |
- Don't uncomment or add in eth0 | |
- Set wpa-ssid to your wifi network name | |
- Set wpa-psk to the password for your wifi network | |
passwd root # set a secure password | |
passwd edison # set a secure password | |
reboot # to set hostname and configure wifi | |
# Update package Repositories | |
su - | |
sed -i '/^deb http...ubilinux.*$/d' /etc/apt/sources.list | |
dpkg -P nodejs nodejs-dev | |
apt-get update && apt-get -y dist-upgrade && apt-get -y autoremove | |
apt-get install -y sudo strace tcpdump && adduser edison sudo && adduser edison dialout | |
Next, copy your ssh key to the edison if appropriate, and run 'reboot' to upgrade your kernels and clear out logged in sessions and IDs | |
# Upgrade | |
Log in as edison / your password. You can do this via Wifi or over serial console if you wish. | |
sudo -i | |
sed -i 's/wheezy/jessie/g' /etc/apt/sources.list | |
rm -f /etc/apt/sources.list.d/nodesource.list | |
sudo apt-get update | |
sudo apt-get -y install apt dpkg aptitude | |
- Yes to restart services if it asks you | |
sudo apt-get -y upgrade # NOT dist-upgrade | |
- Yes to restarting services (including ssh - should not log you off) | |
# - Yes to disabling root ssh login | |
# - /etc/securetty - Enter 'Y' to keep the maintainer's version | |
# - /etc/init.d/hostapd - Enter 'Y' to keep the maintainer's version | |
sudo apt-get -y autoremove | |
sudo rm -f /var/cache/apt/archives/*.deb | |
sudo reboot | |
Then install openaps as per the usual instructions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment