Memoru

System Engineering and Programming and IT

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

1807-command-line-filer-vifm

How to use vifm tool on command line

overview

  • usage for vifm

Reference

https://wiki.vifm.info/index.php?title=Quickstart_Tutorial

Execution

mitsuru@dell:~$ vifm ~/Documents/ ~/Desktop/

Quiting

  • ZZ
  • :q

Shell-like navigation via command line

  • :cd path
  • :pushd path / popd
  • :dirs

File Operation

key operation note
yy yank
p paste copy
P paste move
dd delete
cw change word rename
cW change word change only name of file without extention

// --- end of blog

1807-ubuntu-extentions-installed

installed ubuntu extentions

overview

  • I began using ubuntu pc mainly, then jot down that I have installed gnome extentions into my pc.

list

  • Datetime format
  • Gno-menu
  • All windows
  • Place status indicator
  • Shutdown button

ubuntu bar

  • View / Menu / Apps -- Gno-Menu
  • Places --- Place status indicator
  • yyyy-mm-dd --- Datetime format
  • --- All windows
  • --- Shutdown

// --- end of blog

ubuntu apps : Events and Tasks manager

Ubuntu Apps : Event and Tasks management on text file

overview

  • Use apps for task management with text file.
  • I have started using this apps and this article is for beginners to understand 'ETM'.
  • This tool can be realized for 'Dot Journaling' with 'Digital sheet on text file.'

Reference

github.com

  • cheat sheet

http://people.duke.edu/~dgraham/etm/help/cheatsheet.pdf

Cheat sheet

prefix item
- Task
* Event
~ Action
^ Occation
$ In Basket
! Note
? Someday
       ~      Action: a record of time and/or money spent.

       *      Event: happens on a particular date and time.

       ^      Occasion: happens on a particular date, e.g.,  a   holi‐
              day, anniversary or birthday.

       !      Note: a record of some useful information.

       -      Task: something that needs to be done.

       %      Delegated task: a task assigned to someone else.

       +      Task  group: a group of related tasks, some of which may
              be prerequisites for others.

       $      Inbasket: quick entry to be edited later when time  per‐
              mits.

       ?      Someday  maybe:  remember  but  don't show in the common
              views.

       #      Hidden: remember but hide from all etm views except path
              view.

       =      Defaults:  set default options for subsequent entries in
              the same data file.
  • my categorized event and task

    • TODO
    • FIXME
    • XXX
    • WBS
    • CHORE
    • PLAN / CHECK
  • wbs

           + dog house
                 @j pickup lumber and paint &q 1
                 @j cut pieces &q 2
                 @j assemble &q 3
                 @j paint &q 4

sample

  • Event : to begin with '*'
    • example : A meeting (an event) @[s]tarting seven days from today at 9:00am and @[e]xtending for one hour with a default @[a]lert 5 minutes before the start @[t]ag business :
  * All members meeting @s +7 9a @e 1h @a 5 @t business
  • example : A meeting with another [a]lert 2 days before the meeting to (e)mail a reminder to a list of recipients:
  * sales meeting @s +7 9a @e 1h @a 5
    @a 2d: e; who@when.com, what@where.org
  • Prepare a report (a task) for the sales meeting @[b]eginning 3 days early:
  - prepare report @s +7 @b 3
  • A period @[e]xtending 35 minutes (an action) spent working on the report yesterday:
  ~ report preparation @s -1 @e 35
  • Event : To start with '-'
    • Get a haircut (a task) on the 24th of the current month and then @[r]epeatedly at (d)aily [i]ntervals of (14) days and, @[o]n completion, (r)estart from the completion date:
  - get haircut @s 24 @r d &i 14 @o r
  • Occation : To start with '^'
    • Payday (an occasion) on the last week day of each month. The &s -1 part of the entry extracts the last date which is both a weekday and falls within the last three days of the month):
  ^ payday @s 1/1 @r m &w MO, TU, WE, TH, FR &m -1, -2, -3 &s -1
  • Take a prescribed medication daily (a reminder) [s]tarting today and [r]epeating (d)aily at [h]ours 10am, 2pm, 6pm and 10pm [u]ntil (12am on) the fourth day from today. Trigger the default [a]lert zero minutes before each reminder:
  * take Rx @s +0 @r d &h 10, 14, 18, 22 &u +4 @a 0
  • Move the water sprinkler (a reminder) every thirty mi[n]utes on Sunday afternoons using the default alert zero minutes before each reminder:
  * Move sprinkler @s 1 @r n &i 30 &w SU &h 14, 15, 16, 17 @a 0
  • To limit the sprinkler movement reminders to the [M]onths of April through September each year, append &M 4, 5, 6, 7, 8, 9 to the @r entry.

    • Presidential election day (an occasion) every four years on the first Tuesday after a Monday in November:
  ^ Presidential Election Day @s 2012-11-06
    @r y &i 4 &M 11 &m 2, 3, 4, 5, 6, 7, 8 &w TU
  • Join the etm discussion group (a task) [s]tarting on the first day of the next month. Because of the @g (goto) link, pressing Ctrl-G when the details of this item are displayed in the gui would open the link using the system default application which, in this case, would be your default browser:
  - join the etm discussion group @s +1/1
    @g http://groups.google.com/group/eventandtaskmanager/topics

// --- end of blog