Memoru

System Engineering and Programming and IT

1808-ubuntu-apps-enviroment-recording

* 1808-ubuntu-apps-enviroment-recording

Overview

  • I Recorded my pc environment.

Contents

  • Development enviroment
mitsuru@dell:~/Desktop$ git --version
git version 2.18.0
mitsuru@dell:~/Desktop$ conda --version
conda 4.5.4
mitsuru@dell:~/Desktop$ python --version
Python 3.6.5 :: Anaconda, Inc.
mitsuru@dell:~/Desktop$ pip --version
pip 18.0 from /home/mitsuru/miniconda3/lib/python3.6/site-packages/pip (python 3.6)
mitsuru@dell:~/Desktop$ nvm --version
0.33.11
mitsuru@dell:~/Desktop$ npm --version
5.6.0
mitsuru@dell:~/Desktop$ node --version
v8.11.3
mitsuru@dell:~/Desktop$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
  • Editor and filer
mitsuru@dell:~/Desktop$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 10 2018 21:31:58)
mitsuru@dell:~/Desktop$ vifm --version
Version: 0.9.1
  • command
mitsuru@dell:~/Desktop$ tree --version
tree v1.7.0 (c) 1996 - 2014 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro 
mitsuru@dell:~/Desktop$ curl --version
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL 

mitsuru@dell:~/Desktop$ ag --version
ag version 2.1.0

Features:
  +jit +lzma +zlib

mitsuru@dell:~/Desktop$ peco --version
peco version v0.5.1
  • command line tool
mitsuru@dell:~/Desktop$ googler --version
3.6
mitsuru@dell:~/Desktop$ etm v
Event and Task Manager
etmtk 3.2.30 [2017-03-31 09:28:19 -0400]

mitsuru@dell:~/Desktop$ khal --version
khal, version 0.9.8
  • services
    • add below
mitsuru@dell:~/Desktop$ sudo service --status-all
[sudo] password for mitsuru: 
 [ + ]  acpid
 [ - ]  alsa-utils
 [ - ]  anacron
 [ + ]  apparmor
 [ + ]  apport
 [ + ]  avahi-daemon
 [ + ]  binfmt-support
 [ + ]  bluetooth
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  cups
 [ + ]  cups-browsed
 [ + ]  dbus
 [ - ]  dns-clean
 [ + ]  elasticsearch
 [ + ]  gdm3
 [ + ]  grub-common
 [ + ]  hddtemp
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  kerneloops
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ + ]  lm-sensors
 [ + ]  network-manager
 [ + ]  networking
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ - ]  pppd-dns
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  saned
 [ + ]  speech-dispatcher
 [ - ]  spice-vdagent
 [ - ]  thermald
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ + ]  whoopsie
 [ - ]  x11-common

memo files

mitsuru@dell:~/Documents/memo$ tree
.
|-- etm
|   |-- 2018
|   |   |-- 08.txt
|   |   |-- 180816.txt
|   |   |-- 180817-a.txt
|   |   |-- 180817.txt
|   |   |-- 180818.txt
|   |   `-- 180819.txt
|   |-- FIXME.txt
|   |-- routine.txt -> /home/mitsuru/.etm/data/personal/monthly/2018/routine.txt
|   `-- todo.txt -> /home/mitsuru/.etm/data/personal/monthly/2018/todo.txt
|-- khal
|   |-- ATER2ILAYVKNM65UU2FVIXDHDAPZIAJK265J.ics
|   |-- EY7QTTXV1R1VH0YHC7H1OCIQ6ZAY9RSHHPGH.ics
|   |-- NYGKGX6AWPXM8F29Y1RGLT4I9V9NRKI0VEOH.ics
|   |-- OT7D32CI19CBZ2UZZXYKQBL6LSEEVWGSV1O6.ics
|   `-- SG8SCF1Z1V2QCBGI4V7T96BT5F3ICQ3DQSC7.ics
|-- anchor.md
|-- fixme.md
|-- log.md
|-- memo.md
|-- note.md
`-- tips.md

Desktop apps

  • I decide to use tools that can work on both ubuntu and windows

    • Cloud
      • Journey -- Diary
      • Todoist -- Chores and Errand and GTD
      • Workflowy -- Structured text
    • Sync memos
      • Simplenote -- urls and read after
      • Joplin (Desktop) -- markdown and publish posts
    • Desktop apps
    • Developer tools
      • gitkraken -- git desktop client
      • meld -- diff and merge tool
  • I have to select below tools:

config settings (provisional)

  • additional lines in ~/.bashrc
    • I do use miniconda instead of virtualenvwapper.
export WORKON_HOME=~/.envs
export PROJECT_HOME=~/workspace/py
VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3' # This needs to be placed before the virtualenvwrapper command
#source /usr/local/bin/virtualenvwrapper.sh


# added by Miniconda3 installer
export PATH="/home/mitsuru/miniconda3/bin:$PATH"
# execution sh
. /home/mitsuru/miniconda3/etc/profile.d/conda.sh

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# export my environment variables
export ETM_DATA=/home/mitsuru/Documents/memo/etm

# set path for my shell
export PATH="/home/mitsuru/sh:$PATH"

# Startup
cal -3
date
cd ~/Desktop
alias explorer="nautilus ~/Documents &" ## win+2
alias filer="nautilus &" ## win+2
alias mailer="evolution &" ## win+3
alias term="tmux"        ## win+4
alias memo="vim ~/Documents/memo/memo.md"  ## win+6
alias log="vim ~/Documents/memo/log.md"    ## win+7
alias anchor="vim ~/Documents/memo/anchor.md"  ## win+7
alias tips="vim ~/Documents/memo/tips.md"  ## win+7
alias note="vim ~/Documents/memo/note.md"  ## win+7
alias fix='vim ~/Documents/memo/fixme.md'
alias gvim="gvim &"     ## win+7
alias jop="joplin"      ## win+8

## Slack-cli
alias sla="slack-cli -s chat -l 5"    ## win+9
alias slap="slack-cli -d chat $1"     ## win+9
## Twitter-cli
alias rainb="rainbowstream"    ## win+0
## khal
alias knew='khal new $1'
## ETM
alias today='. ~/sh/create_date_file_and_open.sh'
alias home='vifm $ETM_DATA ~/Documents/memo'
alias etma='etm a'

## AG search and edit
alias fixme='ag FIXME ~/Documents/**'

## Folder open
alias workspace='vifm ~/workspace'
alias Pictures='vifm ~/Pictures'
alias Documents='vifm ~/Documents'
alias Downloads='vifm ~/Downloads'

## Achor activity : book retyping
alias work='cd ~/workspace/py; ls ; conda info -e ;'

## Operation
alias reboot='shutdown -r now'
  • ~/.vimrc
    • ! FIXME
" 文字コードをUFT-8に設定
set fenc=utf-8
" バックアップファイルを作らない
set nobackup
" スワップファイルを作らない
set noswapfile
" 編集中のファイルが変更されたら自動で読み直す
set autoread
" バッファが編集中でもその他のファイルを開けるように
set hidden
" 入力中のコマンドをステータスに表示する
set showcmd

" 見た目系
" 行番号を表示
set number
" 現在の行を強調表示
" set cursorline
" 現在の行を強調表示(縦)
" set cursorcolumn
" 行末の1文字先までカーソルを移動できるように
set virtualedit=onemore
" インデントはスマートインデント
set smartindent
" ビープ音を可視化
" set visualbell
" 括弧入力時の対応する括弧を表示
set showmatch
" ステータスラインを常に表示
set laststatus=2
" コマンドラインの補完
set wildmode=list:longest
" 折り返し時に表示行単位での移動できるようにする
nnoremap j gj
nnoremap k gk

" Tab系
" 不可視文字を可視化(タブが「▸-」と表示される)
" set list listchars=tab:\▸\-
" Tab文字を半角スペースにする
set expandtab
" 行頭以外のTab文字の表示幅(スペースいくつ分)
set tabstop=4
" " 行頭でのTab文字の表示幅
set shiftwidth=4

" 検索系
" 検索文字列が小文字の場合は大文字小文字を区別なく検索する
set ignorecase
" 検索文字列に大文字が含まれている場合は区別して検索する
set smartcase
" 検索文字列入力時に順次対象文字列にヒットさせる
set incsearch
" 検索時に最後まで行ったら最初に戻る
set wrapscan
" 検索語をハイライト表示
set hlsearch
" ESC連打でハイライト解除
nmap <Esc><Esc> :nohlsearch<CR><Esc>
" set <ESC> ti ctl+l
imap <c-j> <esc>
imap <c-l> <esc>
set shortmess=aoOtI
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,cp932
  • ~/.config/khal/config
[calendars]

[[private]]
path = /home/mitsuru/Documents/memo/khal
type = calendar

[locale]
timeformat = %H:%M
dateformat = %m/%d/%Y
longdateformat = %m/%d/%Y
datetimeformat = %m/%d/%Y %H:%M
longdatetimeformat = %m/%d/%Y %H:%M

[default]
default_calendar = private
  • ~/.etm/etmtk.cfg
calendars:
- - etm 
  - true
  - etm 
- - sample
  - true
  - sample
- - shared
  - true
  - shared
cfg_files:
  completions: []
  reports: []
  users: []
 :
 :
datadir: /home/mitsuru/Documents/memo
dayfirst: false
 :
 :
icscal_file: /home/mitsuru/.etm/etmcal.ics
icsitem_file: /home/mitsuru/.etm/etmitem.ics
icssync_folder: ''
local_timezone: Asia/Tokyo
message_last: 0
message_next: 0
monthly: etm
 :
 :
  • create yymmdd.txt
#!/bin/bash

. ~/sh/lib/date-str.sh
echo "dtm_str=${dtm_str}"
echo "etm_data=${ETM_DATA}"

template=~/sh/templates/memo.txt

process(){
    year_str=`date '+%Y'`
    month_str=`date '+%m'`
    date_str=`date '+%d'`
    file_name=$ETM_DATA/$year_str/$dtm_str.txt

    if [ ! -e $file_name ]
    then
        echo "# ${dtm_str} " > ${file_name}
        echo "" >> ${file_name}
        echo "= @s ${month_str}/${date_str} ${year_str} @b 1 @e 30m " >> ${file_name}
        echo "# Overview " >> ${file_name}
    
        cat $template >> ${file_name}
    fi  

    vim ${file_name}
}

## execution
process

EOF

1808-ubuntu-1804-elasticsearch-installation

1808-ubuntu-1804-elasticsearch-installation

Overview

  • logging installing elasticsearch

Reference

log

java installation

mitsuru@dell:~/Desktop$ sudo add-apt-repository ppa:openjdk-r/ppa
mitsuru@dell:~/Desktop$ sudo apt-get update
mitsuru@dell:~/Desktop$ sudo apt-get install openjdk-8-jdk
mitsuru@dell:~/Desktop$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

[ ] port allowed setting

  • If accessing from other ip address, we should allow access port of PC firewall
$ sudo ufw allow 9200
$ sudo ufw allow 9300

elasticsearch installation

mitsuru@dell:~/Desktop$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
OK
mitsuru@dell:~/Desktop$ sudo apt-get install apt-transport-https
mitsuru@dell:~/Desktop$ echo "deb https://artifact.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/eralstic-6.x.list
deb https://artifact.elastic.co/packages/6.x/apt stable main
mitsuru@dell:~/Desktop$ sudo apt-get update
mitsuru@dell:~/Desktop$ sudu apt-get install -y elasticsearch
mitsuru@dell:~/Desktop$ sudo dpkg -l | grep elasticsearch
ii  elasticsearch                                               6.3.2                                       all          Elasticsearch is a distributed RESTful search engine built for the cloud. Reference documentation can be found at https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html and the 'Elasticsearch: The Definitive Guide' book can be found at https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html

set java vm -xms -xmx

  • To set for test environment.
mitsuru@dell:~/Documents$ sudo vim /etc/elasticsearch/jvm.options
-Xms512m
-Xmx512m

service execution

mitsuru@dell:~/Documents$ sudo systemctl enable elasticsearch
mitsuru@dell:~/Documents$ sudo systemctl list-unit-files | grep elastic
elasticsearch.service                      enabled        

mitsuru@dell:~/Documents$ sudo systemctl start elasticsearch
mitsuru@dell:~/Documents$ sudo systemctl is-active elasticsearch
active

mitsuru@dell:~/Desktop$ sudo systemctl status elasticsearch
[sudo] password for mitsuru: 
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendo
   Active: active (running) since Sun 2018-08-19 23:04:59 JST; 8min ago
     Docs: http://www.elastic.co
 Main PID: 22097 (java)
    Tasks: 44 (limit: 4474)
   CGroup: /system.slice/elasticsearch.service
           ├─22097 /usr/bin/java -Xms512m -Xmx512m -XX:+UseConcMarkSweepGC -XX:C
           └─22153 /usr/share/elasticsearch/modules/x-pack/x-pack-ml/platform/li

 8月 19 23:04:59 dell systemd[1]: Started Elasticsearch.

mitsuru@dell:~/Documents$ curl localhost:9200
{
  "name" : "_KWT0WM",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "NCvxionYRdm6z78IbUKD5A",
  "version" : {
    "number" : "6.3.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "053779d",
    "build_date" : "2018-07-20T05:20:23.451332Z",
    "build_snapshot" : false,
    "lucene_version" : "7.3.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

add plugin analysis-kuromoji and analysis-icu

  • need restart service
(pyconle) mitsuru@dell:~/workspace/py/importjson$ cd /usr/share/elasticsearch/
(pyconle) mitsuru@dell:/usr/share/elasticsearch$ ls
bin  lib  modules  NOTICE.txt  plugins  README.textile
(pyconle) mitsuru@dell:/usr/share/elasticsearch$ sudo bin/elasticsearch-plugin install analysis-kuromoji
[sudo] password for mitsuru: 
-> Downloading analysis-kuromoji from elastic
[=================================================] 100%   
-> Installed analysis-kuromoji

(pyconle) mitsuru@dell:/usr/share/elasticsearch$ sudo bin/elasticsearch-plugin install analysis-icu
-> Downloading analysis-icu from elastic
[=================================================] 100%   
-> Installed analysis-icu

(pyconle) mitsuru@dell:/usr/share/elasticsearch$ sudo systemctl restart elasticsearch
(pyconle) mitsuru@dell:/usr/share/elasticsearch$ sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-08-19 23:58:45 JST; 11s ago
     Docs: http://www.elastic.co
 Main PID: 23173 (java)
    Tasks: 18 (limit: 4474)
   CGroup: /system.slice/elasticsearch.service
           ├─23173 /usr/bin/java -Xms512m -Xmx512m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnl
           └─23228 /usr/share/elasticsearch/modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/controller

 8月 19 23:58:45 dell systemd[1]: Started Elasticsearch.
lines 1-11/11 (END)

[EOF]

1808-wsl-git-configuration-and-conda-configuration

1808-wsl-git-configuration-and-conda-configuration

environment variables

sakai@eX:~$ env | grep HOME
HOME=/mnt/g/wsl_home/sakai
PROJECT_HOME=/mnt/g/workspace/py

git config

sakai@eX:/mnt/g/workspace/py/importjson$ git config --global user.name 'xxxxxxxxxxxxxxx'
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global user.email 'xxxxxxxxxxxxxxx@google.com'
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global core.autocrlf false
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global core.editor vim
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global diff.tool vimdiff
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global difftool.prompt false
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global merge.tool vimdiff
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global mergetool.prompt false
sakai@eX:/mnt/g/workspace/py/importjson$ git config --global --list

user.name=xxxxxxxxxxxxx
user.email=xxxxxxxxxxxxx@google.com
core.editor=vim
core.autocrlf=false
diff.tool=vimdiff
difftool.prompt=false
merge.tool=vimdiff
mergetool.prompt=false

conda

  • ~/.bashrc
# added by Miniconda3 installer
export PATH="/mnt/g/wsl_home/sakai/miniconda3/bin:$PATH"
# added by hand
. /mnt/g/wsl_home/sakai/miniconda3/etc/profile.d/conda.sh
  • create environment
sakai@eX:~$ pwd
/mnt/g/wsl_home/sakai
sakai@eX:~$ conda --version
conda 4.5.4
sakai@eX:~$ python --version
Python 3.6.5 :: Anaconda, Inc.
sakai@eX:~$ virtualenv --version
16.0.0

sakai@eX:~$ conda info -e
# conda environments:
#
base                  *  /mnt/g/wsl_home/sakai/miniconda3
pyconle                  /mnt/g/wsl_home/sakai/miniconda3/envs/pyconle

sakai@eX:~$ conda create -n sandbox
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.5.4
  latest version: 4.5.9

Please update conda by running

    $ conda update -n base conda



## Package Plan ##

  environment location: /mnt/g/wsl_home/sakai/miniconda3/envs/sandbox


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate sandbox
#
# To deactivate an active environment, use
#
#     $ conda deactivate

sakai@eX:~$ conda info -e
# conda environments:
#
base                  *  /mnt/g/wsl_home/sakai/miniconda3
pyconle                  /mnt/g/wsl_home/sakai/miniconda3/envs/pyconle
sandbox                  /mnt/g/wsl_home/sakai/miniconda3/envs/sandbox

sakai@eX:~$ conda activate sandbox
(sandbox) sakai@eX:~$ cd $PROJECT_HOME
(sandbox) sakai@eX:/mnt/g/workspace/py$ ls
djanbox  djfirst  djfourth  djsecond  djthird  dplate  importjson  janome  sandbox
(sandbox) sakai@eX:/mnt/g/workspace/py$ cd sandbox
(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ pip freeze
appdirs==1.4.3
arrow==0.12.1
asn1crypto==0.24.0
Cerberus==1.2
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
conda==4.5.4
cryptography==2.2.2
docopt==0.6.2
elasticsearch==6.3.0
etmtk==3.2.36
googler==1.0.1
idna==2.6
Jinja2==2.10
MarkupSafe==1.0
Pillow==5.2.0
pocket==0.3.6
pycosat==0.6.3
pycparser==2.18
pycrypto==2.6.1
pyfiglet==0.7.5
pyOpenSSL==18.0.0
PySocks==1.6.8
python-dateutil==2.7.3
PyYAML==3.13
rainbowstream==1.3.7
requests==2.5.3
ruamel-yaml==0.15.37
six==1.11.0
slack-cli==2.0.3
slacker==0.9.65
twitter==1.18.0
urllib3==1.23
websocket-client==0.39.0
(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ pip install -r requirements.txt
(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ pip freeze
appdirs==1.4.3
arrow==0.12.1
asn1crypto==0.24.0
Cerberus==1.2
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
conda==4.5.4
cryptography==2.2.2
docopt==0.6.2
elasticsearch==6.3.0
etmtk==3.2.36
googler==1.0.1
idna==2.6
Jinja2==2.10
MarkupSafe==1.0
Pillow==5.2.0
pocket==0.3.6
pycosat==0.6.3
pycparser==2.18
pycrypto==2.6.1
pyfiglet==0.7.5
pyOpenSSL==18.0.0
PySocks==1.6.8
python-dateutil==2.7.3
PyYAML==3.13
rainbowstream==1.3.7
requests==2.5.3
ruamel-yaml==0.15.37
six==1.11.0
slack-cli==2.0.3
slacker==0.9.65
twitter==1.18.0
urllib3==1.23
websocket-client==0.39.0
(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ explorer.exe .
(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ git init
Initialized empty Git repository in /mnt/g/workspace/py/sandbox/.git/

(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore
        README.md
        batch_sample/
        configbase.py
        configs/
        docopt_sample/
        inspect_sample.py
        logging.conf
        logging_sample.py
        onme.ps1
        requirements.txt
        standards/
        watchdog_sample/

(sandbox) sakai@eX:/mnt/g/workspace/py/sandbox$ git status
On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   README.md
        new file:   batch_sample/.gitignore
        new file:   batch_sample/README.md
        new file:   batch_sample/batch_sample.py
        new file:   batch_sample/configbase.py
        new file:   batch_sample/configs/config.py
        new file:   batch_sample/configs/default.py
        new file:   batch_sample/logging.conf
        new file:   batch_sample/utils.py
        new file:   configbase.py
        new file:   configs/config.py
        new file:   configs/default.py
        new file:   docopt_sample
        new file:   inspect_sample.py
        new file:   logging.conf
        new file:   logging_sample.py
        new file:   onme.ps1
        new file:   requirements.txt
        new file:   standards/.gitignore
        new file:   standards/add_sample.py
        new file:   standards/calc.py
        new file:   standards/csv_sample.py
        new file:   standards/json_sample.py
        new file:   standards/logging.conf
        new file:   standards/logging_debug.conf
        new file:   standards/unittest_sample.py
        new file:   watchdog_sample/app.py
        new file:   watchdog_sample/configbase.py
        new file:   watchdog_sample/configs/config.py
        new file:   watchdog_sample/configs/config_debug.py
        new file:   watchdog_sample/configs/default.py
        new file:   watchdog_sample/logging_debug.conf
        new file:   watchdog_sample/plugins/a.py
        new file:   watchdog_sample/plugins/b.py
        new file:   watchdog_sample/plugins/c.py
        new file:   watchdog_sample/watchdog_sample.py

1808-wsl-install-command-line-tools

1808-wsl-install-command-line-tools

Overview

  • Tools that I have checked this summer

Contents

1. googler

sakai@eX:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
sakai@eX:~$ python --version
Python 3.6.5 :: Anaconda, Inc.
sakai@eX:~$ sudo apt install googler

sakai@eX:~$ googler --version
3.5
googler (? for help) ?

omniprompt keys:
  n, p                  fetch the next or previous set of search results
  index                 open the result corresponding to index in browser
  f                     jump to the first page
  o [index|range|a ...] open space-separated result indices, numeric ranges
                        (sitelinks unsupported in ranges), or all, in browser
                        open the current search in browser, if no arguments
  O [index|range|a ...] like key 'o', but try to open in a GUI browser
  g keywords            new Google search for 'keywords' with original options
                        should be used to search omniprompt keys and indices
  c index               copy url to clipboard
  u                     toggle url expansion
  q, ^D, double Enter   exit googler
  ?                     show omniprompt help
  *                     other inputs issue a new search with original options

googler (? for help)

1808-enable-sshd-and-connect-teraterm

1808 Enable sshd and connect with teraterm

Overview

Procedure

  • Edit /etc/ssh/sshd_config to modify port 22 into other port.
sakai@eX:~$ sudo vim /etc/ssh/sshd_config
# Port 22222 ###<<port 22でも接続可能
PasswordAuthentication yes
AddressFamily inet 
ListenAddress 0.0.0.0 
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes 
  • restart service
sakai@eX:~$ sudo service ssh restart
 * Restarting OpenBSD Secure Shell server sshd                                                         [ OK ]
  • Connect from other PC's Teraterm on IP address and part modified.

// --- end of blog