AKAI TSUKI

System development or Technical something

Linux

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 …

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…

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

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

remove '#' and empty lines

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

Nginx install CentOS 7(Docker Container)

お試しインストールということで、コンテナ環境を使っています。 (参考) mainline version http://nginx.org/en/linux_packages.html#mainline write about stable version install https://www.nginx.com/resources/wiki/start/topics/tutorials/install/…

Upgrade CentOS 7 kernel to the latest version.

現在のバージョン [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@localhost ~]# uname -r 3.10.0-327.el7.x86_64 [root@localhost ~]# elrepoの利用設定 インストール [root@localhost ~]# rpm -ivh http://www.…

Network configuration with nmcli on CentOS 7

[root@localhost ~]# nmcli device DEVICE TYPE STATE CONNECTION enp0s3 ethernet disconnected -- lo loopback unmanaged -- [root@localhost ~]# nmcli c m enp0s3 ipv4.method manual ipv4.addresses 192.168.0.30/24 ipv4.gateway 192.168.0.1 ipv4.dns…

Set Up and Use My Yum Repositories

Yumリポジトリの作成 rpmファイルを用意 httpdをインストールできるようにrpmファイルを用意しておきます。 # mkdir /tmp/repo # yum install httpd --downloadonly --downloaddir=/tmp/repo # mkdir -p /var/www/html/rpmrepo/x86_64/Packages # mv /tmp/re…

Java install on CentOS 7

インストールして、JAVA_HOMEを設定 # yum search java-1.8 # yum install -y java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-debug.x86_64 java-1.8.0-openjdk-devel.x86_64 # vi /etc/profile.d/java.sh # cat /etc/profile.d/java.sh export JAVA_HOME=/u…

vim: no highlight

vimで検索とか置換した時のハイライトを消すコマンド :noh

vi: edit indent

vimの場合、Ctrl + vによる矩形ビジュアルモード(VISUAL BLOCK)で 範囲選択 → Iを入力 → スペース(もしくは任意の文字列)を入力 → ESC でスペース(もしくは任意の文字列)を選択した前に入力可能ですよね。 でも、viで同じことを行いたいときに どうすれば…

I confirm python version.

I executed command as follows: # python --version Python 2.7.5 #

install OpenLDAP

OpenLDAPをインストールしてみます。 install まずはyumでインストール。 # yum -y install openldap-servers openldap-clients setting ここでつまった。。。というか、設定の意味が理解できていなくて、 デフォルトで設定される内容が不明。。。まず、yum…

can not access Zabbix View

Zabbixをインストールしたので、画面を見てみようと思ったら アクセスできませんでしたT_T Firewall(iptables)の設定を確認したところ。 [root@localhost ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all …

use iptable

HTTPの利用するポートにアクセスできるようにiptableの設定を変更してみる。 iptables -I INPUT 5 -p tcp --dport http -j ACCEPT 変更したら iptables -L --line-number で、確認。

configure dnsmasq

インストールした直後は何も設定されてなかった。 bash-4.1# grep -v "^#.*" /etc/dnsmasq.conf |grep -v ^$ bash-4.1# grep -v "^#.*" /etc/dnsmasq.conf |grep -v ^$ |wc 2 0 5 bash-4.1# service dnsmasq status dnsmasq is stopped bash-4.1#

install dnsmasq

dnsmasq をインストールしてみたぞ # yum install dnsmasq Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * extras: ftp.nara.wide.ad.jp * updates: ftp.nara.wide.ad.jp Setting up Install Pro…

where is wget !

なんと、CentOS 6.5 minimalの環境にはwgetがなかったー # which wget /usr/bin/which: no wget in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) インストール # yum install wget Loaded plugins: downloadonly, fastestmirr…

CentOS 6.5 minimal環境のパッケージ(update)

CentOS 6.5 minimalでインストールした後にupdateしてみたよ。 Loaded plugins: downloadonly, fastestmirror Installed Packages MAKEDEV.x86_64 3.24-6.el6 @anaconda-CentOS-201311272149.x86_64/6.5 acl.x86_64 2.2.49-6.el6 @anaconda-CentOS-201311272…

CentOS 6.5 minimal環境のパッケージ

CentOS 6.5 minimalでインストールしてみました。 minimalで初めにインストールされているものー。 Loaded plugins: fastestmirror Installed Packages MAKEDEV.x86_64 3.24-6.el6 @anaconda-CentOS-201311272149.x86_64/6.5 acl.x86_64 2.2.49-6.el6 @anaco…