Blog
-
Unix, Linux: how to do a proper and secure file transfer in a cronjob
I got advised to do sftp with an empty passphrase. I got that working. Was pretty straight forward. But is there a better way? With a non-empty passphrase? But how to deal with that passphrase?
- https://en.wikipedia.org/wiki/ssh-agent
- https://linuxhandbook.com/transfer-files-ssh/
- https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
- my buzzword web search: ssh file transfer best practice
I do my ordinary SSH handling with an SSH agent, and I feel quite confident with that. But I yet have to find out about best practice of SSH-based “file transfers in the background”.
“sftp with an empty passphrase” is what I use for now.
On the target side the account gets a chroot-ed environment through a directive in sshd_config. But the chroot-ed environment gets linked via “mount –bind” into a useful and not so much restricted environment.
-
how to disable vim syntax colour?
- https://askubuntu.com/questions/339092/how-to-disable-vim-syntax-color
- http://catb.org/jargon/html/A/angry-fruit-salad.html
Of course I like colours – in nature, on people, wherever … – but some colour schemes on computer displays are hard too read – some are awkward or ugly.
I am glad, there is a short way to get rid off these colours in VIM.
In order to tell a shell console to operate b&w, simply switch the environment variable TERM to xterm.
-
creating a line break in Messages for Mac
On the Mac, if you want to create a line break in the macOS Messages app by holding down the OPTION key and then hit RETURN to jump to a new line without sending the message.
https://osxdaily.com/2014/07/05/type-new-line-break-messages-ios/I wondered for years, how that would work – always too lazy to look for a solution – now I finally wanted to migrate away from Facebook Messenger to something nicer as a communication channel with a very special friend (outside Germany and not using Signal/WhatsApp/Telegram) – and the above link (resp. text from 2014) got displayed as the 1st result – proper query, proper results 🤩 (“Star-Struck” AKA “Grinning Face with Star Eyes”)
BTW:
Users can tell the difference between a message sent via SMS and one sent over iMessage as the bubbles will appear either green (SMS) or blue (iMessage).
https://en.wikipedia.org/wiki/Messages_(Apple)I know …, all this only drives me more and more into the Apple jail – but it is so intriguing.
-
GNU Emacs 28.1 released
- https://lists.gnu.org/archive/html/info-gnu/2022-04/msg00001.html
- https://emacsformacosx.com – and you can find 28.1 ready-made for macOSX on “Emacs For Mac OS X”
-
quotation: “how sharper than a serpent’s tooth …”
How sharper than a serpent’s tooth it is
William Shakespeare, King Lear (1608), Act I, scene 4, line 310 – https://en.wikiquote.org/wiki/Gratitude
To have a thankless child.How sharper than a serpent’s tooth
Judith Rich Harris, The Nurture Assumption, chapter 15, p. 330 – written in response to Philip Larkin’s poem “This Be The Verse“
To hear your child make such a fuss.
It isn’t fair —it’s not the truth—
He’s fucked up, yes, but not by us.I came across this quotation in this novel:
- https://en.wikipedia.org/wiki/Guido_Brunetti_novels#Novels #30
- ISBN 978-1785152627 – https://www.amazon.de/dp/1785152629 – in English
- https://de.wikipedia.org/wiki/Donna_Leon#Die_Brunetti-Romane_2 #30
- ISBN 978-3257071207 – https://www.amazon.de/dp/3257071205 – in German
-
Emacs and Microsoft Windows
- https://www.gnu.org/software/emacs/manual/html_node/emacs/Microsoft-Windows.html
- https://www.gnu.org/software/emacs/manual/efaq-w32.html
- C:\Program Files\Emacs\x86_64\share\emacs\VER\README.W32 – read it! for serious!
- C:\Program Files\Emacs\x86_64\bin\ – where the utilities are located
- https://ftp.gnu.org/gnu/emacs/windows/
- https://ftpmirror.gnu.org/emacs/
I use to download and install emacs-VER-x86_64.zip , it contains “a large number of optional dependencies for Emacs” – maybe you want to install that into c:\opt\emacs-VER\.
emacs-VER-installer.exe – a Windows installer – installs into C:\Program Files\Emacs\ .
Utilities described in the README.32 – read their entries (!):
- addpm.exe
- runemacs.exe
-
The English Wikipedia: Manual of Style: National varieties of English
The English Wikipedia prefers no national variety of English over any other.
National varieties of English -
Linux: extending the capacity of a filesystem
- https://learning.oreilly.com/library/view/centos-7-linux/9781785887284/ch05s06.html#ch05lvl2sec149 – context: XFS, LVM
- https://learning.oreilly.com/library/view/linux-powerful-server/9781788293778/ch19s06.html#ch05lvl2sec0151 (by the same authors)
In 2022 it looks a little unreasonable to not use LVM but only partitions.
Resizing a filesystem on a partition (as opposed to on an LVM volume) should only be done, if / as long as the filesystem is not mounted on that partition.
- https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount – “Resizing any live partition without unmout comes with a tremendous risk of loosing data thus it is not recommended. If you a have a sensitive data stored on your system, it is always recommended to take the system down make a backup and resize the partition while it is not mounted.“
- https://askubuntu.com/questions/60431/how-do-i-resize-root-partition