gitのユーザー名とパスワードを省略するようにする

gitでpushなどするときに毎回ユーザー名とパスワードを求められて少々面倒なので省略できるようにする。
/etcをgitのリポジトリに追加したのでここのgitの設定を変更する。

方法

ユーザー名の省略

/etc.git$ sudo vi config

でconfigファイルを開き、//のあとにuser_name@を追加する。

[remote "origin"]
        url = https://user_name@github.com/user_name/repository_name.git

パスワードの省略

パスワードはユーザー名の省略の設定の時にuser_name@をuser_name:password@としても良いが、平文で保存されるためセキュリティ的によくないのでキャッシュに保存するようにする。

$ sudo git config credential.helper cache

これを実行するとなにもメッセージは表示されない。
sudo git pullなどしてみると最初の1回はパスワードの入力を求められるが、次から一定時間入力不要になる。
デフォルトでは900秒間となっている。

時間を変更するためにはこちらを実行する。
例:3600秒のとき

git config --global credential.helper 'cache --timeout=3600'

storeは無制限に入力不要となるが、ディスクに平文で保存されるデメリットがある。

$ sudo git config credential.helper store

これらの情報は.git/configに書かれている。

[credential]
        helper = cache

参考

git-scm.com

UbuntuでCAPSキーをCtrlキーに変更する

今まで英語配列Happy Hacking Keyboardを使っていたけれど、昨年末にLINE Payの20%キャシュバックや割引券があったので、Realforce日本語配列キーボードを買った。
英語配列から日本語配列にしたので設定を少し変える。

以前はTweak Toolという名前だった、GNOME3をより細かく設定するツールのTweaksをインストールする。
$ sudo apt install gnome-tweak-tool

アプリケーションからTweaksを起動する。

f:id:ultra-genma:20190112173943p:plain タイピング > Ctrlキーの位置 > Caps LockをCtrlとして扱う
を選択する。

パソコンを再起動するかログアウト、ログインすると有効になっている。

debian stretchではifconfigが使えない

debian stretchではifconfigコマンドが非推奨となっておりデフォルトでは使えない。

# ifconfig
bash: ifconfig: command not found

代わりに新しいコマンドが用意されている。

# ip address
または
# ip a

ifconfigコマンドを使用したい場合はインストールする必要がある。

# apt-get install net-tools

Debian 9.0 Stretchのセットアップ

リンクステーションにDebian 9.0 Stretchをインストールした。
デフォルトではsudoコマンドが使えないなど不便だった。

パッケージのインストール

sudo

# apt -y install sudo  

特定のユーザーにroot権限を付加する

# visudo 
または以下を編集
#vi /etc/sudoers

一番下の行に以下を追加する
例:ユーザー名userのとき

#includedir /etc/sudoers.d    // この行が一番下にある
user   ALL=(ALL)   ALL 

rootをexitで抜け、sudo apt-get updateなどしてsudoが使えるか確認する。

特定のユーザーに特定のコマンドの実行を拒否したりする場合はこちらを参考にすると良い。
Debian 9 Stretch : 初期設定 : Sudo の設定 : Server World

git

# apt-get install git

nginx

# apt-get install nginx

# systemctl status nginx    // ステータスの確認
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-01-11 21:54:08 JST; 2min 47s ago
     Docs: man:nginx(8)
  Process: 1233 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
  Process: 1230 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 1237 (nginx)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/nginx.service
           ├─1237 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
           └─1238 nginx: worker process

# ip a    // IPアドレスの確認(sshで接続しているのだからわかっているはず)

ローカルネットワーク内のブラウザからIPアドレスを入力してwebサーバーが動いているか確認する
動いていれば「Welcome to nginx!」が表示される
nginxのコンフィグやる
https://www.cyberciti.biz/faq/howto-install-setup-nginx-on-debian-linux-9/


不要なパッケージの削除

自動削除

# apt autoremove

apache

apacheは重いイメージあるしnginxを使いたいので削除

# service apache2 stop
# apt-get purge apache2 apache2-doc

/etcディレクトリのバックアップ

/etcディレクトリはUNIXLinuxでコンピューター夜のシステム設定ファイルなどが保存されている。
セットアップするときにいろいろと修正して間違ってしまうこともあるので最初にgitで変更履歴を管理できるようにする。
etckeeperというツールもあり、何台もサーバーを管理している人には便利そうだけれど今は一台だけだしgitの勉強もしたいのでgitで管理する。

githubのrepositories > newからリポジトリを作成する。privateも無料になったことだし今のところ設定ファイルを後悔する意味もないのでprivateにする。
リポジトリの「Clone or download」を押し、Clone with HTTPSのURLをコピーしておく。

https://github.com/user_name/repository_name.git    // user_name、repository_nameは自分のもの

/etcディレクトリに移動する。

/etc# git init    // 初期化
/etc# git add -A    // 全てのファイルを追加
/etc# git commit -m "initial commit"    // コメントを付けてコミット
/etc# git remote add origin https://github.com/user_name/repository_name.git    // "origin"という名前でgitにpushできるようにする
/etc# git push origin master    // ユーザー名とパスワードが求められるので入力し、originのmasterブランチにpushする

ここでgit 2.9以降から仕様が変わったらしく、「error: failed to push some refs to ~」というエラーが起きることがある。

# git push origin master
To https://github.com/user_name/repository_name.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/user_name/repository_name.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

git pullかなにかしてからpushしろという説明が表示されるが、pushしてもエラーになる。

# git pull origin master
From https://github.com/ultragenma/melchior_etc
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

ブランチをgithubのmasterにマージする必要がある。

# git merge --allow-unrelated-histories origin/master

テキストが開くので、一行目のコメントを必要なら変更する。
以下のメッセージが出たらマージが成功。

Merge made by the 'recursive' strategy.
 LICENSE   | 674 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.md |   2 +
 2 files changed, 676 insertions(+)
 create mode 100644 LICENSE
 create mode 100644 README.md

再度pushする。

# git push origin master

githubに/etcのファイルが追加されていれば完了。


IPアドレスの固定

/etc/network/interfacesを編集する。デフォルトではこうなっている。

# The primary network interface
auto eth0
iface eth0 inet dhcp

dhcpからstaticに変更し、固定したいアドレスを設定する。

# The primary network interface
auto eth0
iface eth0 inet static
    address 192.168.1.100    // 例:100に固定
    netmask 255.255.255.0
    gateway 192.168.1.1    // 接続しているルーターのアドレス

このままではip aコマンドで確認してもIPアドレスは変わっていないのでパソコンを再起動する。

debian 9.0 stretchに最初から入っていたパッケージ一覧

やったこと

リンクステーションにdebianをインストール
インストール時にwebサーバーを追加で選択
gitをインストール
sudoをインストール

パッケージ一覧

# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  adduser        3.115        all          add and remove users and groups
ii  analog         2:6.0-22     armel        web server log analyzer
ii  apache2        2.4.25-3+deb armel        Apache HTTP Server
ii  apache2-bin    2.4.25-3+deb armel        Apache HTTP Server (modules and o
ii  apache2-data   2.4.25-3+deb all          Apache HTTP Server (common files)
ii  apache2-doc    2.4.25-3+deb all          Apache HTTP Server (on-site docum
ii  apache2-utils  2.4.25-3+deb armel        Apache HTTP Server (utility progr
ii  apt            1.4.8        armel        commandline package manager
ii  apt-listchange 3.10         all          package change history notificati
ii  apt-utils      1.4.8        armel        package management related utilit
ii  base-files     9.9+deb9u6   armel        Debian base system miscellaneous 
ii  base-passwd    3.5.43       armel        Debian base system master passwor
ii  bash           4.4-5        armel        GNU Bourne Again SHell
ii  bash-completio 1:2.1-4.3    all          programmable completion for the b
ii  bind9-host     1:9.10.3.dfs armel        Version of 'host' bundled with BI
ii  bsdmainutils   9.0.12+nmu1  armel        collection of more utilities from
ii  bsdutils       1:2.29.2-1+d armel        basic utilities from 4.4BSD-Lite
ii  busybox        1:1.22.0-19+ armel        Tiny utilities for small and embe
ii  bzip2          1.0.6-8.1    armel        high-quality block-sorting file c
ii  ca-certificate 20161130+nmu all          Common CA certificates
ii  coreutils      8.26-3       armel        GNU core utilities
ii  cpio           2.11+dfsg-6  armel        GNU cpio -- a program to manage a
ii  cron           3.0pl1-128+d armel        process scheduling daemon
ii  dash           0.5.8-2.4    armel        POSIX-compliant shell
ii  dbus           1.10.26-0+de armel        simple interprocess messaging sys
ii  debconf        1.5.61       all          Debian configuration management s
ii  debconf-i18n   1.5.61       all          full internationalization support
ii  debian-archive 2017.5       all          GnuPG archive keys of the Debian 
ii  debian-faq     8.1          all          Debian Frequently Asked Questions
ii  debianutils    4.8.1.1      armel        Miscellaneous utilities specific 
ii  device-tree-co 1.4.2-1      armel        Device Tree Compiler for Flat Dev
ii  devio          1.2-1.2+b1   armel        correctly read (or write) a regio
ii  dh-python      2.20170125   all          Debian helper tools for packaging
ii  diffutils      1:3.5-3      armel        File comparison utilities
ii  discover       2.1.2-7.1+de armel        hardware identification system
ii  discover-data  2.2013.01.11 all          Data lists for Discover hardware 
ii  distro-info-da 0.36         all          information about the distributio
ii  dmsetup        2:1.02.137-2 armel        Linux Kernel Device Mapper usersp
ii  doc-debian     6.4          all          Debian Project documentation and 
ii  dpkg           1.18.25      armel        Debian package management system
ii  e2fslibs:armel 1.43.4-2     armel        ext2/ext3/ext4 file system librar
ii  e2fsprogs      1.43.4-2     armel        ext2/ext3/ext4 file system utilit
ii  file           1:5.30-1+deb armel        Recognize the type of data in a f
ii  findutils      4.6.0+git+20 armel        utilities for finding files--find
ii  flash-kernel   3.79         armel        utility to make certain embedded 
ii  fontconfig-con 2.11.0-6.7   all          generic font configuration librar
ii  fonts-dejavu-c 2.37-1       all          Vera font family derivate with ad
ii  gcc-6-base:arm 6.3.0-18+deb armel        GCC, the GNU Compiler Collection 
ii  geoip-database 20170512-1   all          IP lookup command line tools that
ii  gettext-base   0.19.8.1-2   armel        GNU Internationalization utilitie
ii  git            1:2.11.0-3+d armel        fast, scalable, distributed revis
ii  git-man        1:2.11.0-3+d all          fast, scalable, distributed revis
ii  gnupg          2.1.18-8~deb armel        GNU privacy guard - a free PGP re
ii  gnupg-agent    2.1.18-8~deb armel        GNU privacy guard - cryptographic
ii  gpgv           2.1.18-8~deb armel        GNU privacy guard - signature ver
ii  grep           2.27-2       armel        GNU grep, egrep and fgrep
ii  groff-base     1.22.3-9     armel        GNU troff text-formatting system 
ii  gzip           1.6-5+b1     armel        GNU compression utilities
ii  hdparm         9.51+ds-1+de armel        tune hard disk parameters for hig
ii  hostname       3.18+b1      armel        utility to set/show the host name
ii  ifupdown       0.8.19       armel        high level tools to configure net
ii  init           1.48         armel        metapackage ensuring an init syst
ii  init-system-he 1.48         all          helper tools for all init systems
ii  initramfs-tool 0.130        all          generic modular initramfs generat
ii  initramfs-tool 0.130        all          generic modular initramfs generat
ii  installation-r 2.62         all          system installation report
ii  iproute2       4.9.0-1+deb9 armel        networking and traffic control to
ii  iptables       1.6.0+snapsh armel        administration tools for packet f
ii  iputils-ping   3:20161105-1 armel        Tools to test the reachability of
ii  isc-dhcp-clien 4.3.5-3+deb9 armel        DHCP client for automatically obt
ii  isc-dhcp-commo 4.3.5-3+deb9 armel        common manpages relevant to all o
ii  iso-codes      3.75-1       all          ISO language, territory, currency
ii  klibc-utils    2.0.4-9      armel        small utilities built with klibc 
ii  kmod           23-2         armel        tools for managing Linux kernel m
ii  krb5-locales   1.15-1+deb9u all          internationalization support for 
ii  less           481-2.1      armel        pager program similar to more
ii  libacl1:armel  2.2.52-3+b1  armel        Access control list shared librar
ii  libapparmor1:a 2.11.0-3+deb armel        changehat AppArmor library
ii  libapr1:armel  1.5.2-5      armel        Apache Portable Runtime Library
ii  libaprutil1:ar 1.5.4-3      armel        Apache Portable Runtime Utility L
ii  libaprutil1-db 1.5.4-3      armel        Apache Portable Runtime Utility L
ii  libaprutil1-ld 1.5.4-3      armel        Apache Portable Runtime Utility L
ii  libapt-inst2.0 1.4.8        armel        deb package format runtime librar
ii  libapt-pkg5.0: 1.4.8        armel        package management runtime librar
ii  libassuan0:arm 2.4.3-2      armel        IPC library for the GnuPG compone
ii  libattr1:armel 1:2.4.47-2+b armel        Extended attribute shared library
ii  libaudit-commo 1:2.6.7-2    all          Dynamic library for security audi
ii  libaudit1:arme 1:2.6.7-2    armel        Dynamic library for security audi
ii  libbind9-140:a 1:9.10.3.dfs armel        BIND9 Shared Library used by BIND
ii  libblkid1:arme 2.29.2-1+deb armel        block device ID library
ii  libbsd0:armel  0.8.3-1      armel        utility functions from BSD system
ii  libbz2-1.0:arm 1.0.6-8.1    armel        high-quality block-sorting file c
ii  libc-bin       2.24-11+deb9 armel        GNU C Library: Binaries
ii  libc-l10n      2.24-11+deb9 all          GNU C Library: localization files
ii  libc6:armel    2.24-11+deb9 armel        GNU C Library: Shared libraries
ii  libcap-ng0:arm 0.7.7-3+b1   armel        An alternate POSIX capabilities l
ii  libcap2:armel  1:2.25-1     armel        POSIX 1003.1e capabilities (libra
ii  libclass-isa-p 0.36-5       all          report the search path for a clas
ii  libcomerr2:arm 1.43.4-2     armel        common error description library
ii  libcryptsetup4 2:1.7.3-4    armel        disk encryption support - shared 
ii  libcurl3-gnutl 7.52.1-5+deb armel        easy-to-use client-side URL trans
ii  libdb5.3:armel 5.3.28-12+de armel        Berkeley v5.3 Database Libraries 
ii  libdbus-1-3:ar 1.10.26-0+de armel        simple interprocess messaging sys
ii  libdebconfclie 0.227        armel        Debian Configuration Management S
ii  libdevmapper1. 2:1.02.137-2 armel        Linux Kernel Device Mapper usersp
ii  libdiscover2   2.1.2-7.1+de armel        hardware identification library
ii  libdns-export1 1:9.10.3.dfs armel        Exported DNS Shared Library
ii  libdns162:arme 1:9.10.3.dfs armel        DNS Shared Library used by BIND
ii  libedit2:armel 3.1-20160903 armel        BSD editline and history librarie
ii  libelf1:armel  0.168-1      armel        library to read and write ELF fil
ii  liberror-perl  0.17024-1    all          Perl module for error/exception h
ii  libestr0       0.1.10-2     armel        Helper functions for handling str
ii  libexpat1:arme 2.2.0-2+deb9 armel        XML parsing C library - runtime l
ii  libfastjson4:a 0.99.4-1     armel        fast json library for C
ii  libfdisk1:arme 2.29.2-1+deb armel        fdisk partitioning library
ii  libffi6:armel  3.2.1-6      armel        Foreign Function Interface librar
ii  libfontconfig1 2.11.0-6.7+b armel        generic font configuration librar
ii  libfreetype6:a 2.6.3-3.2    armel        FreeType 2 font engine, shared li
ii  libgcc1:armel  1:6.3.0-18+d armel        GCC support library
ii  libgcrypt20:ar 1.7.6-2+deb9 armel        LGPL Crypto library - runtime lib
ii  libgd3:armel   2.2.4-2+deb9 armel        GD Graphics Library
ii  libgdbm3:armel 1.8.3-14     armel        GNU dbm database routines (runtim
ii  libgeoip1:arme 1.6.9-4      armel        non-DNS IP-to-country resolver li
ii  libgmp10:armel 2:6.1.2+dfsg armel        Multiprecision arithmetic library
ii  libgnutls30:ar 3.5.8-5+deb9 armel        GNU TLS library - main runtime li
ii  libgpg-error0: 1.26-2       armel        library for common error values a
ii  libgssapi-krb5 1.15-1+deb9u armel        MIT Kerberos runtime libraries - 
ii  libhogweed4:ar 3.3-1+b2     armel        low level cryptographic library (
ii  libicu57:armel 57.1-6+deb9u armel        International Components for Unic
ii  libidn11:armel 1.33-1       armel        GNU Libidn library, implementatio
ii  libidn2-0:arme 0.16-1+deb9u armel        Internationalized domain names (I
ii  libip4tc0:arme 1.6.0+snapsh armel        netfilter libip4tc library
ii  libip6tc0:arme 1.6.0+snapsh armel        netfilter libip6tc library
ii  libiptc0:armel 1.6.0+snapsh armel        netfilter libiptc library
ii  libisc-export1 1:9.10.3.dfs armel        Exported ISC Shared Library
ii  libisc160:arme 1:9.10.3.dfs armel        ISC Shared Library used by BIND
ii  libisccc140:ar 1:9.10.3.dfs armel        Command Channel Library used by B
ii  libisccfg140:a 1:9.10.3.dfs armel        Config File Handling Library used
ii  libjbig0:armel 2.1-3.1+b2   armel        JBIGkit libraries
ii  libjpeg62-turb 1:1.5.1-2    armel        libjpeg-turbo JPEG runtime librar
ii  libk5crypto3:a 1.15-1+deb9u armel        MIT Kerberos runtime libraries - 
ii  libkeyutils1:a 1.5.9-9      armel        Linux Key Management Utilities (l
ii  libklibc       2.0.4-9      armel        minimal libc subset for use with 
ii  libkmod2:armel 23-2         armel        libkmod shared library
ii  libkrb5-3:arme 1.15-1+deb9u armel        MIT Kerberos runtime libraries
ii  libkrb5support 1.15-1+deb9u armel        MIT Kerberos runtime libraries - 
ii  libksba8:armel 1.3.5-2      armel        X.509 and CMS support library
ii  libldap-2.4-2: 2.4.44+dfsg- armel        OpenLDAP libraries
ii  libldap-common 2.4.44+dfsg- all          OpenLDAP common files for librari
ii  liblocale-gett 1.07-3+b1    armel        module using libc functions for i
ii  liblockfile-bi 1.14-1+b1    armel        support binaries for and cli util
ii  liblogging-std 1.0.5-2+b2   armel        easy to use and lightweight loggi
ii  liblognorm5:ar 2.0.1-1.1+b1 armel        log normalizing library
ii  liblua5.2-0:ar 5.2.4-1.1+b2 armel        Shared library for the Lua interp
ii  liblwres141:ar 1:9.10.3.dfs armel        Lightweight Resolver Library used
ii  liblz4-1:armel 0.0~r131-2+b armel        Fast LZ compression algorithm lib
ii  liblzma5:armel 5.2.2-1.2+b1 armel        XZ-format compression library
ii  liblzo2-2:arme 2.08-1.2+b2  armel        data compression library
ii  libmagic-mgc   1:5.30-1+deb armel        File type determination library u
ii  libmagic1:arme 1:5.30-1+deb armel        Recognize the type of data in a f
ii  libmnl0:armel  1.0.4-2      armel        minimalistic Netlink communicatio
ii  libmount1:arme 2.29.2-1+deb armel        device mounting library
ii  libmpdec2:arme 2.4.2-1      armel        library for decimal floating poin
ii  libncurses5:ar 6.0+20161126 armel        shared libraries for terminal han
ii  libncursesw5:a 6.0+20161126 armel        shared libraries for terminal han
ii  libnetfilter-c 1.0.6-2      armel        Netfilter netlink-conntrack libra
ii  libnettle6:arm 3.3-1+b2     armel        low level cryptographic library (
ii  libnewt0.52:ar 0.52.19-1+b1 armel        Not Erik's Windowing Toolkit - te
ii  libnfnetlink0: 1.0.1-3      armel        Netfilter netlink library
ii  libnghttp2-14: 1.18.1-1     armel        library implementing HTTP/2 proto
ii  libnpth0:armel 1.3-1        armel        replacement for GNU Pth using sys
ii  libp11-kit0:ar 0.23.3-2     armel        library for loading and coordinat
ii  libpam-modules 1.1.8-3.6    armel        Pluggable Authentication Modules 
ii  libpam-modules 1.1.8-3.6    armel        Pluggable Authentication Modules 
ii  libpam-runtime 1.1.8-3.6    all          Runtime support for the PAM libra
ii  libpam-systemd 232-25+deb9u armel        system and service manager - PAM 
ii  libpam0g:armel 1.1.8-3.6    armel        Pluggable Authentication Modules 
ii  libpci3:armel  1:3.5.2-1    armel        Linux PCI Utilities (shared libra
ii  libpcre3:armel 2:8.39-3     armel        Old Perl 5 Compatible Regular Exp
ii  libperl5.24:ar 5.24.1-3+deb armel        shared Perl library
ii  libpipeline1:a 1.4.1-2      armel        pipeline manipulation library
ii  libpng16-16:ar 1.6.28-1     armel        PNG library - runtime (version 1.
ii  libpopt0:armel 1.16-10+b2   armel        lib for parsing cmdline parameter
ii  libprocps6:arm 2:3.3.12-3+d armel        library for accessing process inf
ii  libpsl5:armel  0.17.0-3     armel        Library for Public Suffix List (s
ii  libpython-stdl 2.7.13-2     armel        interactive high-level object-ori
ii  libpython2.7-m 2.7.13-2+deb armel        Minimal subset of the Python lang
ii  libpython2.7-s 2.7.13-2+deb armel        Interactive high-level object-ori
ii  libpython3-std 3.5.3-1      armel        interactive high-level object-ori
ii  libpython3.5-m 3.5.3-1+deb9 armel        Minimal subset of the Python lang
ii  libpython3.5-s 3.5.3-1+deb9 armel        Interactive high-level object-ori
ii  libreadline7:a 7.0-3        armel        GNU readline and history librarie
ii  librtmp1:armel 2.4+20151223 armel        toolkit for RTMP streams (shared 
ii  libsasl2-2:arm 2.1.27~101-g armel        Cyrus SASL - authentication abstr
ii  libsasl2-modul 2.1.27~101-g armel        Cyrus SASL - pluggable authentica
ii  libsasl2-modul 2.1.27~101-g armel        Cyrus SASL - pluggable authentica
ii  libseccomp2:ar 2.3.1-2.1+de armel        high level interface to Linux sec
ii  libselinux1:ar 2.6-3+b3     armel        SELinux runtime shared libraries
ii  libsemanage-co 2.6-2        all          Common files for SELinux policy m
ii  libsemanage1:a 2.6-2        armel        SELinux policy management library
ii  libsepol1:arme 2.6-2        armel        SELinux library for manipulating 
ii  libslang2:arme 2.3.1-5      armel        S-Lang programming library - runt
ii  libsmartcols1: 2.29.2-1+deb armel        smart column output alignment lib
ii  libsqlite3-0:a 3.16.2-5+deb armel        SQLite 3 shared library
ii  libss2:armel   1.43.4-2     armel        command-line interface parsing li
ii  libssh2-1:arme 1.7.0-1      armel        SSH2 client-side library
ii  libssl1.0.2:ar 1.0.2q-1~deb armel        Secure Sockets Layer toolkit - sh
ii  libssl1.1:arme 1.1.0j-1~deb armel        Secure Sockets Layer toolkit - sh
ii  libstdc++6:arm 6.3.0-18+deb armel        GNU Standard C++ Library v3
ii  libswitch-perl 2.17-2       all          switch statement for Perl
ii  libsystemd0:ar 232-25+deb9u armel        systemd utility library
ii  libtasn1-6:arm 4.10-1.1+deb armel        Manage ASN.1 structures (runtime)
ii  libtext-charwi 0.04-7+b5    armel        get display widths of characters 
ii  libtext-iconv- 1.7-5+b4     armel        converts between character sets i
ii  libtext-wrapi1 0.06-7.1     all          internationalized substitute of T
ii  libtiff5:armel 4.0.8-2+deb9 armel        Tag Image File Format (TIFF) libr
ii  libtinfo5:arme 6.0+20161126 armel        shared low-level terminfo library
ii  libudev1:armel 232-25+deb9u armel        libudev shared library
ii  libunistring0: 0.9.6+really armel        Unicode string library for C
ii  libusb-0.1-4:a 2:0.1.12-30  armel        userspace USB programming library
ii  libusb-1.0-0:a 2:1.0.21-1   armel        userspace USB programming library
ii  libustr-1.0-1: 1.0.4-6      armel        Micro string library: shared libr
ii  libuuid1:armel 2.29.2-1+deb armel        Universally Unique ID library
ii  libwebp6:armel 0.5.2-1      armel        Lossy compression of digital phot
ii  libwrap0:armel 7.6.q-26     armel        Wietse Venema's TCP wrappers libr
ii  libx11-6:armel 2:1.6.4-3+de armel        X11 client-side library
ii  libx11-data    2:1.6.4-3+de all          X11 client-side library
ii  libxapian30:ar 1.4.3-2+deb9 armel        Search engine library
ii  libxau6:armel  1:1.0.8-1    armel        X11 authorisation library
ii  libxcb1:armel  1.12-1       armel        X C Binding
ii  libxdmcp6:arme 1:1.1.2-3    armel        X11 Display Manager Control Proto
ii  libxml2:armel  2.9.4+dfsg1- armel        GNOME XML library
ii  libxpm4:armel  1:3.5.12-1   armel        X11 pixmap library
ii  libxtables12:a 1.6.0+snapsh armel        netfilter xtables library
ii  linux-base     4.5          all          Linux image base package
ii  linux-image-4. 4.9.130-2    armel        Linux 4.9 for Marvell Kirkwood/Or
ii  linux-image-ma 4.9+80+deb9u armel        Linux for Marvell Kirkwood/Orion 
ii  locales        2.24-11+deb9 all          GNU C Library: National Language 
ii  login          1:4.4-4.1    armel        system login tools
ii  logrotate      3.11.0-0.1   armel        Log rotation utility
ii  lsb-base       9.20161125   all          Linux Standard Base init script f
ii  lsb-release    9.20161125   all          Linux Standard Base version repor
ii  lsof           4.89+dfsg-0. armel        Utility to list open files
ii  man-db         2.7.6.1-2    armel        on-line manual pager
ii  manpages       4.10-2       all          Manual pages about using a GNU/Li
ii  mawk           1.3.3-17+b3  armel        a pattern scanning and text proce
ii  mime-support   3.60         all          MIME files 'mime.types' & 'mailca
ii  mount          2.29.2-1+deb armel        tools for mounting and manipulati
ii  mtd-utils      1:2.0.0-1    armel        Memory Technology Device Utilitie
ii  multiarch-supp 2.24-11+deb9 armel        Transitional package to ensure mu
ii  nano           2.7.4-1      armel        small, friendly text editor inspi
ii  ncurses-base   6.0+20161126 all          basic terminal type definitions
ii  ncurses-bin    6.0+20161126 armel        terminal-related programs and man
ii  ncurses-term   6.0+20161126 all          additional terminal type definiti
ii  netbase        5.4          all          Basic TCP/IP networking system
ii  netcat-traditi 1.10-41+b1   armel        TCP/IP swiss army knife
ii  openssh-client 1:7.4p1-10+d armel        secure shell (SSH) client, for se
ii  openssh-server 1:7.4p1-10+d armel        secure shell (SSH) server, for se
ii  openssh-sftp-s 1:7.4p1-10+d armel        secure shell (SSH) sftp server mo
ii  openssl        1.1.0j-1~deb armel        Secure Sockets Layer toolkit - cr
ii  passwd         1:4.4-4.1    armel        change and administer password an
ii  patch          2.7.5-1+deb9 armel        Apply a diff file to an original
ii  pciutils       1:3.5.2-1    armel        Linux PCI Utilities
ii  perl           5.24.1-3+deb armel        Larry Wall's Practical Extraction
ii  perl-base      5.24.1-3+deb armel        minimal Perl system
ii  perl-modules-5 5.24.1-3+deb all          Core Perl modules
ii  pinentry-curse 1.0.0-2      armel        curses-based PIN or pass-phrase e
ii  powermgmt-base 1.31+nmu1    all          Common utils and configs for powe
ii  procps         2:3.3.12-3+d armel        /proc file system utilities
ii  python         2.7.13-2     armel        interactive high-level object-ori
ii  python-apt-com 1.4.0~beta3  all          Python interface to libapt-pkg (l
ii  python-minimal 2.7.13-2     armel        minimal subset of the Python lang
ii  python2.7      2.7.13-2+deb armel        Interactive high-level object-ori
ii  python2.7-mini 2.7.13-2+deb armel        Minimal subset of the Python lang
ii  python3        3.5.3-1      armel        interactive high-level object-ori
ii  python3-apt    1.4.0~beta3  armel        Python 3 interface to libapt-pkg
ii  python3-charde 2.3.0-2      all          universal character encoding dete
ii  python3-debian 0.1.30       all          Python 3 modules to work with Deb
ii  python3-debian 2.6.1        all          Python interface to Debian's Bug 
ii  python3-httpli 0.9.2+dfsg-1 all          comprehensive HTTP client library
ii  python3-minima 3.5.3-1      armel        minimal subset of the Python lang
ii  python3-pkg-re 33.1.1-1     all          Package Discovery and Resource Ac
ii  python3-pycurl 7.43.0-2     armel        Python bindings to libcurl (Pytho
ii  python3-pysimp 1.16-2       all          simple and lightweight SOAP Libra
ii  python3-report 7.1.7+deb9u2 all          Python modules for interacting wi
ii  python3-reques 2.12.4-1     all          elegant and simple HTTP library f
ii  python3-six    1.10.0-3     all          Python 2 and 3 compatibility libr
ii  python3-urllib 1.19.1-1     all          HTTP library with thread-safe con
ii  python3.5      3.5.3-1+deb9 armel        Interactive high-level object-ori
ii  python3.5-mini 3.5.3-1+deb9 armel        Minimal subset of the Python lang
ii  readline-commo 7.0-3        all          GNU readline and history librarie
ii  rename         0.20-4       all          Perl extension for renaming multi
ii  reportbug      7.1.7+deb9u2 all          reports bugs in the Debian distri
ii  rsync          3.1.2-1+deb9 armel        fast, versatile, remote (and loca
ii  rsyslog        8.24.0-1     armel        reliable system and kernel loggin
ii  sed            4.4-1        armel        GNU stream editor for filtering/t
ii  sensible-utils 0.0.9+deb9u1 all          Utilities for sensible alternativ
ii  sgml-base      1.29         all          SGML infrastructure and SGML cata
ii  ssl-cert       1.0.39       all          simple debconf wrapper for OpenSS
ii  sudo           1.8.19p1-2.1 armel        Provide limited super user privil
ii  systemd        232-25+deb9u armel        system and service manager
ii  systemd-sysv   232-25+deb9u armel        system and service manager - SysV
ii  sysvinit-utils 2.88dsf-59.9 armel        System-V-like utilities
ii  tar            1.29b-1.1    armel        GNU version of the tar archiving 
ii  task-ssh-serve 3.39         all          SSH server
ii  task-web-serve 3.39         all          web server
ii  tasksel        3.39         all          tool for selecting tasks for inst
ii  tasksel-data   3.39         all          official tasks used for installat
ii  telnet         0.17-41      armel        basic telnet client
ii  traceroute     1:2.1.0-2    armel        Traces the route taken by packets
ii  tzdata         2018i-0+deb9 all          time zone and daylight-saving tim
ii  u-boot-tools   2016.11+dfsg armel        companion tools for Das U-Boot bo
ii  ucf            3.0036       all          Update Configuration File(s): pre
ii  udev           232-25+deb9u armel        /dev/ and hotplug management daem
ii  usbutils       1:007-4+b1   armel        Linux USB utilities
ii  util-linux     2.29.2-1+deb armel        miscellaneous system utilities
ii  vim-common     2:8.0.0197-4 all          Vi IMproved - Common files
ii  vim-tiny       2:8.0.0197-4 armel        Vi IMproved - enhanced vi editor 
ii  wamerican      7.1-1        all          American English dictionary words
ii  wget           1.18-5+deb9u armel        retrieves files from the web
ii  whiptail       0.52.19-1+b1 armel        Displays user-friendly dialog box
ii  xml-core       0.17         all          XML infrastructure and XML catalo
ii  xxd            2:8.0.0197-4 armel        tool to make (or reverse) a hex d
ii  xz-utils       5.2.2-1.2+b1 armel        XZ-format compression utilities
ii  zlib1g:armel   1:1.2.8.dfsg armel        compression library - runtime

タイピングの最適化

Realforceのタイピング大会の動画を見てからタイピングにちょっとはまった。
キーボードは好きだったけれどタイピングはとても遅くてそんなに練習したことなかったのでe-typingで始めたばかりのころの記録を残しておきたい。
f:id:ultra-genma:20190113214705p:plain

ふをhuと打つくらいタイピングを気にしていなかったので来年くらいまで頑張って練習して500wpmを目指したい。

単語 最適化前 最適化後
hu fu
こんな konnna koxnna
きかい kikai kicai
あんこ annko anko
ぁぃぅぇぉ xa xi xu xe xo、la li lu le lo la xi xu le xo