]# # BerryConda
# cd /tmp
# wget https://github.com/jjhelmus/berryconda/releases/download/v2.0.0/Berryconda3-2.0.0-Linux-armv7l.sh
# bash Berryconda3-2.0.0-Linux-armv7l.sh
# Python Packages
# conda install -y conda-build pip3 install git+https://github.com/benediktschmitt/py-filelock
# Do NOT install pyenv and virtualenv on Raspbian
# cd /tmp
# git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# cd ~/.pyenv
# git pull
# Do NOT install pyenv and virtualenv on Raspbian
# echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.bashrc
# echo 'if [ -d "${PYENV_ROOT}" ]; then' >> ~/.bashrc
# echo ' export PATH=${PYENV_ROOT}/bin:$PATH' >> ~/.bashrc
# echo ' eval "$(pyenv init -)"' >> ~/.bashrc
# echo 'fi' >> ~/.bashrc
# exec $SHELL -l
# mkdir $PYENV_ROOT/plugins
# cd $PYENV_ROOT/plugins
# git clone https://github.com/pyenv/pyenv-virtualenv.git
# pyenv install -l
# exit
# Do NOT install pyenv on Raspbian
# pyenv rehash
#pyenv install -l
#sudo apt -y install libbz2-dev libsqlite3-dev libssl-dev libreadline-dev libpng-dev zlib1g-dev libx11-dev libfreetype6-dev
#pyenv install anaconda3-5.2.0
#pyenv install 2.7.15
#pyenv versions
#exit
# conda install -y conda-build
# conda update -y pip
# conda update -y setuptools
# conda update -y conda
# conda update -y conda-build
# install virtualenv
# see https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/
# caffe-cpu - Fast, open framework for Deep Learning (Meta)
# idle-python3.5 - IDE for Python (v3.5) using Tkinter
# ipython3 - Enhanced interactive Python 3 shell
# ipython3-qtconsole - transitional dummy package for python3-qtconsole
# jupyter-nbextension-jupyter-js-widgets - Interactive widgets - Jupyter notebook extension
# libpython3-all-dev - package depending on all supported Python 3 development packages
# python3-bleach - whitelist-based HTML-sanitizing library (Python 3)
# python3-bz2file - Python3 library for reading and writing bzip2-compressed files
# python3-django - High-level Python web development framework (Python 3 version)
# python3-flask - micro web framework based on Werkzeug and Jinja2 - Python 3.x
# python3-gdal - Python 3 bindings to the Geospatial Data Abstraction Library
# python3-geopandas - Python3 tools for geographic data
# python3-h5py - general-purpose Python interface to hdf5 (Python 3)
# python3-hdf5storage - high-level utilities to read from and write to HDF5 (Python 3)
# python3-html5lib - HTML parser/tokenizer based on the WHATWG HTML5 specification
# python3-ipykernel - IPython kernel for Jupyter (Python 3)
# python3-ipython - Enhanced interactive Python shell (Python 3 version)
# python3-ipython-genutils - IPython vestigial utilities for Python 3
# python3-matplotlib - Python based plotting system in a style similar to Matlab (Python 3)
# python3-msgpack - Python 3 implementation of MessagePack format
# python3-numpy - Fast array facility to the Python 3 language
# python3-overpy - wrapper to access the OpenStreetMap Overpass API (Python 3)
# python3-pandas - data structures for "relational" or "labeled" data - Python 3
# python3-protobuf - Python 3 bindings for protocol buffers
# python3-psutil - module providing convenience functions for managing processes (Python3)
# python3-pydot - Python interface to Graphviz's dot (Python 3)
# python3-pygame - SDL bindings for games development (Python 3)
# python3-pygraphviz - Python interface to the Graphviz graph layout and visualization package (Python 3)
# python3-pylint-common - Pylint plugin for the standard Python library (Python 3)
# python3-pyproj - Python 3 interface to PROJ.4 library
# python3-redis - Persistent key-value database with network interface (Python 3 library)
# python3-scipy - scientific tools for Python 3
# python3-seaborn - statistical visualization library
# python3-six - Python 2 and 3 compatibility library (Python 3 interface)
# python3-skimage - Python 3 modules for image processing
# python3-skimage-lib - Optimized low-level algorithms for Python 3 scikit-image
# python3-sklearn - Python modules for machine learning and data mining
# python3-sklearn-lib - low-level implementations and bindings for scikit-learn - Python 3
# python3-sklearn-pandas - Pandas integration with sklearn (Python 3)
# python3-sympy - Computer Algebra System (CAS) in Python (Python3)
# python3-yaml - YAML parser and emitter for Python3
# install using packages
source /usr/local/bin/virtualenv-wrapper.sh
workon py35
#
cd /tmp
sudo apt -y install caffe-cpu
sudo apt -y install idle-python3.5
sudo apt -y install ipython3
sudo apt -y install ipython3-qtconsole
sudo apt -y install jupyter-nbextension-jupyter-js-widgets
sudo apt -y install libpython3-all-dev
sudo apt -y install python3-bleach
sudo apt -y install python3-bz2file
sudo apt -y install python3-django
sudo apt -y install python3-flask
sudo apt -y install python3-gdal
sudo apt -y install python3-geopandas
sudo apt -y install python3-h5py
sudo apt -y install python3-hdf5storage
sudo apt -y install python3-html5lib
sudo apt -y install python3-ipykernel
sudo apt -y install python3-ipython
sudo apt -y install python3-ipython-genutils
sudo apt -y install python3-matplotlib
sudo apt -y install python3-msgpack
sudo apt -y install python3-numpy
sudo apt -y install python3-overpy
sudo apt -y install python3-pandas
sudo apt -y install python3-protobuf
sudo apt -y install python3-psutil
sudo apt -y install python3-pydot
sudo apt -y install python3-pygame
sudo apt -y install python3-pygraphviz
sudo apt -y install python3-pylint-common
sudo apt -y install python3-pyproj
sudo apt -y install python3-redis
sudo apt -y install python3-scipy
sudo apt -y install python3-seaborn
sudo apt -y install python3-six
sudo apt -y install python3-skimage
sudo apt -y install python3-skimage-lib
sudo apt -y install python3-sklearn
sudo apt -y install python3-sklearn-lib
sudo apt -y install python3-sklearn-pandas
sudo apt -y install python3-sympy
sudo apt -y install python3-yaml
#
# Anaconda3 のpip install ... か github を使うもの
# instring using pip
pip install --ignore-installed altair
pip install --ignore-installed distributed
pip install --ignore-installed pillow
pip install --ignore-installed sqlite
pip install --ignore-installed gensim
pip install --ignore-installed cython
# pip install --ignore-installed opencv
pip install --ignore-installed cocos2d
pip install git+https://github.com/davisking/dlib
pip install git+https://github.com/ageitgey/face_recognition
pip install -U --ignore-installed mtcnn
pip install git+https://github.com/jrosebr1/imutils
# pip install --ignore-installed --upgrade tensorflow
pip install git+https://github.com/keras-team/keras
pip install --ignore-installed --upgrade pyglet
pip install --ignore-installed --upgrade cocos2d
pip install git+https://github.com/python-visualization/folium
pip install --ignore-installed --upgrade exifread
pip install --ignore-installed --upgrade haversine
pip install --ignore-installed --upgrade utm
# spyder, see https://pythonhosted.org/spyder/installation.html
sudo apt -y install python3-qtpy
sudo apt -y install python3-spyder
pip install --ignore-installed --upgrade --upgrade spyder_kernels
pip install --ignore-installed --upgrade --upgrade pycodestyle
pip install --ignore-installed --upgrade --upgrade rope
pip install --ignore-installed --upgrade --upgrade jedi
cd /tmp
git clone https://github.com/spyder-ide/spyder.git
cd spyder
git pull
~/.virtualenvs/py35/bin/python3 bootstrap.py
~/.virtualenvs/py35/bin/python3 setup.py install
# Python 2 環境
mkvirtualenv --python=/usr/bin/python py27
lsvirtualenv
source /usr/local/bin/virtualenv-wrapper.sh
workon py27
#
cd /tmp
sudo rm -f get-pip.py
curl -O https://bootstrap.pypa.io/get-pip.py
~/.virtualenvs/py27/bin/python get-pip.py
#
pip install numpy
pip install PyOpenGL
#
source /usr/local/bin/virtualenv-wrapper.sh
workon py35
# raspbian に oracle-java8-jdk がない。raspdesktop にはある
sudo apt -y install ant
sudo apt -y install bluej
sudo apt -y install libguava-java
sudo apt -y install greenfoot
sudo apt -y install eclipse pleiades
echo "-javaagent:/usr/share/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar " | sudo tee -a /usr/lib/eclipse/eclipse.ini
java -version
cd /tmp
sudo apt -y install libgstreamer1.0-0:amd64 libgstreamer-plugins-base1.0-0:amd64
#
sudo apt -y install r-base
echo 'options(repos="http://cran.rstudio.com"); update.packages(checkBuilt=TRUE, ask=FALSE)' | sudo R --vanilla
sudo rm /tmp/a.$$.r
echo 'source("http://bioconductor.org/biocLite.R")' > /tmp/a.$$.r
echo 'biocLite("EBImage") ' >> /tmp/a.$$.r
cat /tmp/a.$$.r | sudo R --vanilla
echo 'install.packages("dplyr", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("plyr", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("dplyr", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("reshape2", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("ggplot2", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("knitr", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("sp", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
echo 'install.packages("raster", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
sudo apt -y install gdal-bin
echo 'install.packages("rgdal", repos="http://cran.rstudio.com/", clean=TRUE, INSTALL_opts=c("--no-docs", "--no-html"))' | sudo R --vanilla
#
sudo apt -y install r-recommended
# R.Studio は書きかけ
sudo apt -y install gdebi-core
sudo apt -y install libxi6:amd64 libqt5gui5:amd64
sudo apt -y install libgl1-glvnd-nvidia-glx:amd64 libxcomposite1:amd64 libicu-dev:amd64 libxml2-dev:amd64 libxslt-dev:amd64
sudo apt -y install rstudio
if [ ! -x /usr/bin/rstudio ]; then
echo /usr/bin/rstudio
wget https://download1.rstudio.org/rstudio-xenial-1.1.453-amd64.deb
sudo dpkg -i rstudio-xenial-1.1.453-amd64.deb
fi
wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | sh
sudo apt -y install octave octave-*
sudo apt -y install android-sdk
sudo apt -y install jq
sudo apt -y install jsonlint
#
sudo apt -y install xpdf
# libgoo-canvas-perl is ubuntu only
# sudo add-apt-repository -y -n ppa:sicklylife/ppa
# sudo apt -y update
sudo apt -y install libgoo-canvas-perl
sudo apt -y install filezilla
sudo apt -y install firefox-esr
sudo apt -y install firefox-esr-l10n-ja
sudo apt -y install awscli aws-shell
# RealVNCViewer
cd /tmp
sudo apt -y install libice6 libsm6
wget https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.17.1113-Linux-x64.deb
sudo dpkg -i VNC-Viewer-6.17.1113-Linux-x64.deb
# # Visual Studio Code
# # see https://code.visualstudio.com/docs/setup/linux
# cd /tmp
# curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
# sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
# sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# sudo apt -y update
# sudo apt -y install code
# leafpad
sudo apt -y install leafpad
# gedit
sudo apt -y install gedit gedit-plugins
sudo apt -y install gedit-developer-plugins
sudo apt -y install povray povray-examples
sudo apt -y install inkscape
sudo apt -y install gimp
sudo apt -y install pinta
# Blender VR
cd /tmp
sudo rm -f blender-2.74-a8adeeb-linux-glibc211-x86_64.tar.bz2
wget ftp://blendervrdownloads:blendervr@ftp.limsi.fr/compiled/blender-2.74-a8adeeb-linux-glibc211-x86_64.tar.bz2
cd /usr/local
sudo rm -rf /usr/local/blender-2.74-a8adeeb-linux-glibc211-x86_64
sudo tar -xpvjof /tmp/blender-2.74-a8adeeb-linux-glibc211-x86_64.tar.bz2
sudo chown -R $USER /usr/local/blender-2.74-a8adeeb-linux-glibc211-x86_64
sudo rm -f /usr/bin/blendervr
sudo ln -s /usr/local/blender-2.74-a8adeeb-linux-glibc211-x86_64/blender /usr/bin/blendervr
sudo apt -y install qgis
# Debian GIS
sudo apt -y install gis-data gis-osm
# skip them for raspbian to save disk
# sudo apt -y install gis-devel gis-remotesensing gis-statistics gis-workstation
sudo apt -y install vlc
sudo apt -y install openshot
sudo apt -y install sqlitebrowser
sudo apt -y install redis-server redis-tools
# sudo apt -y install libopencv-dev opencv-data opencv-doc
source /usr/local/bin/virtualenv-wrapper.sh
workon py35
#
sudo apt -y install nvidia-cuda-dev nvidia-cuda-doc nvidia-cuda-gdb
# sudo apt -y install nvidia-cuda-toolkit
# copy python3 cv2 under .virtualenv
rm -f ~/.virtualenvs/py35/lib/python3.5/site-packages/cv2.cpython-35m-i386-linux-gnu.so
cp /tmp/opencv/build/lib/python3/cv2*.so ~/.virtualenvs/py35/lib/python3.5/site-packages
ipython << EOS
import cv2
print(cv2.__version__)
EOS
#
sudo apt -y install freecad
# Panda3d
cd /tmp
sudo rm -f master.zip
wget https://github.com/panda3d/panda3d/archive/master.zip
unzip master.zip
rm -f master.zip
cd panda3d-master
source /usr/local/bin/virtualenv-wrapper.sh
workon py35
~/.virtualenvs/py35/bin/python3 makepanda/makepanda.py --everything --installer --no-egl --no-gles --no-gles2 --no-opencv
sudo dpkg -i panda3d*.deb
# pip install --pre --extra-index-url https://archive.panda3d.org/ panda3d
sudo apt -y install docker
sudo apt -y install docker-compose
sudo apt -y install libxml2-dev libfftw3-dev libfreetype6-dev
sudo apt -y install libnlopt-dev