Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Today it's awk(1)

Uncategorized
1 1 10

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    8 Views
    Following on the heels of ssh(1) yesterday, today's #FreeSoftwareAdvent is rsync(1).It's one of the key elements in my podcast listening (more on that to come later this month), where my podcatcher pulls down podcasts into a backlog tree structure, and I rsync the whole thing to my phone for listening. It also undergirds my blog deployment, building in Nikola (still gotta find some time to switch that to my custom Makefile driven build process) and then rsync'ing the output/ tree up to my web-server.And last night our teen wanted our family photo website content's pictures for a school project, so I was able to rsync the latest copy of them to a backup USB drive that he could browse offline.It's reliable and does a particular job (keeping two directory trees in sync) very well. Yes, ZFS send/receive is more efficient if both sides support it and they're whole datasets, but that's not always the case.Also, since I use bash as my shell, the "^" substitution makes it easy to issue something like$ rsync -n -avr $SRC $DESTand if it looks good, use$ ^-nto remove the dry-run flag and run it for real.
  • 0 Votes
    1 Posts
    16 Views
    Today in #FreeSoftwareAdvent it's the venerable ssh(1)/sshd(8)While I grew up in an age where telnet(1) was my only option, the ssh folks made it a pretty drop-in replacement for the sorts of things I did with telnet, so switching was easy.With the exception of when I'm rebooting or our ISP is having issues, I almost always have at least one SSH connection open and likely more than one connection to other hosts. Even in the "security" of our LAN in the house, I still SSH between machines rather than use unencrypted connections for transfer.I love being able to run things remotely and use them locally, such as$ ssh me@remote dmesg | xsel -ibto put the remote machine's dmesg output on my system clipboard or$ tar czvf - /path/to/data | ssh me@remote 'cd /destination/path ; tar xzf -'to transfer a directory tree to a remote machine.It generally has sensible defaults, allows me to force key-based authentication rather than username+password auth.It allows me to limit $DAYJOB customers to SFTP-only access within their designated chroot directories, insulating them from each other.I use it to tunnel into work and forward my RDP VM's screen so I can access it locally with rdesktop(1)So many delightful little uses.Definitely worth reading @mwl's SSH book to learn more: https://mwl.io/archives/3126
  • 0 Votes
    1 Posts
    13 Views
    Today in #FreeSoftwareAdvent, today it's OpenSMTPD¹.In the past I've tried to set up Sendmail, Postfix, Exim, and qmail at various junctures, but found them all unwieldy in their configuration syntax. Macros and compiling them, or digging through dozens of config files for relevant settings. Lots of "here are thousands of settings, but don't change them unless you really know what you're doing." It drove me a bit crazy.Then OpenBSD folks created OpenSMTPD.The configuration syntax was sensible and simple. It didn't try to do everything, just adequate SMTP serving with some privsep. It was easy to point it at certificates that acme-client(1) obtains for me via httpd(8) interactions scheduled in cron(8), all within the base system.It's the MTA with OpenBSD's fingerprints of simplicity & security all over it.⸻¹ https://opensmtpd.org/
  • 0 Votes
    1 Posts
    7 Views
    Today in #FreeSoftwareAdvent, I want to appreciate OfflineIMAP/mbsync. Both have served me well for bringing a remote IMAP mailbox locally and keeping it in sync across multiple machines, allowing me to mow through mail even when offline, and then have reasonable confidence that everything will just sync back up when I go online again.