AKAI TSUKI

System development or Technical something

install bash_kernel for jupyter notebook.

After installation of jupyter notebook,
I install bash kernel to jupyter notebook.

GitHub - takluyver/bash_kernel: A bash kernel for IPython

Command list

  • install bash_kernel
# pip3.5 install bash_kernel
# python3 -m bash_kernel.install
  • start jupyter notebook.
# jupyter notebook --config=.jupyter/jupyter_notebook_config.py

Detail

[root@479c57f04b63 ~]# pip3.5 install bash_kernel
Collecting bash_kernel
  Downloading bash_kernel-0.6-py2.py3-none-any.whl
Requirement already satisfied: pexpect>=4.0 in /usr/lib/python3.5/site-packages (from bash_kernel)
Requirement already satisfied: ptyprocess>=0.5 in /usr/lib/python3.5/site-packages (from pexpect>=4.0->bash_kernel)
Installing collected packages: bash-kernel
Successfully installed bash-kernel-0.6
[root@479c57f04b63 ~]# python3 -m bash_kernel.install
Installing IPython kernel spec
[root@479c57f04b63 ~]#
[root@479c57f04b63 notebook]# jupyter notebook --config=.jupyter/jupyter_notebook_config.py
[W 09:41:44.929 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 09:41:44.933 NotebookApp] Serving notebooks from local directory: /root/notebook
[I 09:41:44.933 NotebookApp] 0 active kernels
[I 09:41:44.933 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/?token=400bdbc551bed4c7e80a8fb033c0e8765649fcef561f2dca
[I 09:41:44.933 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:41:44.933 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=400bdbc551bed4c7e80a8fb033c0e8765649fcef561f2dca
[I 09:42:06.568 NotebookApp] 302 GET /?token=400bdbc551bed4c7e80a8fb033c0e8765649fcef561f2dca (192.168.0.6) 0.74ms
[I 09:42:10.533 NotebookApp] Creating new notebook in
[W 09:42:10.923 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20170212094144 (192.168.0.6) 4.94ms referer=http://192.168.0.30:18888/notebooks/Untitled.ipynb?kernel_name=bash
[I 09:42:10.974 NotebookApp] Kernel started: 62a1ca9e-9301-4e26-b10b-76c52ebe3077

Bash menu added at New.
f:id:akai_tsuki:20170212185758p:plain

the use of example for Bash
f:id:akai_tsuki:20170212185805p:plain

commit container and re-run on docker.

After I commited container to image,
I run container by saved image again and add option to publish the container’s port(8888).

Command list

  • stop container
$ docker ps
$ docker container stop work
$ docker ps
  • commit container to image
$ docker container commit -m "add python3.5 and jupyter notebook" work xxxxxxx/centos7:python3
$ docker images
  • run container
$ docker container run -d --name work2 -p 18888:8888 xxxxxxx/centos7:python3 tail -f /dev/null
$ docker ps
$ docker exec -it work2 /bin/bash

Detail

[vagrant@localhost ~]$ docker ps
CONTAINER ID        IMAGE               COMMAND               CREATED             STATUS              PORTS               NAMES
519dd98187dd        centos:7            "tail -f /dev/null"   24 hours ago        Up 24 hours                             work
[vagrant@localhost ~]$ docker container stop work
work
[vagrant@localhost ~]$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[vagrant@localhost ~]$
[vagrant@localhost ~]$ docker container commit -m "add python3.5 and jupyter notebook" work xxxxxxx/centos7:python3
sha256:3b592921ad2461a03b734d11f75cf28d1c4ea29a17e5eff981e2165e87eaf15c
[vagrant@localhost ~]$ docker images
REPOSITORY             TAG                 IMAGE ID            CREATED             SIZE
xxxxxxx/centos7        python3             3b592921ad24        10 seconds ago      429 MB
centos                 7                   67591570dd29        8 weeks ago         192 MB
[vagrant@localhost ~]$
[vagrant@localhost ~]$ docker container run -d --name work2 -p 18888:8888 xxxxxxx/centos7:python3 tail -f /dev/null
479c57f04b63d747d076389f9522462d6332aa54d40f3e603cc431a78f081037
[vagrant@localhost ~]$ docker ps
CONTAINER ID        IMAGE                     COMMAND               CREATED             STATUS              PORTS                     NAMES
479c57f04b63        xxxxxxx/centos7:python3   "tail -f /dev/null"   5 seconds ago       Up 2 seconds        0.0.0.0:18888->8888/tcp   work2
[vagrant@localhost ~]$
[vagrant@localhost ~]$ docker exec -it work2 /bin/bash
[root@479c57f04b63 /]#

Install Jupyter Notebook by pip3.5 in CentOS 7 and python 3.5

Commadn list

After Install python 3.5 in CentOS 7(docker container) - AKAI TSUKI

  • install jupyter notebook
# find / -name "pip*"
# pip3.5 -V
# pip3.5 install jupyter

Detail

[root@519dd98187dd /]# find / -name "pip*"
/usr/bin/pip3.5
/usr/lib/python3.5/site-packages/pip
/usr/lib/python3.5/site-packages/pip-9.0.1-py3.5.egg-info
/usr/lib64/python2.7/pipes.py
/usr/lib64/python2.7/pipes.pyc
/usr/lib64/python2.7/pipes.pyo
/usr/lib64/python3.5/__pycache__/pipes.cpython-35.opt-1.pyc
/usr/lib64/python3.5/__pycache__/pipes.cpython-35.opt-2.pyc
/usr/lib64/python3.5/__pycache__/pipes.cpython-35.pyc
/usr/lib64/python3.5/pipes.py
/usr/lib64/python3.5/ensurepip/_bundled/pip-9.0.1-py2.py3-none-any.whl
/usr/share/bash-completion/completions/pip3.5
/proc/sys/fs/pipe-max-size
[root@519dd98187dd /]# pip3.5 -V
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)
[root@519dd98187dd /]# pip3.5 install jupyter
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl
Collecting nbconvert (from jupyter)
  Downloading nbconvert-5.1.1-py2.py3-none-any.whl (372kB)
    100% |################################| 378kB 2.9MB/s
Collecting notebook (from jupyter)
  Downloading notebook-4.4.1-py2.py3-none-any.whl (6.9MB)
    100% |################################| 6.9MB 238kB/s
Collecting ipywidgets (from jupyter)
  Downloading ipywidgets-5.2.2-py2.py3-none-any.whl (43kB)
    100% |################################| 51kB 3.1MB/s
Collecting qtconsole (from jupyter)
  Downloading qtconsole-4.2.1-py2.py3-none-any.whl (104kB)
    100% |################################| 112kB 3.7MB/s
Collecting jupyter-console (from jupyter)
  Downloading jupyter_console-5.1.0-py2.py3-none-any.whl
Collecting ipykernel (from jupyter)
  Downloading ipykernel-4.5.2-py2.py3-none-any.whl (98kB)
    100% |################################| 102kB 3.6MB/s
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
  Downloading pandocfilters-1.4.1.tar.gz
Collecting jinja2 (from nbconvert->jupyter)
  Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB)
    100% |################################| 348kB 1.5MB/s
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
  Downloading entrypoints-0.2.2-py2.py3-none-any.whl
Collecting bleach (from nbconvert->jupyter)
  Downloading bleach-1.5.0-py2.py3-none-any.whl
Collecting mistune!=0.6 (from nbconvert->jupyter)
  Downloading mistune-0.7.3-py2.py3-none-any.whl
Collecting pygments (from nbconvert->jupyter)
  Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
    100% |################################| 849kB 1.3MB/s
Collecting testpath (from nbconvert->jupyter)
  Downloading testpath-0.3-py2.py3-none-any.whl (82kB)
    100% |################################| 92kB 4.1MB/s
Collecting traitlets>=4.2 (from nbconvert->jupyter)
  Downloading traitlets-4.3.1-py2.py3-none-any.whl (74kB)
    100% |################################| 81kB 5.2MB/s
Collecting jupyter-core (from nbconvert->jupyter)
  Downloading jupyter_core-4.2.1-py2.py3-none-any.whl (125kB)
    100% |################################| 133kB 3.3MB/s
Collecting nbformat (from nbconvert->jupyter)
  Downloading nbformat-4.2.0-py2.py3-none-any.whl (153kB)
    100% |################################| 153kB 1.8MB/s
Collecting terminado>=0.3.3; sys_platform != "win32" (from notebook->jupyter)
  Downloading terminado-0.6.tar.gz
Collecting jupyter-client (from notebook->jupyter)
  Downloading jupyter_client-4.4.0-py2.py3-none-any.whl (76kB)
    100% |################################| 81kB 2.3MB/s
Collecting tornado>=4 (from notebook->jupyter)
  Downloading tornado-4.4.2.tar.gz (460kB)
    100% |################################| 460kB 2.1MB/s
Collecting ipython-genutils (from notebook->jupyter)
  Downloading ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting widgetsnbextension>=1.2.6 (from ipywidgets->jupyter)
  Downloading widgetsnbextension-1.2.6-py2.py3-none-any.whl (1.5MB)
    100% |################################| 1.5MB 839kB/s
Collecting ipython>=4.0.0 (from ipywidgets->jupyter)
  Downloading ipython-5.2.2-py3-none-any.whl (749kB)
    100% |################################| 757kB 1.8MB/s
Collecting prompt-toolkit<2.0.0,>=1.0.0 (from jupyter-console->jupyter)
  Downloading prompt_toolkit-1.0.13-py3-none-any.whl (247kB)
    100% |################################| 256kB 3.5MB/s
Collecting MarkupSafe>=0.23 (from jinja2->nbconvert->jupyter)
  Downloading MarkupSafe-0.23.tar.gz
Collecting html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from bleach->nbconvert->jupyter)
  Downloading html5lib-0.9999999.tar.gz (889kB)
    100% |################################| 890kB 1.2MB/s
Collecting six (from bleach->nbconvert->jupyter)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting decorator (from traitlets>=4.2->nbconvert->jupyter)
  Downloading decorator-4.0.11-py2.py3-none-any.whl
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->nbconvert->jupyter)
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl
Collecting ptyprocess (from terminado>=0.3.3; sys_platform != "win32"->notebook->jupyter)
  Downloading ptyprocess-0.5.1-py2.py3-none-any.whl
Collecting pyzmq>=13 (from jupyter-client->notebook->jupyter)
  Downloading pyzmq-16.0.2-cp35-cp35m-manylinux1_x86_64.whl (3.0MB)
    100% |################################| 3.0MB 500kB/s
Collecting pexpect; sys_platform != "win32" (from ipython>=4.0.0->ipywidgets->jupyter)
  Downloading pexpect-4.2.1-py2.py3-none-any.whl (55kB)
    100% |################################| 61kB 6.6MB/s
Collecting simplegeneric>0.8 (from ipython>=4.0.0->ipywidgets->jupyter)
  Downloading simplegeneric-0.8.1.zip
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3.5/site-packages (from ipython>=4.0.0->ipywidgets->jupyter)
Collecting pickleshare (from ipython>=4.0.0->ipywidgets->jupyter)
  Downloading pickleshare-0.7.4-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
  Downloading wcwidth-0.1.7-py2.py3-none-any.whl
Installing collected packages: pandocfilters, MarkupSafe, jinja2, entrypoints, six, html5lib, bleach, mistune, pygments, testpath, ipython-genutils, decorator, traitlets, jupyter-core, jsonschema, nbformat, nbconvert, ptyprocess, tornado, terminado, pyzmq, jupyter-client, pexpect, wcwidth, prompt-toolkit, simplegeneric, pickleshare, ipython, ipykernel, notebook, widgetsnbextension, ipywidgets, qtconsole, jupyter-console, jupyter
  Running setup.py install for pandocfilters ... done
  Running setup.py install for MarkupSafe ... done
  Running setup.py install for html5lib ... done
  Running setup.py install for tornado ... done
  Running setup.py install for terminado ... done
  Running setup.py install for simplegeneric ... done
Successfully installed MarkupSafe-0.23 bleach-1.5.0 decorator-4.0.11 entrypoints-0.2.2 html5lib-0.9999999 ipykernel-4.5.2 ipython-5.2.2 ipython-genutils-0.1.0 ipywidgets-5.2.2 jinja2-2.9.5 jsonschema-2.6.0 jupyter-1.0.0 jupyter-client-4.4.0 jupyter-console-5.1.0 jupyter-core-4.2.1 mistune-0.7.3 nbconvert-5.1.1 nbformat-4.2.0 notebook-4.4.1 pandocfilters-1.4.1 pexpect-4.2.1 pickleshare-0.7.4 prompt-toolkit-1.0.13 ptyprocess-0.5.1 pygments-2.2.0 pyzmq-16.0.2 qtconsole-4.2.1 simplegeneric-0.8.1 six-1.10.0 terminado-0.6 testpath-0.3 tornado-4.4.2 traitlets-4.3.1 wcwidth-0.1.7 widgetsnbextension-1.2.6
[root@519dd98187dd /]#

Install python 3.5 in CentOS 7(docker container)

Command List

After Add IUS Community Project to Yum Repository in CentOS 7 - AKAI TSUKI

  • install and confirm python3.5
# yum install -y python35u python35u-libs python35u-devel python35u-pip
# find / -name python3.5
# python3.5 -V
  • create symbolic link.
# ln -s /usr/bin/python3.5 /usr/bin/python3
# ls -l /usr/bin/python3
# python3 -V

Detail

[root@519dd98187dd /]# yum install -y python35u python35u-libs python35u-devel python35u-pip
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * ius: ftp.neowiz.com
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package python35u.x86_64 0:3.5.3-1.ius.centos7 will be installed
---> Package python35u-devel.x86_64 0:3.5.3-1.ius.centos7 will be installed
---> Package python35u-libs.x86_64 0:3.5.3-1.ius.centos7 will be installed
---> Package python35u-pip.noarch 0:9.0.1-1.ius.centos7 will be installed
--> Processing Dependency: python35u-setuptools for package: python35u-pip-9.0.1-1.ius.centos7.noarch
--> Running transaction check
---> Package python35u-setuptools.noarch 0:30.2.0-1.ius.centos7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                                  Arch                       Version                                     Repository               Size
===============================================================================================================================================
Installing:
 python35u                                x86_64                     3.5.3-1.ius.centos7                         ius                      50 k
 python35u-devel                          x86_64                     3.5.3-1.ius.centos7                         ius                     188 k
 python35u-libs                           x86_64                     3.5.3-1.ius.centos7                         ius                     9.1 M
 python35u-pip                            noarch                     9.0.1-1.ius.centos7                         ius                     1.8 M
Installing for dependencies:
 python35u-setuptools                     noarch                     30.2.0-1.ius.centos7                        ius                     524 k

Transaction Summary
===============================================================================================================================================
Install  4 Packages (+1 Dependent package)

Total download size: 12 M
Installed size: 53 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/ius/packages/python35u-3.5.3-1.ius.centos7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEYTA
Public key for python35u-3.5.3-1.ius.centos7.x86_64.rpm is not installed
(1/5): python35u-3.5.3-1.ius.centos7.x86_64.rpm                                                                         |  50 kB  00:00:00
(2/5): python35u-devel-3.5.3-1.ius.centos7.x86_64.rpm                                                                   | 188 kB  00:00:01
(3/5): python35u-pip-9.0.1-1.ius.centos7.noarch.rpm                                                                     | 1.8 MB  00:00:02
(4/5): python35u-setuptools-30.2.0-1.ius.centos7.noarch.rpm                                                             | 524 kB  00:00:04
(5/5): python35u-libs-3.5.3-1.ius.centos7.x86_64.rpm                                                                    | 9.1 MB  00:00:13
-----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                          898 kB/s |  12 MB  00:00:13
Retrieving key from file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Importing GPG key 0x9CD4953F:
 Userid     : "IUS Community Project <coredev@iuscommunity.org>"
 Fingerprint: 8b84 6e3a b3fe 6462 74e8 670f da22 1cdf 9cd4 953f
 Package    : ius-release-1.0-14.ius.centos7.noarch (installed)
 From       : /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python35u-libs-3.5.3-1.ius.centos7.x86_64                                                                                   1/5
  Installing : python35u-3.5.3-1.ius.centos7.x86_64                                                                                        2/5
  Installing : python35u-setuptools-30.2.0-1.ius.centos7.noarch                                                                            3/5
  Installing : python35u-pip-9.0.1-1.ius.centos7.noarch                                                                                    4/5
  Installing : python35u-devel-3.5.3-1.ius.centos7.x86_64                                                                                  5/5
  Verifying  : python35u-setuptools-30.2.0-1.ius.centos7.noarch                                                                            1/5
  Verifying  : python35u-3.5.3-1.ius.centos7.x86_64                                                                                        2/5
  Verifying  : python35u-pip-9.0.1-1.ius.centos7.noarch                                                                                    3/5
  Verifying  : python35u-libs-3.5.3-1.ius.centos7.x86_64                                                                                   4/5
  Verifying  : python35u-devel-3.5.3-1.ius.centos7.x86_64                                                                                  5/5

Installed:
  python35u.x86_64 0:3.5.3-1.ius.centos7        python35u-devel.x86_64 0:3.5.3-1.ius.centos7    python35u-libs.x86_64 0:3.5.3-1.ius.centos7
  python35u-pip.noarch 0:9.0.1-1.ius.centos7

Dependency Installed:
  python35u-setuptools.noarch 0:30.2.0-1.ius.centos7

Complete!
[root@519dd98187dd /]#
[root@519dd98187dd /]# find / -name python3.5
/usr/bin/python3.5
/usr/lib/python3.5
/usr/lib64/python3.5
[root@519dd98187dd /]# python3.5 -V
Python 3.5.3
[root@519dd98187dd /]#
[root@519dd98187dd /]# ln -s /usr/bin/python3.5 /usr/bin/python3
[root@519dd98187dd /]# ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 18 Feb 11 08:48 /usr/bin/python3 -> /usr/bin/python3.5
[root@519dd98187dd /]# python3 -V
Python 3.5.3
[root@519dd98187dd /]#

Add IUS Community Project to Yum Repository in CentOS 7

Command List

  • add IUS Community Project
# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
  • yum search python35 (or something)
# yum search python3

Detail

[root@519dd98187dd /]# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
Loaded plugins: fastestmirror, ovl
ius-release.rpm                                                                                                         | 8.1 kB  00:00:00
Examining /var/tmp/yum-root-hU9pZw/ius-release.rpm: ius-release-1.0-14.ius.centos7.noarch
Marking /var/tmp/yum-root-hU9pZw/ius-release.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ius-release.noarch 0:1.0-14.ius.centos7 will be installed
--> Processing Dependency: epel-release = 7 for package: ius-release-1.0-14.ius.centos7.noarch
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                           Arch                        Version                                 Repository                         Size
===============================================================================================================================================
Installing:
 ius-release                       noarch                      1.0-14.ius.centos7                      /ius-release                      8.5 k
Installing for dependencies:
 epel-release                      noarch                      7-9                                     extras                             14 k

Transaction Summary
===============================================================================================================================================
Install  1 Package (+1 Dependent package)

Total size: 23 k
Total download size: 14 k
Installed size: 33 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for epel-release-7-9.noarch.rpm is not installed
epel-release-7-9.noarch.rpm                                                                                             |  14 kB  00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-3.1611.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-9.noarch                                                                                                     1/2
  Installing : ius-release-1.0-14.ius.centos7.noarch                                                                                       2/2
  Verifying  : ius-release-1.0-14.ius.centos7.noarch                                                                                       1/2
  Verifying  : epel-release-7-9.noarch                                                                                                     2/2

Installed:
  ius-release.noarch 0:1.0-14.ius.centos7

Dependency Installed:
  epel-release.noarch 0:7-9

Complete!
[root@519dd98187dd /]# yum search python3
Loaded plugins: fastestmirror, ovl
epel/x86_64/metalink                                                                                                    | 5.8 kB  00:00:00
epel                                                                                                                    | 4.3 kB  00:00:00
ius                                                                                                                     | 2.3 kB  00:00:00
(1/4): epel/x86_64/group_gz                                                                                             | 170 kB  00:00:00
(2/4): epel/x86_64/updateinfo                                                                                           | 733 kB  00:00:01
(3/4): ius/x86_64/primary_db                                                                                            | 195 kB  00:00:02
(4/4): epel/x86_64/primary_db                                                                                           | 4.5 MB  00:00:18
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * ius: archive.linux.duke.edu
 * updates: www.ftp.ne.jp
============================================================ N/S matched: python3 =============================================================
python3-jinja2-doc.noarch : Documentation for python3-jinja2
python3-sqlalchemy-doc.noarch : Documentation for python3-sqlalchemy
python34-autowrap.noarch : Generates Python3 Extension modules from [Cython] PXD files
python34-decorator.noarch : Module to simplify usage of decorators in python3
python34-idstools.noarch : Snort and Suricata Rule and Event Utilities For Python2 for Python3
python34-pg8000.noarch : Pure Python3 PostgreSQL Driver
python34-pika-doc.noarch : Additional API documentation for python3-python-pika
python34-pip.noarch : A tool for installing and managing Python3 packages
python34-pkgconfig.noarch : A Python3 interface to the pkg-config command line tool
python34-pyxdg.noarch : Python3 library to access freedesktop.org standards
python34-simplejson.x86_64 : Simple, fast, extensible JSON encoder/decoder for Python3
python34-whoosh.noarch : Fast, Python3 full text indexing, search, and spell checking library
python34u-debuginfo.x86_64 : Debug information for package python34u
python35u-debuginfo.x86_64 : Debug information for package python35u
python35u-hiredis-debuginfo.x86_64 : Debug information for package python35u-hiredis
python35u-lxml-debuginfo.x86_64 : Debug information for package python35u-lxml
python35u-lxml-docs.noarch : Documentation for python35u-lxml
python35u-mod_wsgi-debuginfo.x86_64 : Debug information for package python35u-mod_wsgi
python35u-postgresql-debuginfo.x86_64 : Debug information for package python35u-postgresql
python36u-debuginfo.x86_64 : Debug information for package python36u
python36u-lxml-debuginfo.x86_64 : Debug information for package python36u-lxml
uwsgi-plugin-python34u-debuginfo.x86_64 : Debug information for package uwsgi-plugin-python34u
uwsgi-plugin-python35u-debuginfo.x86_64 : Debug information for package uwsgi-plugin-python35u
uwsgi-plugin-python36u-debuginfo.x86_64 : Debug information for package uwsgi-plugin-python36u
python-fastcache.x86_64 : C implementation of python3 lru_cache
python2-whoosh.noarch : Fast, Python3 full text indexing, search, and spell checking library
python3-pkgversion-macros.noarch : Convenience macros for Fedora/EPEL Python 3 packages building
python3-pyudev.noarch : A libudev binding
python3-rpdb.noarch : A wrapper around pdb allowing remote debugging
python3-rpm-macros.noarch : RPM macros for building Python 3 packages
python3-tornado-doc.x86_64 : Examples for python-tornado
python3-uwsgidecorators.x86_64 : Python 3 decorators providing access to the uwsgi API
python34.x86_64 : Version 3 of the Python programming language aka Python 3000
python34-Cython.x86_64 : A language for writing Python 3.4 extension modules
python34-PyYAML.x86_64 : YAML parser and emitter for Python 3.4
python34-apsw.x86_64 : Another Python SQLite Wrapper
python34-arrow.noarch : Better dates and times for Python
python34-attrs.noarch : Python attributes without boilerplate
python34-backports_abc.noarch : A backport of recent additions to the 'collections.abc' module
python34-bitarray.x86_64 : Efficient Array of Booleans --C Extensions
python34-bottle.noarch : Fast and simple WSGI-framework for small web-applications
python34-breathe.noarch : Adds support for Doxygen xml output to reStructuredText and Sphinx
python34-chai.noarch : Easy to use mocking/stub framework
python34-chardet.noarch : Character encoding auto-detection in Python 3
python34-contextlib2.noarch : Backports and enhancements for the contextlib module
python34-cookies.noarch : Friendlier RFC 6265-compliant cookie parser/renderer
python34-coverage.x86_64 : Code coverage testing module for Python 34
python34-crypto.x86_64 : Cryptography library for Python 3
python34-cytoolz.x86_64 : Cython implementation of the toolz package
python34-dateutil.noarch : Powerful extensions to the standard datetime module
python34-dbus.x86_64 : D-Bus bindings for python 3.4
python34-debug.x86_64 : Debug version of the Python 3 runtime
python34-devel.x86_64 : Libraries and header files needed for Python 3 development
python34-ecdsa.noarch : ECDSA cryptographic signature library
python34-flufl-testing.noarch : Small collection of test tool plugins
python34-idna.noarch : Internationalized Domain Names in Applications (IDNA)
python34-ipython_genutils.noarch : IPython vestigial utilities
python34-ivi.noarch : Python Interchangeable Virtual Instrument Library
python34-jinja2.noarch : General purpose template engine
python34-jsmva.noarch : TMVA interface used by JupyROOT
python34-jupyroot.x86_64 : ROOT Jupyter kernel
python34-keyring.noarch : Python 3 library to access the system keyring service
python34-libs.x86_64 : Python 3 runtime libraries
python34-llfuse.x86_64 : Python Bindings for the low-level FUSE API Python 3.4 packages
python34-lxc.x86_64 : Python binding for lxc
python34-lz4.x86_64 : LZ4 Bindings for Python 3
python34-markupsafe.x86_64 : Implements a XML/HTML/XHTML Markup safe string for Python
python34-mock.noarch : A Python Mocking and Patching Library for Testing
python34-msgpack.x86_64 : A Python MessagePack (de)serializer
python34-nose.noarch : Discovery-based unittest extension for Python 3.4
python34-numexpr.x86_64 : Fast numerical array expression evaluator for Python and NumPy
python34-numpy.x86_64 : A fast multidimensional array facility for Python 3.4
python34-numpy-f2py.x86_64 : f2py for numpy
python34-paramiko.noarch : SSH2 protocol library for python
python34-pdfminer.noarch : PDF parser and analyzer
python34-pika.noarch : AMQP 0-9-1 client library for Python 3
python34-ply.noarch : Python Lex-Yacc
python34-prelude.x86_64 : Python 3 bindings for prelude
python34-preludedb.x86_64 : Python 3 bindings for preludedb
python34-py.noarch : Library with cross-python path, ini-parsing, io, code, log facilities
python34-pycmd.noarch : Tools for managing/searching Python related files
python34-pycosat.x86_64 : Python bindings to picosat (a SAT solver)
python34-pycurl.x86_64 : Python interface to libcurl for Python 3
python34-pyflakes.noarch : A simple program which checks Python source files for errors
python34-pypandoc.noarch : Thin wrapper for pandoc
python34-pyroute2.noarch : Pure Python netlink library
python34-pysocks.noarch : A Python SOCKS client module
python34-pytest.noarch : Simple powerful testing with Python
python34-pytest-catchlog.noarch : py.test plugin to catch log messages (fork of pytest-capturelog)
python34-pytg.noarch : Python package that communicates with the Telegram CLI
python34-pytz.noarch : World Timezone Definitions for Python
python34-rencode.x86_64 : Web safe object pickling/unpickling
python34-requests.noarch : HTTP library, written in Python, for human beings
python34-root.x86_64 : Python extension for ROOT
python34-scandir.x86_64 : A better directory iterator and faster os.walk() for Python
python34-setuptools.noarch : Easily build and distribute Python 34 packages
python34-setuptools_scm.noarch : The blessed package to manage your versions by scm tags
python34-simplepath.noarch : A python library for data-structure lookup
python34-six.noarch : Python 2 and 3 compatibility utilities
python34-sphinx-autobuild.noarch : Watch a Sphinx directory and rebuild the documentation
python34-sphinx-theme-alabaster.noarch : Configurable sidebar-enabled Sphinx theme
python34-spur.noarch : Run commands locally or over SSH using the same interface
python34-sqlalchemy.x86_64 : Modular and flexible ORM library for python
python34-suds.noarch : A python SOAP client
python34-test.x86_64 : The test modules from the main python 3 package
python34-tinydb.noarch : TinyDB is a tiny, document oriented database
python34-tkinter.x86_64 : A GUI toolkit for Python 3
python34-tools.x86_64 : A collection of tools included with Python 3
python34-toolz.noarch : A functional standard library for Python 3.4
python34-tornado.x86_64 : Scalable, non-blocking web server and tools
python34-unidiff.noarch : Python library to parse and interact with unified diffs (patches)
python34-urllib3.noarch : Python 3.4 HTTP library with thread-safe connection pooling and file post
python34-vxi11.noarch : Python implementation of the VXI-11 protocol
python34-wrapt.x86_64 : A Python module for decorators, wrappers and monkey patching
python34-zope-event.noarch : Zope Event Publication
python34-zope-interface.x86_64 : Zope 3 Interface Infrastructure
python34u.x86_64 : Version 3 of the Python programming language aka Python 3000
python34u-debug.x86_64 : Debug version of the Python 3 runtime
python34u-devel.x86_64 : Libraries and header files needed for Python 3 development
python34u-libs.x86_64 : Python 3 runtime libraries
python34u-pip.noarch : A tool for installing and managing Python packages
python34u-redis.noarch : Python client for Redis key-value store
python34u-setuptools.noarch : Easily build and distribute Python packages
python34u-test.x86_64 : The test modules from the main python 3 package
python34u-tkinter.x86_64 : A GUI toolkit for Python 3
python34u-tools.x86_64 : A collection of tools included with Python 3
python34u-wheel.noarch : A built-package format for Python 3.4
python35u.x86_64 : Version 3 of the Python programming language aka Python 3000
python35u-debug.x86_64 : Debug version of the Python 3 runtime
python35u-devel.x86_64 : Libraries and header files needed for Python 3 development
python35u-hiredis.x86_64 : Python wrapper for hiredis
python35u-libs.x86_64 : Python 3 runtime libraries
python35u-lxml.x86_64 : ElementTree-like Python bindings for libxml2 and libxslt
python35u-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache
python35u-pip.noarch : A tool for installing and managing Python packages
python35u-postgresql.x86_64 : Connect to PostgreSQL with Python 3
python35u-redis.noarch : Python 3 interface to the Redis key-value store
python35u-setuptools.noarch : Easily build and distribute Python packages
python35u-test.x86_64 : The test modules from the main python 3 package
python35u-tkinter.x86_64 : A GUI toolkit for Python 3
python35u-tools.x86_64 : A collection of tools included with Python 3
python36u.x86_64 : Version 3 of the Python programming language aka Python 3000
python36u-debug.x86_64 : Debug version of the Python 3 runtime
python36u-devel.x86_64 : Libraries and header files needed for Python 3 development
python36u-libs.x86_64 : Python 3 runtime libraries
python36u-lxml.x86_64 : XML processing library combining libxml2/libxslt with the ElementTree API
python36u-pip.noarch : A tool for installing and managing Python packages
python36u-setuptools.noarch : Easily build and distribute Python packages
python36u-test.x86_64 : The test modules from the main python 3 package
python36u-tkinter.x86_64 : A GUI toolkit for Python 3
python36u-tools.x86_64 : A collection of tools included with Python 3
uwsgi-plugin-python3.x86_64 : uWSGI - Plugin for Python 3 support
uwsgi-plugin-python34u.x86_64 : uWSGI - Plugin for Python support
uwsgi-plugin-python35u.x86_64 : uWSGI - Plugin for Python support
uwsgi-plugin-python36u.x86_64 : uWSGI - Plugin for Python support
znc-modpython.x86_64 : python3 module for ZNC

  Name and summary matches only, use "search all" for everything.
[root@519dd98187dd /]#

Install iproute in docker container (centos7).

I did not use ip/ss commands in default centos7 container.
So, I install iproute package to container.

Command list

  • install iproute
# yum install iproute

Detail

[root@519dd98187dd /]# yum install iproute
Loaded plugins: fastestmirror, ovl
base                                                                                                               | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                               | 6.4 kB  00:00:00
epel                                                                                                               | 4.3 kB  00:00:00
extras                                                                                                             | 3.4 kB  00:00:00
ius                                                                                                                | 2.3 kB  00:00:00
updates                                                                                                            | 3.4 kB  00:00:00
(1/3): epel/x86_64/updateinfo                                                                                      | 734 kB  00:00:01
(2/3): ius/x86_64/primary_db                                                                                       | 195 kB  00:00:01
(3/3): epel/x86_64/primary_db                                                                                      | 4.5 MB  00:00:03
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * ius: mirrors.kernel.org
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package iproute.x86_64 0:3.10.0-74.el7 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-3.10.0-74.el7.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-3.10.0-74.el7.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-3.10.0-74.el7.x86_64
--> Running transaction check
---> Package iptables.x86_64 0:1.4.21-17.el7 will be installed
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-17.el7.x86_64
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-17.el7.x86_64
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
--> Running transaction check
---> Package libnetfilter_conntrack.x86_64 0:1.0.4-2.el7 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================
 Package                                    Arch                       Version                             Repository                Size
==========================================================================================================================================
Installing:
 iproute                                    x86_64                     3.10.0-74.el7                       base                     618 k
Installing for dependencies:
 iptables                                   x86_64                     1.4.21-17.el7                       base                     426 k
 libmnl                                     x86_64                     1.0.3-7.el7                         base                      23 k
 libnetfilter_conntrack                     x86_64                     1.0.4-2.el7                         base                      53 k
 libnfnetlink                               x86_64                     1.0.1-4.el7                         base                      26 k

Transaction Summary
==========================================================================================================================================
Install  1 Package (+4 Dependent packages)

Total download size: 1.1 M
Installed size: 3.1 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): libmnl-1.0.3-7.el7.x86_64.rpm                                                                               |  23 kB  00:00:00
(2/5): iptables-1.4.21-17.el7.x86_64.rpm                                                                           | 426 kB  00:00:00
(3/5): libnetfilter_conntrack-1.0.4-2.el7.x86_64.rpm                                                               |  53 kB  00:00:00
(4/5): libnfnetlink-1.0.1-4.el7.x86_64.rpm                                                                         |  26 kB  00:00:00
(5/5): iproute-3.10.0-74.el7.x86_64.rpm                                                                            | 618 kB  00:00:00
------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                     1.6 MB/s | 1.1 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libmnl-1.0.3-7.el7.x86_64                                                                                              1/5
  Installing : libnfnetlink-1.0.1-4.el7.x86_64                                                                                        2/5
  Installing : libnetfilter_conntrack-1.0.4-2.el7.x86_64                                                                              3/5
  Installing : iptables-1.4.21-17.el7.x86_64                                                                                          4/5
  Installing : iproute-3.10.0-74.el7.x86_64                                                                                           5/5
  Verifying  : libnetfilter_conntrack-1.0.4-2.el7.x86_64                                                                              1/5
  Verifying  : libnfnetlink-1.0.1-4.el7.x86_64                                                                                        2/5
  Verifying  : iptables-1.4.21-17.el7.x86_64                                                                                          3/5
  Verifying  : libmnl-1.0.3-7.el7.x86_64                                                                                              4/5
  Verifying  : iproute-3.10.0-74.el7.x86_64                                                                                           5/5

Installed:
  iproute.x86_64 0:3.10.0-74.el7

Dependency Installed:
  iptables.x86_64 0:1.4.21-17.el7             libmnl.x86_64 0:1.0.3-7.el7           libnetfilter_conntrack.x86_64 0:1.0.4-2.el7
  libnfnetlink.x86_64 0:1.0.1-4.el7

Complete!
[root@519dd98187dd /]#
[root@519dd98187dd /]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
14: eth0@if15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.2/16 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:acff:fe11:2/64 scope link
       valid_lft forever preferred_lft forever
[root@519dd98187dd /]# ss -t
State      Recv-Q Send-Q                      Local Address:Port                                       Peer Address:Port
[root@519dd98187dd /]# ss -ta
State      Recv-Q Send-Q                      Local Address:Port                                       Peer Address:Port
LISTEN     0      128                             127.0.0.1:ddi-tcp-1                                             *:*
LISTEN     0      128                                   ::1:ddi-tcp-1                                            :::*
[root@519dd98187dd /]# ss -tan
State      Recv-Q Send-Q                        Local Address:Port                                       Peer Address:Port
LISTEN     0      128                               127.0.0.1:8888                                                  *:*
LISTEN     0      128                                     ::1:8888                                                 :::*
[root@519dd98187dd /]#

install docker-compose 1.10.1 on CentOS 7

install

I failed to get docker-compose as follows:

[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/dock
er-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
-bash: /usr/local/bin/docker-compose: Permission denied
[vagrant@localhost ~]$

so, At first, I saved docker-compose to temporary directory.
and I moved file as follows:

[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /tmp/
-bash: /tmp/: Is a directory
[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /tmp/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   600    0   600    0     0    595      0 --:--:--  0:00:01 --:--:--   596
100 7930k  100 7930k    0     0   713k      0  0:00:11  0:00:11 --:--:--  811k
[vagrant@localhost ~]$ ls -l /tmp/
total 7936
-rw-rw-r-- 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
-rwxrwxr-x 1 vagrant vagrant      33 Feb  5 15:43 vagrant-shell
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 0
[vagrant@localhost ~]$ mv /tmp/docker-compose /usr/local/bin/
mv: cannot move ‘/tmp/docker-compose’ to ‘/usr/local/bin/docker-compose’: Permission denied
[vagrant@localhost ~]$ sudo mv /tmp/docker-compose /usr/local/bin/
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 7932
-rw-rw-r-- 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
[vagrant@localhost ~]$ chmod +x /usr/local/bin/docker-compose
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 7932
-rwxrwxr-x 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
[vagrant@localhost ~]$ docker

check version

[vagrant@localhost ~]$ docker-compose --version
docker-compose version 1.10.1, build b252738
[vagrant@localhost ~]$