From 3f0a34e383baae2b1f7f65da14c85c11b2eda59c Mon Sep 17 00:00:00 2001 From: Youngjin Han Date: Tue, 5 May 2020 01:04:57 +0900 Subject: [PATCH] Learning Circle : cdist #1 --- youngjin.han/dot-cdist/{ => manifest}/init | 1 - youngjin.han/learning-node02-2020.org | 192 ++++++++++++--------- 2 files changed, 115 insertions(+), 78 deletions(-) rename youngjin.han/dot-cdist/{ => manifest}/init (91%) diff --git a/youngjin.han/dot-cdist/init b/youngjin.han/dot-cdist/manifest/init similarity index 91% rename from youngjin.han/dot-cdist/init rename to youngjin.han/dot-cdist/manifest/init index cd3f05c..ad77f58 100644 --- a/youngjin.han/dot-cdist/init +++ b/youngjin.han/dot-cdist/manifest/init @@ -2,7 +2,6 @@ __file /etc/cdist-configured case "$__target_host" in localhost) - __motd __timezone Asia/Seoul __package emacs --state present ;; diff --git a/youngjin.han/learning-node02-2020.org b/youngjin.han/learning-node02-2020.org index b41f2ae..9460122 100644 --- a/youngjin.han/learning-node02-2020.org +++ b/youngjin.han/learning-node02-2020.org @@ -1,83 +1,39 @@ -* 2020-04-23 -*** Organisation #1: org-mode introduction -**** Lecture content -***** Install emacs -***** Install org-mode -***** Create a function that opens ~/learning.org in your ~/.emacs -***** Bind that function to "f3" (configure it in .emacs) -***** Create a new item named "2020-04-10" -****** Create a sub item "ungleich learning circle" -* 2020-04-24 -*** Organisation #2: Creating, managing and sharing with "magit" -**** Lecture content -***** Install "magit" for emacs -***** Bind C-x g to open magit-status in ~/.emacs -***** Create a new directory ~/ungleich-learning-circle/ (with emacs) -****** Use C-h b in dired mode to find out how to -***** Create a sub directory ~/ungleich-learning-circle/YOURNAME/ (with emacs) -***** Move your previously created learning.org file into ~/ungleich-learning-circle/YOURNAME/ (with emacs) -***** Initialise it with git (with magit) -***** Create the repo "ungleich-learning-circle" on code.ungleich.ch under your username -***** Add your remote on code.ungleich.ch to your local git repo with magit -***** Push your repo -***** Add a new remote of a another participant -***** Move your ~/learning.org to ~/notes -***** Commit that file with magit -***** Push the repo with magit -***** Merging the remote repo with the command line -***** End result: everyone has everything of everyone else -* 2020-04-27 -*** Organisation #3: Managing your emails +* 2020-05-04 +*** cdist #1: Introduction **** Lecture content ***** Objective -****** Be able to manage all your mails in mu4e -***** Description -****** All email is synchronised using isync/mbsync -****** Email is indexed with mu (xapian backend) -****** Email is viewed in mu4e -****** All new emails arrive in the inbox +****** Begin to use cdist ***** Steps -****** Install mu4e -****** Start mu4e in emacs -****** Configure mbsync for your ungleich mail account -******* Synchronise all mails into ~/Maildir/ungleich -******* This structure leaves room for other mail accounts, like ~/Maildir/gmail -****** Verify that mbsync synchronises the mail -****** Index mails using `mu` on the command line (only first time) -****** Configure mu4e to get email with mbsync -a -****** Configure mu4e to "archive" emails into ~/Maildir/ungleich/YEAR/ -******* This gives you a good performance / organisation for the next decades -****** Configure mu4e/emacs for sending emails -****** Send other participants an email via mu4e -****** Verify that it arrives -****** "Archive" it afterwards -* 2020-04-29 -*** Organisation #4: Organising yourself -**** Lecture content -***** Objective: have a todo list based on org mode -***** Steps -****** Configure the "org-directory" to be ~/ungleich-learning-circle/USERNAME/ -******* This is important as it will be used by the todo function later -****** Extend your function from the organisation #1 session -******* Instead of opening a fixed file, we include two variable parts: -******** The hostname of the machine -******** The year -******* Pressing F3 should open ~/ungleich-learning-circle/USERNAME/learning-$(hostname)-$(year).org -******** we call this "your personal agenda" -****** Configure mu4e to create a org-mode tasks from an email -******* Store these tasks in ~/ungleich-learning-circle/USERNAME/todo.org -****** Configure emacs to open the "org-agenda" with "C-c a" -****** List all TODO entries -****** List the agenda of the day -****** List the agenda of the week -****** Bind F8 to open the "org-todo-list" -****** Create some sample tasks in it -***** From now on, maintaining tasks should be -****** Pressing F3 to open your personal "logfile" -****** Adding a TODO item -****** Pressing F8 to see the tasks with priorities -***** Bonus tasks -****** Configure mu4e to store org-mode tasks in .../todo-$(hostname)-$(year).org +****** DONE Checkout cdist quickstart https://www.cdi.st/manual/latest/cdist-quickstart.html + CLOSED: [2020-05-04 월 22:32] +****** DONE Install cdist locally + CLOSED: [2020-05-04 월 22:32] +****** DONE Create a new cdist configuration directory in ~/ungleich-learning-circle/USERNAME/dot-cdist + CLOSED: [2020-05-04 월 22:32] +****** DONE Create an empty initial manifest ("use touch") + CLOSED: [2020-05-04 월 22:32] +****** DONE Commit that status + CLOSED: [2020-05-04 월 22:37] +****** DONE Ensure that you can login as root to localhost via ssh without a password + CLOSED: [2020-05-04 월 22:37] +****** DONE Configure cdist to configures the motd of your localhost + CLOSED: [2020-05-05 화 00:42] +******* DONE Ensure you have a case block matching on $__target_host + CLOSED: [2020-05-05 화 00:21] +******* DONE Use the -c parameter to cdist to specify the configuration directory + CLOSED: [2020-05-04 월 23:58] +******* DONE Use the -vv parameter to get more verbose output + CLOSED: [2020-05-04 월 23:57] +******* DONE Search for / understand what MOTD stands for + CLOSED: [2020-05-05 화 00:41] +****** DONE Configure cdist to create the file /etc/cdist-configured + CLOSED: [2020-05-04 월 23:33] +****** DONE Configure cdist to setup the timezone on your local computer + CLOSED: [2020-05-04 월 23:33] +****** DONE Configure cdist to ensure emacs is installed + CLOSED: [2020-05-04 월 23:47] +****** DONE Ensure that in the end all changes are committed in your repository + CLOSED: [2020-05-05 화 00:42] * 2020-05-01 *** Organisation #5: Emacs refresher **** Lecture content @@ -132,9 +88,91 @@ ******* DONE Document two very similar, but slightly different ways CLOSED: [2020-05-01 금 23:28] ******** C-x b is that the selected buffer is displayed on the focused window +******** C-x C-b is that all buffers is dispalayed on the new window ******** C-x 4 b is that the selected buffer is displayed on the new window ***** Outcome ****** DONE Document all above commands in your learning org sheet CLOSED: [2020-05-01 금 23:28] ****** DONE Share your documentation at the end of the session (not before) CLOSED: [2020-05-01 금 23:28] + +* 2020-04-29 +*** Organisation #4: Organising yourself +**** Lecture content +***** Objective: have a todo list based on org mode +***** Steps +****** Configure the "org-directory" to be ~/ungleich-learning-circle/USERNAME/ +******* This is important as it will be used by the todo function later +****** Extend your function from the organisation #1 session +******* Instead of opening a fixed file, we include two variable parts: +******** The hostname of the machine +******** The year +******* Pressing F3 should open ~/ungleich-learning-circle/USERNAME/learning-$(hostname)-$(year).org +******** we call this "your personal agenda" +****** Configure mu4e to create a org-mode tasks from an email +******* Store these tasks in ~/ungleich-learning-circle/USERNAME/todo.org +****** Configure emacs to open the "org-agenda" with "C-c a" +****** List all TODO entries +****** List the agenda of the day +****** List the agenda of the week +****** Bind F8 to open the "org-todo-list" +****** Create some sample tasks in it +***** From now on, maintaining tasks should be +****** Pressing F3 to open your personal "logfile" +****** Adding a TODO item +****** Pressing F8 to see the tasks with priorities +***** Bonus tasks +****** Configure mu4e to store org-mode tasks in .../todo-$(hostname)-$(year).org +* 2020-04-27 +*** Organisation #3: Managing your emails +**** Lecture content +***** Objective +****** Be able to manage all your mails in mu4e +***** Description +****** All email is synchronised using isync/mbsync +****** Email is indexed with mu (xapian backend) +****** Email is viewed in mu4e +****** All new emails arrive in the inbox +***** Steps +****** Install mu4e +****** Start mu4e in emacs +****** Configure mbsync for your ungleich mail account +******* Synchronise all mails into ~/Maildir/ungleich +******* This structure leaves room for other mail accounts, like ~/Maildir/gmail +****** Verify that mbsync synchronises the mail +****** Index mails using `mu` on the command line (only first time) +****** Configure mu4e to get email with mbsync -a +****** Configure mu4e to "archive" emails into ~/Maildir/ungleich/YEAR/ +******* This gives you a good performance / organisation for the next decades +****** Configure mu4e/emacs for sending emails +****** Send other participants an email via mu4e +****** Verify that it arrives +****** "Archive" it afterwards +* 2020-04-24 +*** Organisation #2: Creating, managing and sharing with "magit" +**** Lecture content +***** Install "magit" for emacs +***** Bind C-x g to open magit-status in ~/.emacs +***** Create a new directory ~/ungleich-learning-circle/ (with emacs) +****** Use C-h b in dired mode to find out how to +***** Create a sub directory ~/ungleich-learning-circle/YOURNAME/ (with emacs) +***** Move your previously created learning.org file into ~/ungleich-learning-circle/YOURNAME/ (with emacs) +***** Initialise it with git (with magit) +***** Create the repo "ungleich-learning-circle" on code.ungleich.ch under your username +***** Add your remote on code.ungleich.ch to your local git repo with magit +***** Push your repo +***** Add a new remote of a another participant +***** Move your ~/learning.org to ~/notes +***** Commit that file with magit +***** Push the repo with magit +***** Merging the remote repo with the command line +***** End result: everyone has everything of everyone else +* 2020-04-23 +*** Organisation #1: org-mode introduction +**** Lecture content +***** Install emacs +***** Install org-mode +***** Create a function that opens ~/learning.org in your ~/.emacs +***** Bind that function to "f3" (configure it in .emacs) +***** Create a new item named "2020-04-10" +****** Create a sub item "ungleich learning circle"