Learning Circle : cdist #1

This commit is contained in:
youngjin.han 2020-05-05 01:04:57 +09:00
parent f7409f9de7
commit bace4a52cb
2 changed files with 115 additions and 78 deletions

View file

@ -2,7 +2,6 @@ __file /etc/cdist-configured
case "$__target_host" in case "$__target_host" in
localhost) localhost)
__motd
__timezone Asia/Seoul __timezone Asia/Seoul
__package emacs --state present __package emacs --state present
;; ;;

View file

@ -1,83 +1,39 @@
* 2020-04-23 * 2020-05-04
*** Organisation #1: org-mode introduction *** cdist #1: 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
**** Lecture content **** Lecture content
***** Objective ***** Objective
****** Be able to manage all your mails in mu4e ****** Begin to use cdist
***** 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 ***** Steps
****** Install mu4e ****** DONE Checkout cdist quickstart https://www.cdi.st/manual/latest/cdist-quickstart.html
****** Start mu4e in emacs CLOSED: [2020-05-04 월 22:32]
****** Configure mbsync for your ungleich mail account ****** DONE Install cdist locally
******* Synchronise all mails into ~/Maildir/ungleich CLOSED: [2020-05-04 월 22:32]
******* This structure leaves room for other mail accounts, like ~/Maildir/gmail ****** DONE Create a new cdist configuration directory in ~/ungleich-learning-circle/USERNAME/dot-cdist
****** Verify that mbsync synchronises the mail CLOSED: [2020-05-04 월 22:32]
****** Index mails using `mu` on the command line (only first time) ****** DONE Create an empty initial manifest ("use touch")
****** Configure mu4e to get email with mbsync -a CLOSED: [2020-05-04 월 22:32]
****** Configure mu4e to "archive" emails into ~/Maildir/ungleich/YEAR/ ****** DONE Commit that status
******* This gives you a good performance / organisation for the next decades CLOSED: [2020-05-04 월 22:37]
****** Configure mu4e/emacs for sending emails ****** DONE Ensure that you can login as root to localhost via ssh without a password
****** Send other participants an email via mu4e CLOSED: [2020-05-04 월 22:37]
****** Verify that it arrives ****** DONE Configure cdist to configures the motd of your localhost
****** "Archive" it afterwards CLOSED: [2020-05-05 화 00:42]
* 2020-04-29 ******* DONE Ensure you have a case block matching on $__target_host
*** Organisation #4: Organising yourself CLOSED: [2020-05-05 화 00:21]
**** Lecture content ******* DONE Use the -c parameter to cdist to specify the configuration directory
***** Objective: have a todo list based on org mode CLOSED: [2020-05-04 월 23:58]
***** Steps ******* DONE Use the -vv parameter to get more verbose output
****** Configure the "org-directory" to be ~/ungleich-learning-circle/USERNAME/ CLOSED: [2020-05-04 월 23:57]
******* This is important as it will be used by the todo function later ******* DONE Search for / understand what MOTD stands for
****** Extend your function from the organisation #1 session CLOSED: [2020-05-05 화 00:41]
******* Instead of opening a fixed file, we include two variable parts: ****** DONE Configure cdist to create the file /etc/cdist-configured
******** The hostname of the machine CLOSED: [2020-05-04 월 23:33]
******** The year ****** DONE Configure cdist to setup the timezone on your local computer
******* Pressing F3 should open ~/ungleich-learning-circle/USERNAME/learning-$(hostname)-$(year).org CLOSED: [2020-05-04 월 23:33]
******** we call this "your personal agenda" ****** DONE Configure cdist to ensure emacs is installed
****** Configure mu4e to create a org-mode tasks from an email CLOSED: [2020-05-04 월 23:47]
******* Store these tasks in ~/ungleich-learning-circle/USERNAME/todo.org ****** DONE Ensure that in the end all changes are committed in your repository
****** Configure emacs to open the "org-agenda" with "C-c a" CLOSED: [2020-05-05 화 00:42]
****** 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-05-01 * 2020-05-01
*** Organisation #5: Emacs refresher *** Organisation #5: Emacs refresher
**** Lecture content **** Lecture content
@ -132,9 +88,91 @@
******* DONE Document two very similar, but slightly different ways ******* DONE Document two very similar, but slightly different ways
CLOSED: [2020-05-01 금 23:28] CLOSED: [2020-05-01 금 23:28]
******** C-x b is that the selected buffer is displayed on the focused window ******** 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 ******** C-x 4 b is that the selected buffer is displayed on the new window
***** Outcome ***** Outcome
****** DONE Document all above commands in your learning org sheet ****** DONE Document all above commands in your learning org sheet
CLOSED: [2020-05-01 금 23:28] CLOSED: [2020-05-01 금 23:28]
****** DONE Share your documentation at the end of the session (not before) ****** DONE Share your documentation at the end of the session (not before)
CLOSED: [2020-05-01 금 23:28] 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"