Raspberry pi 3+ <- MPI

$ sudo apt update

$ sudo apt upgrade

$ sudo apt install build-essential

$ sudo apt install manpages-dev

$ sudo apt install gfortran

$ sudo apt install nfs-common

$ sudo apt install nfs-kernel-server

$ sudo apt install vim

$ sudo apt install openmpi-bin

$ sudo apt install libopenmpi-dev

$ sudo apt install openmpi-doc

$ sudo apt install keychain

$ sudo apt install nmap

Jetson nano 2GB

->CUI

$ sudo systemctl set-default multi-user.target

->GUI

$ sudo systemctl set-default graphical.target

->VNC configuration ( ref.nvidia )

$ mkdir -p ~/.config/autostart

$ cp /usr/share/applications/vino-server.desktop ~/.config/autostart/.

$ gsettings set org.gnome.Vino prompt-enabled false

$ gsettings set org.gnome.Vino require-encryption false

# Replace thepassword with your desired password

$ gsettings set org.gnome.Vino authentication-methods “[‘vnc’]”

$ gsettings set org.gnome.Vino vnc-password $(echo -n ‘thepassword’|base64)

->LXDE auto-login /etc/lightdm/lightdm.conf

autologin-user=<YOUR USER>

autologin-user-timeout=0

IR remote (TV) /w pigpio

index2.html

<html>
<head>
 <title>SHARP TV Remote Controller</title>
</head>
 <body>
  <form action=”/cgi-bin/pwon.cgi” method=”POST”>
   <input type=”submit” value=”PowerON/OFF” style=”font-size:500%”>
  </form>
  <form action=”/cgi-bin/vlup.cgi” method=”POST”>
   <input type=”submit” value=”Volume Up” style=”font-size:500%”>
  </form>
  <form action=”/cgi-bin/vldn.cgi” method=”POST”>
   <input type=”submit” value=”Volume Down” style=”font-size:500%”>
  </form>
  <form action=”/cgi-bin/chup.cgi” method=”POST”>
   <input type=”submit” value=”Channel Up” style=”font-size:500%”>
  </form>
  <form action=”/cgi-bin/chdn.cgi” method=”POST”>
   <input type=”submit” value=”Channel Down” style=”font-size:500%”>
  </form>
  <form action=”/cgi-bin/chvw.cgi” method=”POST”>
   <input type=”submit” value=”View” style=”font-size:500%”>
  </form>
 </body>
</html>

pwon.cgi

#!/bin/bash
python3 ./irrp.py -p -g13 -f ./codes tv:onoff 
cat <<END
Content-type: text/html

<html>
 <head>
  <meta http-equiv=”refresh” content=”0.5;url=http://192.168.1.42/~pi/index2.html” />
 </head>
</html>
END
—-

Apahe2 CGI(root)

$ sudo a2enmod userdir  # enabling module userdir
$ sudo ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load  # enabling CGI

/etc/apache2/sites-available/000-default.conf 
 -> Include conf-available/serve-cgi-bin.conf

/etc/apache2/mods-available/mime.conf
 -> AddHandler cgi-script .cgi .py
     Options +ExecCGI

/etc/sudoers.d/010_www-data-nopasswd
 ->www-data ALL=(ALL) NOPASSWD: ALL

/etc/apache2/conf-available/serve-cgi-bin.conf
 ->ScriptAlias /cgi-bin/ /home/pi/public_html/cgi-bin
    <Directory “/home/pi/public_html/cgi-bin”> 

$sudo gpasswd -a  www-data gpio
  -> user:www-data   +add gpio group. 

ubuntu 18.04 proxy

.profile

PROXY_URL=”http://proxy_url:port_num/”

HTTP_PROXY=$PROXY_URL
HTTPS_PROXY=$PROXY_URL
http_proxy=$PROXY_URL
https_proxy=$PROXY_URL
export HTTP_PROXY HTTPS_PROXY http_proxy https_proxy

raspberry pi 3 B+

pi@raspberrypi:~ $ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=JP

network={
ssid=”xxxx”
scan_ssid=1
psk=”xxxx”
key_mgmt=WPA-PSK
}

pi@raspberrypi:~ $ tail /etc/dhcpcd.conf
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1

# fallback to static profile on eth0
#interface eth0
#fallback static_eth0

interface wlan0
inform 192.168.1.xx

CentOS 7 <- tensorflow

$ wget https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86_64.sh
$ sh Anaconda2-5.0.1-Linux-x86_64.sh
$ source ~/.bashrc
$ conda create -n tensorflow python=2.7
$ source activate tensorflow
$ pip install –ignore-installed –upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl
$ export TENSORFLOW=”~/anaconda2/lib/python2.7/site-packages/tensorflow:$PATH”

—python3.6
$ conda create -n tf36 python=3.6
$ source activate tf36
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp36-cp36m-linux_x86_64.whl
$ pip install –ignore-installed –upgrade $TF_BINARY_URL
$ conda install -c anaconda numpy=1.12.1
$ conda install -c menpo opencv3=3.1.0
$ conda install -c anaconda pillow=4.0.0
$ conda install keras