Last active
April 22, 2019 23:45
-
-
Save ABalanuta/bf2516ca13c88ad6cdf4 to your computer and use it in GitHub Desktop.
thesisPInstall
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
all: echo_options | |
echo_options: | |
@echo '##Options##' | |
@echo '0 - Add User/Keys' | |
@echo '1 - Pre-install' | |
@echo '1b- Install Firmware with tft support' | |
@echo '2 - Install Software' | |
@echo '3 - Install Addicional Gateway Software' | |
@echo '4 - Get/Clear Application' | |
@echo '5 - X' | |
@echo '6 - Y' | |
0: #//Add User/Keys | |
@echo | |
@echo 'ssh pi@piX' | |
@echo 'pass:raspberry' | |
@echo | |
@echo 'sudo su' | |
@echo 'adduser artur-adm' | |
@echo 'pass:xxxxx' | |
@echo | |
@echo 'nano /etc/sudoers' | |
@echo //Substitute pi user by artur-adm | |
@echo | |
@echo 'exit' | |
@echo 'exit' | |
@echo | |
@echo '//Copy Key' | |
@echo 'ssh-copy-id artur-adm@piX' | |
@echo | |
@echo 'ssh artur-adm@piX' | |
@echo 'sudo deluser pi' | |
1: #//Pre-install | |
sudo aptitude purge wolfram-engine omxplayer scratch zenity midori -y | |
#https://github.com/notro/fbtft/issues/10 | |
#sudo apt-mark hold raspberrypi-bootloader | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
@echo 'Reboot the System Manually' | |
1b: #// Nostro Firmware with pitft and touch suport | |
#Firmware for the pitft | |
#https://github.com/notro/rpi-firmware | |
sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update | |
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update | |
#sudo rpi-update | |
@echo 'Reboot the System Manually' | |
2: #//Install Software | |
@echo 'Aux' | |
sudo aptitude install git vim tmux screen htop ntp | |
@echo 'GPIO' | |
sudo aptitude install python-dev python-rpi.gpio | |
@echo 'I2C' | |
sudo aptitude install python-smbus i2c-tools | |
@echo 'Mosqitto' | |
sudo aptitude install python-mosquitto | |
@echo 'Bluetooth' | |
sudo aptitude install bluez bluez-tools python-gobject python-gobject-2 | |
@echo 'SNMP' | |
sudo aptitude install snmp libsnmp-python python-pysnmp4 python-pysnmp-common | |
@echo 'WEB' | |
sudo aptitude install python-pip | |
sudo pip install flask | |
sudo pip install flask-wtf | |
sudo pip install Flask-Cache | |
sudo pip install flask-compress | |
sudo pip install Flask-Login | |
sudo pip install tornado | |
#pip install flask-login | |
#pip install flask-openid | |
#pip install sqlalchemy | |
@echo 'Mesh' | |
sudo aptitude install batctl bridge-utils iw wireless-tools iperf -y | |
3: #//Install Addicional Gateway Software | |
cd /tmp/; wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key; sudo apt-key add mosquitto-repo.gpg.key | |
cd /etc/apt/sources.list.d/; sudo wget http://repo.mosquitto.org/debian/mosquitto-stable.list | |
sudo aptitude update -y | |
sudo aptitude install mosquitto -y | |
4: #//Get/Clear Application | |
git config --global user.email AliensGoo@users.noreply.github.com | |
git config --global user.name AliensGoo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment