Skip to content

Instantly share code, notes, and snippets.

@HeatfanJohn
Last active May 6, 2019 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeatfanJohn/4aed0cfc515d8169887bb4f0dd61cce6 to your computer and use it in GitHub Desktop.
Save HeatfanJohn/4aed0cfc515d8169887bb4f0dd61cce6 to your computer and use it in GitHub Desktop.
NextThing CHIP initial setup instructions
nmcli d wifi list | more
sudo nmcli d wifi connect attwifi
mkdir .ssh
# from Linux host scp authorized_keys file
scp chip@<ip address of CHIP>:.ssh/id_rsa .ssh/id_rsa
scp chip@<ip address of CHIP>:.ssh/authorized_keys .ssh/authorized_keys
sudo apt-get update
sudo apt-get install git build-essential curl htop w3m
# Follow instructions for setting up No-IP at Gist below:
# https://gist.github.com/HeatfanJohn/25d6bbbd12a17f9744d38406db91c471
sudo apt-get install locales
sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure tzdata
# sudo apg install ntp ntpdate # May not be needed with 4.4 software
# sudo dpkg-reconfigure ntp
# Display NTP daemon status
ntpq -p
# Edit /etc/profile and edit line 7 to:
# PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
# Uncomment line 46 of ~/.bashrc to force color promots
# force_color_prompt=yes
# Create $HOME/.vimrc and /root/.vimrc to contain:
# set nocompatible
# vi edit /etc/hostname & /etc/hosts changing host name as desired
sudo hostname <new host name>
# For python perform the following:
sudo apt-get install python-pip
sudo pip install beautifulsoup4
sudo pip install mechanize
# For NodeJs perform the following:
sudo apt-get install nodejs
# Create resize utility from Gist
wget -O resize https://gist.githubusercontent.com/HeatfanJohn/b734804b80908d36cacd706e692a6546/raw/17c2f9d3b8bbc379a88a2c3fca8135cede7039e0/resize
chmod 755 resize
# Use sed to add the following to .bashrc
sed -i -f - .bashrc <<EOF
11 i\\
if [ "`tty`" = "/dev/ttyGS0" ]; then \\
export TERM='xterm' \\
source ~/resize \\
fi \\
\\
EOF
# Set static route (ip route add 10.8.0.0/24 via 192.168.1.33) using dhclient exit hooks
# Use sed to add the following to /etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes
sudo sed -i -f - /etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes <<EOF
9 i\\
\\
new_rfc3442_classless_static_routes='24 10 8 0 192 168 1 33'\\
\\
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment