2018-08-08 16-22h @BeLUGev @IN-Berlin http://www.guckes.net/talks/workshop.2018-08-08.belug.neomutt.txt http://www.guckes.net/talks/workshop.2018-08-08.belug.neomutt.html Latest change: Thu Aug 09 02:42:23 CEST 2018 = people = * sven guckes 8000R-0185391B * oliver bandel * jon NJ = editors = look at both emacs+vim! :) = mosh/scp/ssh = http://www.guckes.net/Setup/ssh-config install: wget $file -O ~/.ssh/config configure: Host k HostName kudu.in-berlin.de User guckes ForwardX11 no now you can use "k:" instead of "user@host:" :-) quick backup: scp file k:dir/ mosh: per wrapper for ssh. really cool! mosh k alias m='mosh k' and 'm' much quicker than "mosh guckes@kudu.in-berlin.de" ;-) "ssh-copy-id" copies the id to the other host, ie to user@host:.ssh/authorized_keys = screen = purpose: keep processes alive. share sessions between users. Screen listens to "CTRL-A" (gobbles it), and takes next character, too. if this is not bound to a command then you get an error message. otherwise command is executed. http://www.guckes.net/Screen/ http://www.guckes.net/Screen/intro.html read this! http://www.guckes.net/Setup/screenrc http://www.guckes.net/Setup/screenrc.minimal install: wget $file -O ~/.screenrc screen vs tmux: tmux wins. http://www.guckes.net/screen/vs.tmux.html = mutt = Workshop files.. initial startup for mutt: http://www.guckes.net/Setup/muttrc.workshop.de.txt http://www.guckes.net/Setup/muttrc.workshop.en.txt install: wget $file -O ~/.muttrc Sven's pages on mutt an neomutt: http://www.guckes.net/mutt/ http://www.guckes.net/neomutt/ you do not need a full MTA (like exim postfix qmail or sendmail) on your laptop. a small one should suffice to forward messages through another mailserver, eg "msmtp": # sudo apt-get install msmtp /usr/share/doc/msmtp/examples unbound functions: bind index zt current-top bind index zz current-middle bind index zb current-bottom command line "source" command: :source filename "limit" display to matching messages: ~f from ~s subject ~p ~d<6w ~b foo macro example: new mails, at most two weeks old, no duplicates macro index ,, "~N ~d<2w !~=\n" = gpg = gpg1: gpg --gen-key gpg2: gpg --full-generate-key http://www.guckes.net/talks/gpg_intro.txt = shells = bash+zsh wget http://www.guckes.net/tmp/VIM.bz2 wget http://www.guckes.net/tmp/NEOMUTT.bz2 an "em(pty)" neomutt: alias neomuttem='neomutt -n -f /dev/null -F /dev/null' alias '?'='screen -ls' # "are there any sessions?" alias '!'='screen -d -RR' # "use latest session!" job control: CTRL-Z put current process into background fg put latest job into foreground again = next = what to talk about next time: configuring the folder index: index_format aliases colors sidebar mailboxes -> startup with "(neo)mutt -y" hooks: send-hook save-hook fcc-hook crypt-hook header+body: X-tra-lines: and signatures. encrypt+sign messages. display: auto_view + hdr_order attachments: ~/.mailcap save+delete access via web initiating mails from shell: echo reminder | /bin/mail $USER echo reminder | neomutt myself echo reminder | neomutt -s "reminder" myself cat filename | neomutt -s "do this" myself neomutt -s "do this" myself user@host alias < filename bindings+macros ~/Mail and ~/Mail.IN fetchmail -> procmail shell aliases shell job control shell editing = etc = https://www.meetup.com/FreeCodeCamp-Berlin/ Fridays 10-18h @IN-Berlin vim: set ft=sven: EOF