AKAI TSUKI

System development or Technical something

Upgrade Docker from 1.13.0 to 1.13.1 on CentOS 7

Command List $ docker version $ yum makecache fast $ sudo yum -y upgrade docker-engine $ docker version Detail upgrade docker [vagrant@localhost ~]$ docker version Client: Version: 1.13.0 API version: 1.25 Go version: go1.7.3 Git commit: 4…

Create a Vagrant Base Box from a VM.

Command list >vagrant status >vagrant halt >vagrant status >vagrant package --output centos7test.box >vagrant box list >vagrant box add centos7test centos7test.box >vagrant box list Detail from vagrant help e:\VM\centos01>vagrant package -…

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 sta…

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 $ do…

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…

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 sy…

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/…

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 …

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/d…

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7. (Reference) https://docs.docker.com/engine/installation/linux/centos/ add repo to yum install hello world setting add repo to yum [vagrant@localhost ~]$ sudo yum install -y yum-utils Loaded plugins…

resize file system in Cent OS 7

ref:Create Physical volume in Linux CentOS - AKAI TSUKI add physical volume to volume group expand the logical volume resize file system size Add Physical Volume to Volume Group before # pvs PV VG Fmt Attr PSize PFree /dev/sda2 cl lvm2 a--…

Create Physical volume in Linux CentOS

Check disk mount and type with df # df -khT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/cl-root xfs 35G 1.2G 34G 4% / devtmpfs devtmpfs 1.9G 0 1.9G 0% /dev tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs tmpfs 1.9G 8.3M 1.9G 1% /…

Create LVM type partition in Linux CentOS 7 by fdisk

create /dev/sda3 # fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sda: 85.9 GB, 85899345…

Use docker container for ssh test.

https://hub.docker.com/r/jdeathe/centos-ssh/ [root@localhost ~]# docker run -d \ > --name ssh.pool-1.1.1 \ > -p 2020:22 \ > jdeathe/centos-ssh:centos-7 Unable to find image 'jdeathe/centos-ssh:centos-7' locally centos-7: Pulling from jdeat…

What is dularion/streama?

etc

It's like Netflix, but self-hosted! http://dularion.github.io/streama/ github.com

confirm package(apt) version in Ubuntu

I confirmed version of zfs(zfsutils-linux) and lxd. ubu@ubuntu16:~$ apt-cache policy zfsutils-linux zfsutils-linux: Installed: 0.6.5.6-0ubuntu15 Candidate: 0.6.5.6-0ubuntu15 Version table: *** 0.6.5.6-0ubuntu15 500 500 http://jp.archive.ub…

Install lxd in Ubuntu

I executed the command "sudo apt install zfs lxd" in Ubuntu 16.04. But... lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2). ubu@ubuntu16:~$ sudo apt install zfs lxd [sudo] password for ubu: Reading package lists... Done Bui…

apt update in ubuntu

I executed the command "sudo apt update". ubu@ubuntu16:~$ sudo apt update [sudo] password for ubu: Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:3…

network configuration for ubuntu

I use ubuntu 16.04. I configured interfaces file for static ip as follows: ubu@ubuntu16:~$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, …

start postgres

try to start postgres by docker. [root@localhost ~]# docker pull postgres Using default tag: latest latest: Pulling from library/postgres 75a822cd7888: Pull complete 68f8c57d4ec8: Pull complete 1ee19503c02a: Pull complete ea8f451ca276: Pul…

install ansible on docker container.

I installed ansible on docker container. [root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 89fc39c2cbb0de2fe9f520ccfbb7cd43fa77ed62632d7479ab3e9779b73de258 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND …

hello world by springboot

I uploaded hello world sorce code to github. github.com After I executed app, I use curl command as follows: # curl http://192.168.0.6:8080/hello {"message":"Hello world"}

start Java and Eclipse

新しく環境を用意してみた。 1. download java jdk-8u112-windows-x64.exe http://www.oracle.com/technetwork/jp/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. download ecl…

try to use filebeat.

ログファイルが出力されたら、filebeatを実行したコンソールに出力されるまで試してみました。 設定 # cat filebeat.yml | sed '/^ *#/d' | sed '/^$/d' filebeat.prospectors: - input_type: log paths: - /tmp/log/*.log output.console: pretty: false ロ…

docker run with '-d' option

[root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 97f8213ed1883270d11067a24bc6f718e77c5918005d58206d6b569fc02e8e58 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 97f8213ed188 c…

docker pull image

[root@localhost ~]# docker pull centos Using default tag: latest latest: Pulling from library/centos 45a2e645736c: Pull complete Digest: sha256:c577af3197aacedf79c5a204cd7f493c8e07ffbce7f88f7600bf19c688c38799 Status: Downloaded newer image…

start docker (version 1.12.5)

[root@localhost ~]# systemctl enable docker.service Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. [root@localhost ~]# systemctl start docker [root@localhost ~]# d…

install docker in CentOS 7

[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) [root@localhost ~]# getenforce Enforcing [root@localhost ~]# [root@localhost ~]# yum install docker-engine Loaded plugins: fastestmirror Loading mirror speeds…

remove '#' and empty lines

設定ファイルを確認する際に、コメント行などを表示しないようにする。 コメント行削除する場合には、sedで、 $ cat filename | sed -e '/^#.*$/d' 空行も削除するなら $ sed -e 's/#.*$//' -e '/^$/d' さらに以下を行うと、空行が2回続く場合に1行にまとめ…

After Installation, Verification StackStorm status.

Verify なんか、いろいろFailedとか出てます。 OKなのかどうなのか微妙だ。。。 [root@stackstorm ~]# st2 --version st2 2.0.0 [root@stackstorm ~]# st2 action list --pack=core +-------------------+------+-----------------------------------+ | ref…