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