AKAI TSUKI

System development or Technical something

Use Google Chrome v59 Headless mode on CentOS 7.

Create a file chrome.repo # vi /etc/yum.repos.d/chrome.repo # cat /etc/yum.repos.d/chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.goo…

Study AWS Network

https://d0.awsstatic.com/events/jp/2017/summit/slide/D2T3-5.pdf

Create VM in OpenStack Ocata.

After these, Install OpenStack Ocata by Packstack on CentOS 7. - AKAI TSUKI Check openstack service. - AKAI TSUKI image # openstack image list +--------------------------------------+--------+--------+ | ID | Name | Status | +-------------…

Check openstack service.

After installation, Install OpenStack Ocata by Packstack on CentOS 7. - AKAI TSUKI Let’s check status by openstack client command. Service # openstack service list +----------------------------------+-----------+-----------------+ | ID | N…

Install OpenStack Ocata by Packstack on CentOS 7.

Reference Packstack quickstart — RDO sample answer file # cat packstack-answers.txt | grep -v "^#" | grep "_INSTALL" CONFIG_MARIADB_INSTALL=y CONFIG_GLANCE_INSTALL=y CONFIG_CINDER_INSTALL=y CONFIG_MANILA_INSTALL=n CONFIG_NOVA_INSTALL=y CON…

Using Git repository on GitLab.

After preparing: akai-tsuki.hatenablog.com git clone $ git clone http://username01@172.16.10.25/testgrp/testpj.git Cloning into 'testpj'... warning: You appear to have cloned an empty repository. $ ls testpj $ cd testpj/ setting user info:…

Prepare group, project and user before using GitLab

After installation:akai-tsuki.hatenablog.com set pass for root user. input password of root. login by root. 1. create Group 2. create PJ 3. create users 4. add member to group After adding member: At this point we can not see icon image of…

install GitLab 9.2.2 CE (Omnibus install) on CentOS 7

see: https://about.gitlab.com/downloads/#centos7 summary # yum update # firewall-cmd --permanent --add-service=http # systemctl reload firewalld # curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | b…

Try Kubernetes (v1.6.1).

Kubernetes Version [root@cent7no01 ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.1+coreos.0", GitCommit:"9212f77ed8c169a0afa02e58dce87913c6387b3e", GitTreeState:"clean", BuildDate:"2017-04-04T00:32…

Setup LXD on Ubuntu 16.04

In the case of using Ubuntu Server 16.04, already the server was intalled LXD. check version test@ubuntu01:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS" tes…

Try to create OpenSSL x509 certificate (2)

Generate RSA private key (des3) $ openssl genrsa -des3 -out server.key 4096 Generating RSA private key, 4096 bit long modulus .....++ .........................................................................................................…

Try to create OpenSSL x509 certificate

Generate RSA private key $ openssl genrsa -out server.key 4096 Generating RSA private key, 4096 bit long modulus .......................................................++ ..........++ e is 65537 (0x10001) $ Generate a certificate signing r…

Let's check OpenShift-ansible

get openshift-ansible-3.4.70-1.tar.gz [root@centos01 ~]# wget https://github.com/openshift/openshift-ansible/archive/openshift-ansible-3.4.70-1.tar.gz

setup bridge device on CentOS 7, by use OVS

add bridge device by ovs-vsctl [root@kvmtest ~]# ovs-vsctl add-br br0 [root@kvmtest ~]# ovs-vsctl add-port br0 enp0s3 ifcfgenp0s3 interface configuration file [root@kvmtest ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3 DEVICE=enp0s3 …

Let's check config.yml for installation using ansible.

when we install OpenShift, we will use config.yml file . https://docs.openshift.org/latest/install_config/install/advanced_install.html#running-the-advanced-installation ~/openshift-ansible/playbooks/byo/config.yml open openshift-ansible/p…

Let's check Advanced Installation of OpenShift origin.

check below page. https://docs.openshift.org/latest/install_config/install/advanced_install.html#single-master create hosts file Host Name Infrastructure Component to Install centos01 Master and node centos01 etcd centos02 Node centos03 No…

install Open vSwitch on CentOS 7

Add rpm repository I get rpm from below page to add rdo repository. I perform this command [root@kvmtest ~]# yum localinstall https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-release-ocata-2.noarch.rpm Install OVS [root@k…

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…

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…

Start Services of StackStorm.(2)

Start services [root@stackstorm ~]# st2ctl start Failed to start st2chatops.service: Unit st2chatops.service failed to load: No such file or directory. ##### st2 components status ##### st2actionrunner PID: 5308 st2actionrunner PID: 5310 s…

Start Services of StackStorm.

Configure SSH and SUDO [root@stackstorm ~]# mkdir -p /home/stanley/.ssh [root@stackstorm ~]# chmod 0700 /home/stanley/.ssh [root@stackstorm ~]# ssh-keygen -f /home/stanley/.ssh/stanley_rsa -P "" Generating public/private rsa key pair. Your…

install StackStorm. (Setup Mistral Database)

Setup Mistral Database [root@stackstorm ~]# cat << EHD | sudo -u postgres psql > CREATE ROLE mistral WITH CREATEDB LOGIN ENCRYPTED PASSWORD 'StackStorm'; > CREATE DATABASE mistral OWNER mistral; > EHD could not change directory to "/root" …

install StackStorm.

RHEL 7 / CentOS 7 — StackStorm 2.0.0 documentation akai-tsuki.hatenablog.com Setup repositories [root@stackstorm ~]# curl -s https://packagecloud.io/install/repositories/StackStorm/stable/script.rpm.sh | bash Detected operating system as c…

install StackStorm (MongoDB, RabbitMQ and PostgreSQL.)

Precondition [root@stackstorm ~]# getenforce Disabled [root@stackstorm ~]# iptables -nL Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy AC…

photos

きれいな写真があります。 skuawk.com